Mercurial > hg > truffle
comparison src/share/vm/gc_interface/collectedHeap.cpp @ 628:7bb995fbd3c0
Merge
author | trims |
---|---|
date | Thu, 12 Mar 2009 18:16:36 -0700 |
parents | 0fbdb4381b99 c6c601a0f2d6 |
children | 39b01ab7035a |
comparison
equal
deleted
inserted
replaced
580:ce2272390558 | 628:7bb995fbd3c0 |
---|---|
292 "should only resize tlabs at safepoint"); | 292 "should only resize tlabs at safepoint"); |
293 | 293 |
294 ThreadLocalAllocBuffer::resize_all_tlabs(); | 294 ThreadLocalAllocBuffer::resize_all_tlabs(); |
295 } | 295 } |
296 } | 296 } |
297 | |
298 void CollectedHeap::pre_full_gc_dump() { | |
299 if (HeapDumpBeforeFullGC) { | |
300 TraceTime tt("Heap Dump: ", PrintGCDetails, false, gclog_or_tty); | |
301 // We are doing a "major" collection and a heap dump before | |
302 // major collection has been requested. | |
303 HeapDumper::dump_heap(); | |
304 } | |
305 if (PrintClassHistogramBeforeFullGC) { | |
306 TraceTime tt("Class Histogram: ", PrintGCDetails, true, gclog_or_tty); | |
307 VM_GC_HeapInspection inspector(gclog_or_tty, false /* ! full gc */, false /* ! prologue */); | |
308 inspector.doit(); | |
309 } | |
310 } | |
311 | |
312 void CollectedHeap::post_full_gc_dump() { | |
313 if (HeapDumpAfterFullGC) { | |
314 TraceTime tt("Heap Dump", PrintGCDetails, false, gclog_or_tty); | |
315 HeapDumper::dump_heap(); | |
316 } | |
317 if (PrintClassHistogramAfterFullGC) { | |
318 TraceTime tt("Class Histogram", PrintGCDetails, true, gclog_or_tty); | |
319 VM_GC_HeapInspection inspector(gclog_or_tty, false /* ! full gc */, false /* ! prologue */); | |
320 inspector.doit(); | |
321 } | |
322 } |