RFR: 8358694: VM asserts if CodeCacheSegmentSize is not a power of 2 [v6]

Amit Kumar amitkumar at openjdk.org
Mon Jun 16 11:37:29 UTC 2025


On Mon, 16 Jun 2025 10:48:20 GMT, Damon Fenacci <dfenacci at openjdk.org> wrote:

>> Amit Kumar has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   updates testcase
>
> test/hotspot/jtreg/compiler/codecache/CodeCacheSegmentSizeTest.java line 74:
> 
>> 72:         OutputAnalyzer output = new OutputAnalyzer(pb.start());
>> 73: 
>> 74:         output.shouldContain("openjdk version"); // typical first line
> 
> The test fails here for me (the output has the string "java version", not "openjdk version").
> Maybe instead of checking this string we could check that there is no error?

This was the string for me: 

amit at a3560042:~/jdk$ ./build/linux-s390x-server-fastdebug/jdk/bin/java -XX:+UnlockExperimentalVMOptions -XX:CodeCacheSegmentSize=64 -version 
openjdk version "26-internal" 2026-03-17
OpenJDK Runtime Environment (fastdebug build 26-internal-adhoc.amit.jdk)
OpenJDK 64-Bit Server VM (fastdebug build 26-internal-adhoc.amit.jdk, mixed mode)
amit at a3560042:~/jdk$


But I will update it and check for error only.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25708#discussion_r2149725350


More information about the hotspot-compiler-dev mailing list