--- old/src/share/vm/runtime/advancedThresholdPolicy.cpp 2013-10-11 15:44:37.525819594 +0200 +++ new/src/share/vm/runtime/advancedThresholdPolicy.cpp 2013-10-11 15:44:37.353819600 +0200 @@ -211,7 +211,7 @@ // The main intention is to keep enough free space for C2 compiled code // to achieve peak performance if the code cache is under stress. if ((TieredStopAtLevel == CompLevel_full_optimization) && (level != CompLevel_full_optimization)) { - double current_reverse_free_ratio = CodeCache::reverse_free_ratio(); + double current_reverse_free_ratio = CodeCache::reverse_free_ratio(CodeCache::get_code_blob_type(level)); if (current_reverse_free_ratio > _increase_threshold_at_ratio) { k *= exp(current_reverse_free_ratio - _increase_threshold_at_ratio); }