RFR: 8342295: compiler/jvmci/TestJVMCISavedProperties.java fails due to garbage in output [v2]

duke duke at openjdk.org
Sat Oct 19 18:51:03 UTC 2024


On Fri, 18 Oct 2024 17:03:28 GMT, Tomáš Zezula <duke at openjdk.org> wrote:

>> The `compiler/jvmci/TestJVMCISavedProperties` test fails due to overlapping output from the saved system properties. The initialization of `savedProperties` in `jdk.vm.ci.services.Services` is correctly synchronized, the issue suggests that two separate libjvmci compiler isolates are each printing their own set of saved properties.
>> 
>> In a successful test run, the `CompileBroker` thread aborts the VM before it completes initialization, displaying the error message `Cannot use JVMCI compiler: Value of jvmci.Compiler is “null”` (due to the `-Djvmci.Compiler=null` setting), and the message `DONE IN MAIN` is never printed. However, in the failed test output, the `DONE IN MAIN` message appears, indicating that the VM initialization completed and created the `JVMCIRuntime` instance. The `CompileBroker` thread might have concurrently initialized `JVMCIRuntime` in another isolate. Since each `JVMCIRuntime` initialization outputs system properties, this is likely the cause of the overlapping output.
>> 
>> The proposed solution is to use the `-XX:+EnableJVMCI` flag instead of `-XX:+UseJVMCICompiler`, to avoid this issue.
>
> Tomáš Zezula has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
> 
>   8342295: compiler/jvmci/TestJVMCISavedProperties.java fails due to garbage in output

@tzezula 
Your change (at version 7849ba677388c1f2c10507d98affcfdc3cd54229) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/21583#issuecomment-2424138147


More information about the hotspot-compiler-dev mailing list