equal
deleted
inserted
replaced
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "gc/serial/defNewGeneration.inline.hpp" |
26 #include "gc/serial/defNewGeneration.inline.hpp" |
|
27 #include "gc/shared/adaptiveSizePolicy.hpp" |
27 #include "gc/shared/ageTable.inline.hpp" |
28 #include "gc/shared/ageTable.inline.hpp" |
28 #include "gc/shared/cardTableRS.hpp" |
29 #include "gc/shared/cardTableRS.hpp" |
29 #include "gc/shared/collectorCounters.hpp" |
30 #include "gc/shared/collectorCounters.hpp" |
30 #include "gc/shared/gcHeapSummary.hpp" |
31 #include "gc/shared/gcHeapSummary.hpp" |
31 #include "gc/shared/gcLocker.inline.hpp" |
32 #include "gc/shared/gcLocker.inline.hpp" |
683 |
684 |
684 adjust_desired_tenuring_threshold(); |
685 adjust_desired_tenuring_threshold(); |
685 |
686 |
686 // A successful scavenge should restart the GC time limit count which is |
687 // A successful scavenge should restart the GC time limit count which is |
687 // for full GC's. |
688 // for full GC's. |
688 AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy(); |
689 AdaptiveSizePolicy* size_policy = gch->size_policy(); |
689 size_policy->reset_gc_overhead_limit_count(); |
690 size_policy->reset_gc_overhead_limit_count(); |
690 assert(!gch->incremental_collection_failed(), "Should be clear"); |
691 assert(!gch->incremental_collection_failed(), "Should be clear"); |
691 } else { |
692 } else { |
692 assert(_promo_failure_scan_stack.is_empty(), "post condition"); |
693 assert(_promo_failure_scan_stack.is_empty(), "post condition"); |
693 _promo_failure_scan_stack.clear(true); // Clear cached segments. |
694 _promo_failure_scan_stack.clear(true); // Clear cached segments. |