8246027: Minimal fastdebug build broken after JDK-8245801

Added COMPILER2_PRESENT macro

Reviewed-by: shade, thartmann
This commit is contained in:
Ao Qi 2020-05-28 09:15:25 +02:00
parent 8ea971e373
commit dfc7905a10

View file

@ -3088,7 +3088,7 @@ void InstanceKlass::add_osr_nmethod(nmethod* n) {
#ifndef PRODUCT
if (TieredCompilation) {
nmethod* prev = lookup_osr_nmethod(n->method(), n->osr_entry_bci(), n->comp_level(), true);
assert(prev == NULL || !prev->is_in_use() || StressRecompilation,
assert(prev == NULL || !prev->is_in_use() COMPILER2_PRESENT(|| StressRecompilation),
"redundant OSR recompilation detected. memory leak in CodeCache!");
}
#endif