mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 20:03:44 +00:00
Branches: main Fix a problem with the STM transformation of or_else alternatives. Input variables which are needed for later alternatives but not the "main" atomic goal weren't being passed down through the generated predicates. compiler/stm_expand.m: As above. Add a missing call to stm_discard_transaction_log in the generated code. Fix some typos. library/stm_builtin.m: Fix a branch of branch of or_else/5 which called stm_unlock when the STM lock would not be acquired in that code path. tests/stm/Mmakefile: tests/stm/atomic_or_else2.exp: tests/stm/atomic_or_else2.m: Add test case for the main fix.
2 lines
18 B
Plaintext
2 lines
18 B
Plaintext
TVar2 is non-zero
|