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 b54072dfee
commit d9f7b2a430
2 changed files with 108 additions and 85 deletions

View File

@@ -383,7 +383,6 @@ psz2ind
psz2ind_clamp
psz2ind_impl
psz2u
register_zone
rtree_child_read
rtree_child_read_hard
rtree_child_tryread
@@ -537,3 +536,4 @@ witness_postfork_parent
witness_prefork
witness_unlock
witnesses_cleanup
zone_register