--- old/src/share/vm/code/codeCache.hpp 2015-06-11 12:26:51.314334441 +0200 +++ new/src/share/vm/code/codeCache.hpp 2015-06-11 12:26:51.182333787 +0200 @@ -190,7 +190,12 @@ static void set_needs_cache_clean(bool v) { _needs_cache_clean = v; } static void clear_inline_caches(); // clear all inline caches - // Returns the CodeBlobType for nmethods of the given compilation level + // Returns the CodeBlobType for the given nmethod + static int get_code_blob_type(nmethod* nm) { + return get_code_heap(nm)->code_blob_type(); + } + + // Returns the CodeBlobType for the given compilation level static int get_code_blob_type(int comp_level) { if (comp_level == CompLevel_none || comp_level == CompLevel_simple || @@ -288,7 +293,7 @@ // Iterate over all CodeBlobs _code_blob_type = CodeBlobType::All; } else if (nm != NULL) { - _code_blob_type = CodeCache::get_code_blob_type(nm->comp_level()); + _code_blob_type = CodeCache::get_code_blob_type(nm); } else { // Only iterate over method code heaps, starting with non-profiled _code_blob_type = CodeBlobType::MethodNonProfiled;