comparison src/share/vm/gc_implementation/concurrentMarkSweep/vmCMSOperations.cpp @ 6064:9d679effd28c

7166894: Add gc cause to GC logging for all collectors Reviewed-by: mgerdin, johnc
author brutisso
date Tue, 15 May 2012 10:25:06 +0200
parents 436b4a3231bf
children b9a9ed0f8eeb 4202510ee0fe
comparison
equal deleted inserted replaced
6063:cdfa5139bd58 6064:9d679effd28c
144 GCCauseSetter gccs(gch, GCCause::_cms_initial_mark); 144 GCCauseSetter gccs(gch, GCCause::_cms_initial_mark);
145 145
146 VM_CMS_Operation::verify_before_gc(); 146 VM_CMS_Operation::verify_before_gc();
147 147
148 IsGCActiveMark x; // stop-world GC active 148 IsGCActiveMark x; // stop-world GC active
149 _collector->do_CMS_operation(CMSCollector::CMS_op_checkpointRootsInitial); 149 _collector->do_CMS_operation(CMSCollector::CMS_op_checkpointRootsInitial, gch->gc_cause());
150 150
151 VM_CMS_Operation::verify_after_gc(); 151 VM_CMS_Operation::verify_after_gc();
152 #ifndef USDT2 152 #ifndef USDT2
153 HS_DTRACE_PROBE(hs_private, cms__initmark__end); 153 HS_DTRACE_PROBE(hs_private, cms__initmark__end);
154 #else /* USDT2 */ 154 #else /* USDT2 */
176 GCCauseSetter gccs(gch, GCCause::_cms_final_remark); 176 GCCauseSetter gccs(gch, GCCause::_cms_final_remark);
177 177
178 VM_CMS_Operation::verify_before_gc(); 178 VM_CMS_Operation::verify_before_gc();
179 179
180 IsGCActiveMark x; // stop-world GC active 180 IsGCActiveMark x; // stop-world GC active
181 _collector->do_CMS_operation(CMSCollector::CMS_op_checkpointRootsFinal); 181 _collector->do_CMS_operation(CMSCollector::CMS_op_checkpointRootsFinal, gch->gc_cause());
182 182
183 VM_CMS_Operation::verify_after_gc(); 183 VM_CMS_Operation::verify_after_gc();
184 #ifndef USDT2 184 #ifndef USDT2
185 HS_DTRACE_PROBE(hs_private, cms__remark__end); 185 HS_DTRACE_PROBE(hs_private, cms__remark__end);
186 #else /* USDT2 */ 186 #else /* USDT2 */