Files
mercury/tests/stm/atomic_or_else2.exp
Peter Wang a91fdf35c7 Fix a problem with the STM transformation of or_else alternatives.
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.
2009-11-19 00:08:34 +00:00

2 lines
18 B
Plaintext