diff options
Diffstat (limited to 'rts/sm/HeapAlloc.h')
-rw-r--r-- | rts/sm/HeapAlloc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rts/sm/HeapAlloc.h b/rts/sm/HeapAlloc.h index b9f7c468be..32210d1297 100644 --- a/rts/sm/HeapAlloc.h +++ b/rts/sm/HeapAlloc.h @@ -10,6 +10,14 @@ #include "BeginPrivate.h" +#if defined(THREADED_RTS) +// needed for HEAP_ALLOCED below +extern SpinLock gc_alloc_block_sync; +#endif + +#define ACQUIRE_ALLOC_BLOCK_SPIN_LOCK() ACQUIRE_SPIN_LOCK(&gc_alloc_block_sync) +#define RELEASE_ALLOC_BLOCK_SPIN_LOCK() RELEASE_SPIN_LOCK(&gc_alloc_block_sync) + /* ----------------------------------------------------------------------------- The HEAP_ALLOCED() test. |