Fix arena chunk purge/dealloc race conditions.

Fix arena_chunk_dealloc() to put the new spare in a consistent state before
dropping the arena mutex to deallocate the previous spare.

Fix arena_run_dalloc() to insert a newly dirtied chunk into the
chunks_dirty list before potentially deallocating the chunk, so that dirty
page accounting is self-consistent.
1 file changed
tree: 913caac2e91cfec9a0507d2ddabac8e0a4bbeee5
  1. jemalloc/
  2. .gitignore