equal
deleted
inserted
replaced
54 #include "runtime/vmThread.hpp" |
54 #include "runtime/vmThread.hpp" |
55 #include "runtime/vm_operations.hpp" |
55 #include "runtime/vm_operations.hpp" |
56 #include "services/memoryService.hpp" |
56 #include "services/memoryService.hpp" |
57 #include "utilities/stack.inline.hpp" |
57 #include "utilities/stack.inline.hpp" |
58 |
58 |
|
59 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
59 |
60 |
60 HeapWord* PSScavenge::_to_space_top_before_gc = NULL; |
61 HeapWord* PSScavenge::_to_space_top_before_gc = NULL; |
61 int PSScavenge::_consecutive_skipped_scavenges = 0; |
62 int PSScavenge::_consecutive_skipped_scavenges = 0; |
62 ReferenceProcessor* PSScavenge::_ref_processor = NULL; |
63 ReferenceProcessor* PSScavenge::_ref_processor = NULL; |
63 CardTableExtension* PSScavenge::_card_table = NULL; |
64 CardTableExtension* PSScavenge::_card_table = NULL; |
831 void PSScavenge::initialize() { |
832 void PSScavenge::initialize() { |
832 // Arguments must have been parsed |
833 // Arguments must have been parsed |
833 |
834 |
834 if (AlwaysTenure || NeverTenure) { |
835 if (AlwaysTenure || NeverTenure) { |
835 assert(MaxTenuringThreshold == 0 || MaxTenuringThreshold == markOopDesc::max_age + 1, |
836 assert(MaxTenuringThreshold == 0 || MaxTenuringThreshold == markOopDesc::max_age + 1, |
836 err_msg("MaxTenuringThreshold should be 0 or markOopDesc::max_age + 1, but is ", MaxTenuringThreshold)); |
837 err_msg("MaxTenuringThreshold should be 0 or markOopDesc::max_age + 1, but is %d", (int) MaxTenuringThreshold)); |
837 _tenuring_threshold = MaxTenuringThreshold; |
838 _tenuring_threshold = MaxTenuringThreshold; |
838 } else { |
839 } else { |
839 // We want to smooth out our startup times for the AdaptiveSizePolicy |
840 // We want to smooth out our startup times for the AdaptiveSizePolicy |
840 _tenuring_threshold = (UseAdaptiveSizePolicy) ? InitialTenuringThreshold : |
841 _tenuring_threshold = (UseAdaptiveSizePolicy) ? InitialTenuringThreshold : |
841 MaxTenuringThreshold; |
842 MaxTenuringThreshold; |