Fix chunk_dalloc_arena() re: zeroing due to purge.

This commit is contained in:
Jason Evans 2015-08-12 15:20:34 -07:00
parent 694d0829c0
commit 6ed18cb348

View File

@ -584,7 +584,7 @@ chunk_dalloc_arena(arena_t *arena, chunk_hooks_t *chunk_hooks, void *chunk,
committed = chunk_hooks->decommit(chunk, size, 0, size, committed = chunk_hooks->decommit(chunk, size, 0, size,
arena->ind); arena->ind);
} }
zeroed = !committed || chunk_hooks->purge(chunk, size, 0, size, zeroed = !committed || !chunk_hooks->purge(chunk, size, 0, size,
arena->ind); arena->ind);
chunk_record(arena, chunk_hooks, &arena->chunks_szad_retained, chunk_record(arena, chunk_hooks, &arena->chunks_szad_retained,
&arena->chunks_ad_retained, false, chunk, size, zeroed, committed); &arena->chunks_ad_retained, false, chunk, size, zeroed, committed);