From: tharris Date: Tue, 14 Jun 2005 10:02:11 +0000 (+0000) Subject: [project @ 2005-06-14 10:02:11 by tharris] X-Git-Tag: Initial_conversion_from_CVS_complete~431 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3fad64f3328778032439a87ec2108cdeea370552;hp=91314304c1886f4889c82ae5deb54adf4062e258;p=ghc-hetmet.git [project @ 2005-06-14 10:02:11 by tharris] Assert on nested atomic blocks --- diff --git a/ghc/rts/PrimOps.cmm b/ghc/rts/PrimOps.cmm index 7b1c8aa..84b34d0 100644 --- a/ghc/rts/PrimOps.cmm +++ b/ghc/rts/PrimOps.cmm @@ -1181,6 +1181,7 @@ atomicallyzh_fast /* Start the memory transcation */ old_trec = StgTSO_trec(CurrentTSO); + ASSERT(old_trec == NO_TREC); "ptr" new_trec = foreign "C" stmStartTransaction(BaseReg "ptr", old_trec "ptr"); StgTSO_trec(CurrentTSO) = new_trec;