Fix a race condition in the "arenas.extend" mallctl.

Fix a race condition in the "arenas.extend" mallctl that could lead to
internal data structure corruption.  The race could be hit if one
thread called the "arenas.extend" mallctl while another thread
concurrently triggered initialization of one of the lazily created
arenas.
This commit is contained in:
Jason Evans
2013-10-20 14:09:54 -07:00
parent 0f1d8ec300
commit 7b65180b32
2 changed files with 48 additions and 38 deletions

View File

@@ -9,6 +9,8 @@ found in the git revision history:
* 3.4.1 (XXX)
Bug fixes:
- Fix a race in the "arenas.extend" mallctl that could cause memory corruption
of internal data structures and subsequent crashes.
- Fix Valgrind integration flaws that caused Valgrind warnings about reads of
uninitialized memory in:
+ arena chunk headers