Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 3356:78542e2b5e35
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
Summary: Add a notification to the GarbageCollectorMXBeans
Reviewed-by: acorn, mchung
author | fparain |
---|---|
date | Thu, 12 May 2011 10:30:11 -0700 |
parents | 75af3e8de182 |
children | 2aa9ddbb9e60 |
comparison
equal
deleted
inserted
replaced
3355:f1cbbee6713b | 3356:78542e2b5e35 |
---|---|
1160 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); | 1160 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); |
1161 TraceTime t(system_gc ? "Full GC (System.gc())" : "Full GC", | 1161 TraceTime t(system_gc ? "Full GC (System.gc())" : "Full GC", |
1162 PrintGC, true, gclog_or_tty); | 1162 PrintGC, true, gclog_or_tty); |
1163 | 1163 |
1164 TraceCollectorStats tcs(g1mm()->full_collection_counters()); | 1164 TraceCollectorStats tcs(g1mm()->full_collection_counters()); |
1165 TraceMemoryManagerStats tms(true /* fullGC */); | 1165 TraceMemoryManagerStats tms(true /* fullGC */, gc_cause()); |
1166 | 1166 |
1167 double start = os::elapsedTime(); | 1167 double start = os::elapsedTime(); |
1168 g1_policy()->record_full_collection_start(); | 1168 g1_policy()->record_full_collection_start(); |
1169 | 1169 |
1170 wait_while_free_regions_coming(); | 1170 wait_while_free_regions_coming(); |
3200 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps); | 3200 gclog_or_tty->date_stamp(PrintGC && PrintGCDateStamps); |
3201 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); | 3201 TraceCPUTime tcpu(PrintGCDetails, true, gclog_or_tty); |
3202 TraceTime t(verbose_str, PrintGC && !PrintGCDetails, true, gclog_or_tty); | 3202 TraceTime t(verbose_str, PrintGC && !PrintGCDetails, true, gclog_or_tty); |
3203 | 3203 |
3204 TraceCollectorStats tcs(g1mm()->incremental_collection_counters()); | 3204 TraceCollectorStats tcs(g1mm()->incremental_collection_counters()); |
3205 TraceMemoryManagerStats tms(false /* fullGC */); | 3205 TraceMemoryManagerStats tms(false /* fullGC */, gc_cause()); |
3206 | 3206 |
3207 // If the secondary_free_list is not empty, append it to the | 3207 // If the secondary_free_list is not empty, append it to the |
3208 // free_list. No need to wait for the cleanup operation to finish; | 3208 // free_list. No need to wait for the cleanup operation to finish; |
3209 // the region allocation code will check the secondary_free_list | 3209 // the region allocation code will check the secondary_free_list |
3210 // and wait if necessary. If the G1StressConcRegionFreeing flag is | 3210 // and wait if necessary. If the G1StressConcRegionFreeing flag is |