X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FHeapStackCheck.cmm;h=11af7c70731585d6b26b2c13378ab804bb02fbb4;hb=0981e24e9980b8b26e6f20fc56bebc1c7416cc4f;hp=a4fb5c0a16729402bb9c36d20280426360091c12;hpb=4d93c987a690eda8fbd9d2e4c7b103005dd8836a;p=ghc-hetmet.git diff --git a/rts/HeapStackCheck.cmm b/rts/HeapStackCheck.cmm index a4fb5c0..11af7c7 100644 --- a/rts/HeapStackCheck.cmm +++ b/rts/HeapStackCheck.cmm @@ -13,6 +13,8 @@ #include "Cmm.h" #ifdef __PIC__ +import EnterCriticalSection +import LeaveCriticalSection import pthread_mutex_unlock; #endif @@ -873,7 +875,7 @@ stg_block_blackhole_finally // 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. - foreign "C" RELEASE_LOCK(sched_mutex "ptr"); + RELEASE_LOCK(sched_mutex "ptr"); #endif jump StgReturn; }