Fix/refactor zone allocator integration code.

Fix zone_force_unlock() to reinitialize, rather than unlocking mutexes,
since OS X 10.12 cannot tolerate a child unlocking mutexes that were
locked by its parent.

Refactor; this was a side effect of experimenting with zone
{de,re}registration during fork(2).
This commit is contained in:
Jason Evans
2016-11-02 18:06:40 -07:00
parent 31db315f17
commit a99e0fa2d2
2 changed files with 108 additions and 86 deletions

View File

@@ -461,7 +461,6 @@ quarantine
quarantine_alloc_hook
quarantine_alloc_hook_work
quarantine_cleanup
register_zone
rtree_child_read
rtree_child_read_hard
rtree_child_tryread
@@ -614,3 +613,4 @@ witness_postfork_parent
witness_prefork
witness_unlock
witnesses_cleanup
zone_register