From a106bbffa1188d62bb86e357714bbe4acdecd37e Mon Sep 17 00:00:00 2001 From: sof Date: Thu, 19 Jan 2006 02:15:38 +0000 Subject: [PATCH] [project @ 2006-01-19 02:15:38 by sof] tryPutMVarzh_fast: make it work in the non-full case. Merge to STABLE. --- ghc/rts/PrimOps.cmm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ghc/rts/PrimOps.cmm b/ghc/rts/PrimOps.cmm index ff95943..67d3767 100644 --- a/ghc/rts/PrimOps.cmm +++ b/ghc/rts/PrimOps.cmm @@ -1729,7 +1729,6 @@ tryPutMVarzh_fast #if defined(SMP) foreign "C" unlockClosure(mvar "ptr", stg_EMPTY_MVAR_info); #endif - jump %ENTRY_CODE(Sp(0)); } else { @@ -1741,9 +1740,9 @@ tryPutMVarzh_fast #else SET_INFO(mvar,stg_FULL_MVAR_info); #endif - jump %ENTRY_CODE(Sp(0)); } + RET_N(1); /* ToDo: yield afterward for better communication performance? */ } -- 1.7.10.4