RFR: 8276711: compiler/codecache/cli tests failing when SegmentedCodeCache used with -Xint [v3]
Vladimir Kozlov
kvn at openjdk.java.net
Thu Mar 3 03:42:59 UTC 2022
On Thu, 3 Mar 2022 01:55:30 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> 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?
It is reachable for `-XX:-TieredCompilation` when only C2 is used. Or when only tier1 C1 is used with `-XX:TieredStopAtLevel=1`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7650
More information about the hotspot-dev
mailing list