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

src/share/vm/services/mallocTracker.hpp

Print this page

        

*** 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