RFR: 8313901: [TESTBUG] test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java fails with java.lang.VirtualMachineError [v3]
Kimura Yukihiro
duke at openjdk.org
Fri Aug 18 10:26:26 UTC 2023
On Fri, 18 Aug 2023 10:19:13 GMT, Kimura Yukihiro <duke at openjdk.org> wrote:
>> I would like to fix this issue because it is difficult for testers to understand why the test failed.
>> There is no risk as I just added an assertion message instead of exit code error.
>> I would appreciate it if someone could review the fix.
>
> Kimura Yukihiro has updated the pull request incrementally with one additional commit since the last revision:
>
> 8313901: [TESTBUG] test/hotspot/jtreg/compiler/codecache/CodeCacheFullCountTest.java fails with java.lang.VirtualMachineError
I fixed the code again, because the message is printed to stderr in the case of JBS.
The message is output to stdout if VM has not initialized,
but this test always throws VirtualMachineError and message is printed to stderr, if adapters could not be allocated.
if (!is_init_completed()) {
// Don't throw exceptions during VM initialization because java.lang.* classes
// might not have been initialized, causing problems when constructing the
// Java exception object.
vm_exit_during_initialization("Out of space in CodeCache for adapters");
} else {
THROW_MSG_NULL(vmSymbols::java_lang_VirtualMachineError(), "Out of space in CodeCache for adapters");
}
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15329#issuecomment-1683700133
More information about the hotspot-compiler-dev
mailing list