Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 20522:d3fd73295885
8059466: Force young GC to initiate marking cycle when stat update is requested
Summary: Enable yc to be forced for stat update.
Reviewed-by: mgerdin, jcoomes
author | sjohanss |
---|---|
date | Mon, 06 Oct 2014 10:11:13 +0200 |
parents | 6948da6d7c13 |
children | e7d0505c8a30 |
comparison
equal
deleted
inserted
replaced
20520:4001310db3f5 | 20522:d3fd73295885 |
---|---|
2341 bool G1CollectedHeap::should_do_concurrent_full_gc(GCCause::Cause cause) { | 2341 bool G1CollectedHeap::should_do_concurrent_full_gc(GCCause::Cause cause) { |
2342 switch (cause) { | 2342 switch (cause) { |
2343 case GCCause::_gc_locker: return GCLockerInvokesConcurrent; | 2343 case GCCause::_gc_locker: return GCLockerInvokesConcurrent; |
2344 case GCCause::_java_lang_system_gc: return ExplicitGCInvokesConcurrent; | 2344 case GCCause::_java_lang_system_gc: return ExplicitGCInvokesConcurrent; |
2345 case GCCause::_g1_humongous_allocation: return true; | 2345 case GCCause::_g1_humongous_allocation: return true; |
2346 case GCCause::_update_allocation_context_stats_inc: return true; | |
2346 default: return false; | 2347 default: return false; |
2347 } | 2348 } |
2348 } | 2349 } |
2349 | 2350 |
2350 #ifndef PRODUCT | 2351 #ifndef PRODUCT |