src/share/vm/runtime/simpleThresholdPolicy.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/runtime/simpleThresholdPolicy.cpp Wed Oct 9 15:17:18 2013
--- new/src/share/vm/runtime/simpleThresholdPolicy.cpp Wed Oct 9 15:17:17 2013
*** 328,338 ****
--- 328,344 ----
}
}
break;
}
}
return MIN2(next_level, (CompLevel)TieredStopAtLevel);
+
+ next_level = MIN2(next_level, (CompLevel)TieredStopAtLevel);
+ if (CodeCache::is_full(CodeCache::get_code_blob_type(next_level))) {
+ // The CodeHeap for next_level is full, stay at current level
+ return cur_level;
+ }
+ return next_level;
}
// Determine if a method should be compiled with a normal entry point at a different level.
CompLevel SimpleThresholdPolicy::call_event(Method* method, CompLevel cur_level) {
CompLevel osr_level = MIN2((CompLevel) method->highest_osr_comp_level(),
src/share/vm/runtime/simpleThresholdPolicy.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File