RFR: 8276711: compiler/codecache/cli tests failing when SegmentedCodeCache used with -Xint [v3]
David Holmes
dholmes at openjdk.java.net
Thu Mar 3 01:59:05 UTC 2022
On Thu, 3 Mar 2022 00:15:24 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> According to my conversation with Rickard, TierStopAtLevel=0 is the same as -Xint. If TieredStopAtLevel=0, the compiler won't allocate nmethods in the MethodProfiled and MethodNonProfiled areas anyway, so this won't allocate them now.
>
> I think this code was missed during Igor's V. changes which introduced `CompilerConfig::is_interpreter_only()`.
> Coleen is correct, with `TieredStopAtLevel=0` all JIT compilers are disabled. `MethodNonProfiled` is codeheap for tier1 (C1) and tier4 (C2) compiled nmethods. It does not make sense to have such codeheap when compilation disabled.
Okay, so does that mean this block:
} else {
// No TieredCompilation: we only need the non-nmethod and non-profiled code heap
return (code_blob_type == CodeBlobType::NonNMethod) ||
(code_blob_type == CodeBlobType::MethodNonProfiled);
}
is actually unreachable?
-------------
PR: https://git.openjdk.java.net/jdk/pull/7650
More information about the hotspot-dev
mailing list