hotspot/src/share/vm/runtime/sweeper.cpp
changeset 31348 c28f02c7abb5
parent 30205 0bff2f15867f
child 32401 cc58aeaec340
--- a/hotspot/src/share/vm/runtime/sweeper.cpp	Mon Jun 15 01:38:42 2015 -0400
+++ b/hotspot/src/share/vm/runtime/sweeper.cpp	Mon Jun 15 10:24:38 2015 +0200
@@ -678,7 +678,7 @@
       // ReservedCodeCacheSize
       int reset_val = hotness_counter_reset_val();
       int time_since_reset = reset_val - nm->hotness_counter();
-      int code_blob_type = (CodeCache::get_code_blob_type(nm->comp_level()));
+      int code_blob_type = CodeCache::get_code_blob_type(nm);
       double threshold = -reset_val + (CodeCache::reverse_free_ratio(code_blob_type) * NmethodSweepActivity);
       // The less free space in the code cache we have - the bigger reverse_free_ratio() is.
       // I.e., 'threshold' increases with lower available space in the code cache and a higher