@@ -892,7 +892,7 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
892
892
tvarId tvar `Map.notMember` writtenOuter)
893
893
writtenSeq
894
894
++ writtenOuterSeq
895
- -- Skip the orElse right hand and continue with the k continuation
895
+ -- Skip the right hand and continue with the k continuation
896
896
go ctl' read written' writtenSeq' createdOuterSeq nextVid (k x)
897
897
898
898
ThrowStm e ->
@@ -904,16 +904,16 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
904
904
k0 $ StmTxAborted [] (toException e)
905
905
906
906
BranchFrame (CatchStmA h) k writtenOuter writtenOuterSeq createdOuterSeq ctl' ->
907
- {-# SCC "execAtomically.go.branchFrame " #-} do
908
- -- Revert all the TVar writes within this orElse
907
+ {-# SCC "execAtomically.go.BranchFrame " #-} do
908
+ -- Revert all the TVar writes within this catch
909
909
! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
910
910
-- Execute the catch handler with an empty written set
911
911
let ctl'' = BranchFrame EmptyStmA k writtenOuter writtenOuterSeq createdOuterSeq ctl'
912
912
go ctl'' read Map. empty [] [] nextVid (h e)
913
913
--
914
914
BranchFrame _ _k writtenOuter writtenOuterSeq createdOuterSeq ctl' ->
915
- {-# SCC "execAtomically.go.branchFrame " #-} do
916
- -- Revert all the TVar writes within this orElse
915
+ {-# SCC "execAtomically.go.BranchFrame " #-} do
916
+ -- Revert all the TVar writes within this branch
917
917
! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
918
918
go ctl' read writtenOuter writtenOuterSeq createdOuterSeq nextVid (ThrowStm e)
919
919
@@ -943,7 +943,7 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
943
943
944
944
BranchFrame _ _k writtenOuter writtenOuterSeq createdOuterSeq ctl' ->
945
945
{-# SCC "execAtomically.go.BranchFrame" #-} do
946
- -- Revert all the TVar writes within this orElse branch
946
+ -- Revert all the TVar writes within this branch
947
947
! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
948
948
-- Skip the continuation and propagate the retry into the outer frame
949
949
-- using the written set for the outer frame
0 commit comments