projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
653e325
)
move gc_alloc_block to make it visible on 32-bit
author
Simon Marlow
<marlowsd@gmail.com>
Mon, 3 Aug 2009 13:28:47 +0000
(13:28 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Mon, 3 Aug 2009 13:28:47 +0000
(13:28 +0000)
includes/rts/storage/MBlock.h
patch
|
blob
|
history
diff --git
a/includes/rts/storage/MBlock.h
b/includes/rts/storage/MBlock.h
index
fb5289d
..
0943d4c
100644
(file)
--- a/
includes/rts/storage/MBlock.h
+++ b/
includes/rts/storage/MBlock.h
@@
-24,6
+24,11
@@
extern void *getFirstMBlock(void);
extern void *getNextMBlock(void *mblock);
#endif
+#ifdef THREADED_RTS
+// needed for HEAP_ALLOCED below
+extern SpinLock gc_alloc_block_sync;
+#endif
+
/* -----------------------------------------------------------------------------
The HEAP_ALLOCED() test.
@@
-143,10
+148,6
@@
typedef struct {
extern lnat mpc_misses;
-#ifdef THREADED_RTS
-extern SpinLock gc_alloc_block_sync;
-#endif
-
StgBool HEAP_ALLOCED_miss(StgWord mblock, void *p);
INLINE_HEADER