From 3fad64f3328778032439a87ec2108cdeea370552 Mon Sep 17 00:00:00 2001 From: tharris Date: Tue, 14 Jun 2005 10:02:11 +0000 Subject: [PATCH] [project @ 2005-06-14 10:02:11 by tharris] Assert on nested atomic blocks --- ghc/rts/PrimOps.cmm | 1 + 1 file changed, 1 insertion(+) 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; -- 1.7.10.4