src/share/vm/services/mallocTracker.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/services/mallocTracker.hpp	Mon Feb  9 11:39:11 2015
--- new/src/share/vm/services/mallocTracker.hpp	Mon Feb  9 11:39:11 2015

*** 162,171 **** --- 162,175 ---- MallocMemorySnapshot* s = const_cast<MallocMemorySnapshot*>(this); return s->by_type(mtThreadStack)->malloc_count(); } void copy_to(MallocMemorySnapshot* s) { + // Need to make sure that mtChunks don't get deallocated while the + // copy is going on, because their size is adjusted using this + // buffer in make_adjustment(). + ThreadCritical tc; s->_tracking_header = _tracking_header; for (int index = 0; index < mt_number_of_types; index ++) { s->_malloc[index] = _malloc[index]; } }

src/share/vm/services/mallocTracker.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File