Qi Wang
8721e19c04
Fix arena_prefork lock rank order for witness.
...
When witness is enabled, lock rank order needs to be preserved during
prefork, not only for each arena, but also across arenas. This change
breaks arena_prefork into further stages to ensure valid rank order
across arenas. Also changed test/unit/fork to use a manual arena to
catch this case.
2017-03-08 23:07:27 -08:00
Jason Evans
f408643a4c
Remove extraneous parens around return arguments.
...
This resolves #540 .
2017-01-20 21:43:07 -08:00
Jason Evans
c4c2592c83
Update brace style.
...
Add braces around single-line blocks, and remove line breaks before
function-opening braces.
This resolves #537 .
2017-01-20 21:43:07 -08:00
Jason Evans
ffbb7dac3d
Remove leading blank lines from function bodies.
...
This resolves #535 .
2017-01-13 14:49:24 -08:00
Jason Evans
b54072dfee
Call _exit(2) rather than exit(3) in forked child.
...
_exit(2) is async-signal-safe, whereas exit(3) is not.
2016-11-02 18:05:19 -07:00
Jason Evans
1eb46ab6e7
Don't test fork() on Windows.
2016-05-03 17:18:34 -07:00
Jason Evans
108c4a11e9
Fix witness/fork() interactions.
...
Fix witness to clear its list of owned mutexes in the child if
platform-specific malloc_mutex code re-initializes mutexes rather than
unlocking them.
2016-04-26 10:47:22 -07:00
Jason Evans
174c0c3a9c
Fix fork()-related lock rank ordering reversals.
2016-04-25 23:16:20 -07:00