mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 10:23:46 +00:00
The thread_sbrk test is only meaningful with OS threads so use
thread.spawn_native instead of thread.spawn now that it is available.
It was harmless to run the test with only concurrent Mercury threads
anyway, except that calling thread.yield leads to a crash in deep
profiling grades (whether or not concurrent Mercury threads *should*
work in deep profiling grades is another matter).
tests/hard_coded/thread_sbrk.m:
tests/hard_coded/thread_sbrk.exp2:
Use thread.spawn_native instead of thread.spawn.
Delete unnecessary thread.yield calls.
2 lines
28 B
Plaintext
2 lines
28 B
Plaintext
spawn_native not supported.
|