提交 d9516d32 编写于 作者: K kvn

6935466: new CodeCache flushing code is not guarded by the flag

Summary: Add missing guard.
Reviewed-by: never
上级 d49891ed
...@@ -988,10 +988,12 @@ nmethod* CompileBroker::compile_method(methodHandle method, int osr_bci, ...@@ -988,10 +988,12 @@ nmethod* CompileBroker::compile_method(methodHandle method, int osr_bci,
} }
if (method->is_not_compilable(comp_level)) return NULL; if (method->is_not_compilable(comp_level)) return NULL;
nmethod* saved = CodeCache::find_and_remove_saved_code(method()); if (UseCodeCacheFlushing) {
if (saved != NULL) { nmethod* saved = CodeCache::find_and_remove_saved_code(method());
method->set_code(method, saved); if (saved != NULL) {
return saved; method->set_code(method, saved);
return saved;
}
} }
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册