X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FStgMiscClosures.cmm;h=628e0f123cc35ac2fba523380936ee79b5ccb302;hb=03a9ff01812afc81eb5236fd3063cbec44cf469e;hp=72c5824be6519b1995dcb8c562895a5993cc1f96;hpb=63e8af080a7e779a48e812e6caa9ea519b046260;p=ghc-hetmet.git diff --git a/ghc/rts/StgMiscClosures.cmm b/ghc/rts/StgMiscClosures.cmm index 72c5824..628e0f1 100644 --- a/ghc/rts/StgMiscClosures.cmm +++ b/ghc/rts/StgMiscClosures.cmm @@ -338,6 +338,10 @@ INFO_TABLE(stg_BLACKHOLE,0,1,BLACKHOLE,"BLACKHOLE","BLACKHOLE") TICK_ENT_BH(); +#ifdef SMP + // foreign "C" debugBelch("BLACKHOLE entry\n"); +#endif + /* Actually this is not necessary because R1 is about to be destroyed. */ LDV_ENTER(R1); @@ -403,6 +407,10 @@ INFO_TABLE(stg_CAF_BLACKHOLE,0,1,CAF_BLACKHOLE,"CAF_BLACKHOLE","CAF_BLACKHOLE") LDV_ENTER(R1); #if defined(SMP) + // foreign "C" debugBelch("BLACKHOLE entry\n"); +#endif + +#if defined(SMP) foreign "C" ACQUIRE_LOCK(sched_mutex "ptr"); // released in stg_block_blackhole_finally #endif