comparison src/share/vm/runtime/arguments.cpp @ 13074:78da3894b86f

8027593: performance drop with constrained codecache starting with hs25 b111 Summary: Fixed proper sweeping of small code cache sizes Reviewed-by: kvn, iveresov
author anoll
date Tue, 12 Nov 2013 09:32:50 +0100
parents 3b3133d93fb6
children 6f206b5d258f
comparison
equal deleted inserted replaced
13073:1dcea64e9f00 13074:78da3894b86f
1130 } 1130 }
1131 if (!UseInterpreter) { // -Xcomp 1131 if (!UseInterpreter) { // -Xcomp
1132 Tier3InvokeNotifyFreqLog = 0; 1132 Tier3InvokeNotifyFreqLog = 0;
1133 Tier4InvocationThreshold = 0; 1133 Tier4InvocationThreshold = 0;
1134 } 1134 }
1135 if (FLAG_IS_DEFAULT(NmethodSweepFraction)) {
1136 FLAG_SET_DEFAULT(NmethodSweepFraction, 1 + ReservedCodeCacheSize / (16 * M));
1137 }
1138 } 1135 }
1139 1136
1140 #if INCLUDE_ALL_GCS 1137 #if INCLUDE_ALL_GCS
1141 static void disable_adaptive_size_policy(const char* collector_name) { 1138 static void disable_adaptive_size_policy(const char* collector_name) {
1142 if (UseAdaptiveSizePolicy) { 1139 if (UseAdaptiveSizePolicy) {
3641 if (CompilationPolicyChoice >= 2) { 3638 if (CompilationPolicyChoice >= 2) {
3642 vm_exit_during_initialization( 3639 vm_exit_during_initialization(
3643 "Incompatible compilation policy selected", NULL); 3640 "Incompatible compilation policy selected", NULL);
3644 } 3641 }
3645 } 3642 }
3643 // Set NmethodSweepFraction after the size of the code cache is adapted (in case of tiered)
3644 if (FLAG_IS_DEFAULT(NmethodSweepFraction)) {
3645 FLAG_SET_DEFAULT(NmethodSweepFraction, 1 + ReservedCodeCacheSize / (16 * M));
3646 }
3647
3646 3648
3647 // Set heap size based on available physical memory 3649 // Set heap size based on available physical memory
3648 set_heap_size(); 3650 set_heap_size();
3649 3651
3650 #if INCLUDE_ALL_GCS 3652 #if INCLUDE_ALL_GCS