hotspot/src/share/vm/gc/g1/g1CollectedHeap.inline.hpp
changeset 31331 a7c714b6cfb3
parent 30764 fec48bf5a827
child 31592 43f48e165466
equal deleted inserted replaced
31330:77061bb01b18 31331:a7c714b6cfb3
    27 
    27 
    28 #include "gc/g1/concurrentMark.hpp"
    28 #include "gc/g1/concurrentMark.hpp"
    29 #include "gc/g1/g1AllocRegion.inline.hpp"
    29 #include "gc/g1/g1AllocRegion.inline.hpp"
    30 #include "gc/g1/g1CollectedHeap.hpp"
    30 #include "gc/g1/g1CollectedHeap.hpp"
    31 #include "gc/g1/g1CollectorPolicy.hpp"
    31 #include "gc/g1/g1CollectorPolicy.hpp"
       
    32 #include "gc/g1/g1CollectorState.hpp"
    32 #include "gc/g1/g1SATBCardTableModRefBS.hpp"
    33 #include "gc/g1/g1SATBCardTableModRefBS.hpp"
    33 #include "gc/g1/heapRegionManager.inline.hpp"
    34 #include "gc/g1/heapRegionManager.inline.hpp"
    34 #include "gc/g1/heapRegionSet.inline.hpp"
    35 #include "gc/g1/heapRegionSet.inline.hpp"
    35 #include "gc/shared/taskqueue.hpp"
    36 #include "gc/shared/taskqueue.hpp"
    36 #include "runtime/orderAccess.inline.hpp"
    37 #include "runtime/orderAccess.inline.hpp"
   286     const size_t elapsed_gcs = gc_num - _evacuation_failure_alot_gc_number;
   287     const size_t elapsed_gcs = gc_num - _evacuation_failure_alot_gc_number;
   287 
   288 
   288     _evacuation_failure_alot_for_current_gc = (elapsed_gcs >= G1EvacuationFailureALotInterval);
   289     _evacuation_failure_alot_for_current_gc = (elapsed_gcs >= G1EvacuationFailureALotInterval);
   289 
   290 
   290     // Now check if G1EvacuationFailureALot is enabled for the current GC type.
   291     // Now check if G1EvacuationFailureALot is enabled for the current GC type.
   291     const bool gcs_are_young = g1_policy()->gcs_are_young();
   292     const bool gcs_are_young = collector_state()->gcs_are_young();
   292     const bool during_im = g1_policy()->during_initial_mark_pause();
   293     const bool during_im = collector_state()->during_initial_mark_pause();
   293     const bool during_marking = mark_in_progress();
   294     const bool during_marking = collector_state()->mark_in_progress();
   294 
   295 
   295     _evacuation_failure_alot_for_current_gc &=
   296     _evacuation_failure_alot_for_current_gc &=
   296       evacuation_failure_alot_for_gc_type(gcs_are_young,
   297       evacuation_failure_alot_for_gc_type(gcs_are_young,
   297                                           during_im,
   298                                           during_im,
   298                                           during_marking);
   299                                           during_marking);