RFR: 8276711: compiler/codecache/cli tests failing when SegmentedCodeCache used with -Xint [v3]

Coleen Phillimore coleenp at openjdk.java.net
Wed Mar 2 22:54:11 UTC 2022


On Wed, 2 Mar 2022 22:34:24 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Make TieredStopAtLevel=0 also ignore SegmentedCodeHeap and not create a nmethod heaps, and fix tests accordingly.
>
> src/hotspot/share/code/codeCache.cpp line 371:
> 
>> 369:     // No segmentation: use a single code heap
>> 370:     return (code_blob_type == CodeBlobType::All);
>> 371:   } else if (CompilerConfig::is_interpreter_only()) {
> 
> Doesn't this introduce a very subtle change in behaviour in relation to the handling of `MethodNonProfiled`?
> @vnkozlov please confirm this is what you intended - I don't know the implications.

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.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7650


More information about the hotspot-dev mailing list