@@ -892,7 +892,7 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
892892 tvarId tvar `Map.notMember` writtenOuter)
893893 writtenSeq
894894 ++ writtenOuterSeq
895- -- Skip the orElse right hand and continue with the k continuation
895+ -- Skip the right hand and continue with the k continuation
896896 go ctl' read written' writtenSeq' createdOuterSeq nextVid (k x)
897897
898898 ThrowStm e ->
@@ -904,16 +904,16 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
904904 k0 $ StmTxAborted [] (toException e)
905905
906906 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
909909 ! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
910910 -- Execute the catch handler with an empty written set
911911 let ctl'' = BranchFrame EmptyStmA k writtenOuter writtenOuterSeq createdOuterSeq ctl'
912912 go ctl'' read Map. empty [] [] nextVid (h e)
913913 --
914914 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
917917 ! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
918918 go ctl' read writtenOuter writtenOuterSeq createdOuterSeq nextVid (ThrowStm e)
919919
@@ -943,7 +943,7 @@ execAtomically !time !tid !tlbl !nextVid0 action0 k0 =
943943
944944 BranchFrame _ _k writtenOuter writtenOuterSeq createdOuterSeq ctl' ->
945945 {-# SCC "execAtomically.go.BranchFrame" #-} do
946- -- Revert all the TVar writes within this orElse branch
946+ -- Revert all the TVar writes within this branch
947947 ! _ <- traverse_ (\ (SomeTVar tvar) -> revertTVar tvar) written
948948 -- Skip the continuation and propagate the retry into the outer frame
949949 -- using the written set for the outer frame
0 commit comments