X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FHeapStackCheck.cmm;h=4e5dd2459636f177961d4f9934e87206b20a9236;hb=d7986e3b2e5151ef5f68ab62e3c93ad68a9220d1;hp=9b5593789ff747807fdf89d06c03f687fb55a410;hpb=19ecaccf6bcc6bd64d9dd4ee332b8635b1d75844;p=ghc-hetmet.git diff --git a/ghc/rts/HeapStackCheck.cmm b/ghc/rts/HeapStackCheck.cmm index 9b55937..4e5dd24 100644 --- a/ghc/rts/HeapStackCheck.cmm +++ b/ghc/rts/HeapStackCheck.cmm @@ -840,7 +840,7 @@ INFO_TABLE_RET( stg_block_takemvar, 1/*framesize*/, 0/*bitmap*/, RET_SMALL ) // code fragment executed just before we return to the scheduler stg_block_takemvar_finally { -#ifdef SMP +#ifdef THREADED_RTS foreign "C" unlockClosure(R3 "ptr", stg_EMPTY_MVAR_info); #endif jump StgReturn; @@ -866,7 +866,7 @@ INFO_TABLE_RET( stg_block_putmvar, 2/*framesize*/, 0/*bitmap*/, RET_SMALL ) // code fragment executed just before we return to the scheduler stg_block_putmvar_finally { -#ifdef SMP +#ifdef THREADED_RTS foreign "C" unlockClosure(R3 "ptr", stg_FULL_MVAR_info); #endif jump StgReturn; @@ -885,7 +885,7 @@ stg_block_putmvar // code fragment executed just before we return to the scheduler stg_block_blackhole_finally { -#if defined(SMP) +#if defined(THREADED_RTS) // The last thing we do is release sched_lock, which is // preventing other threads from accessing blackhole_queue and // picking up this thread before we are finished with it.