8068451: Kitchensink fails with assert(_size >= sz) failed: Negative size

Need ThreadCritical lock around chunk pool cleaning and copying for snapshot

Reviewed-by: lfoltan, gtriantafill, hseigel
This commit is contained in:
Coleen Phillimore 2015-02-10 15:10:47 -05:00
parent cc1c11c366
commit 8df6ac1794
5 changed files with 31 additions and 25 deletions

View file

@ -52,7 +52,7 @@ size_t MallocMemorySnapshot::total_arena() const {
}
// Make adjustment by subtracting chunks used by arenas
// from total chunks to get total free chunck size
// from total chunks to get total free chunk size
void MallocMemorySnapshot::make_adjustment() {
size_t arena_size = total_arena();
int chunk_idx = NMTUtil::flag_to_index(mtChunk);