On Wed, 13 May 2026 13:26:54 GMT, Marc Chevalier <[email protected]> wrote:
>> Tobias Hartmann has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> Review comments and test fix
>
> test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestDeadInlineTypeFieldOffset.java
> line 37:
>
>> 35: * @run main ${test.main.class}
>> 36: * @run main/othervm -XX:+UnlockDiagnosticVMOptions
>> -XX:+IgnoreUnrecognizedVMOptions
>> 37: * -XX:+StressIGVN -XX:StressSeed=8
>> -XX:+AlwaysIncrementalInline
>
> The hardcoded is on purpose? It reproduces so rarely otherwise?
Yes, it's on purpose to make it reliably reproduce the issue and the usual way
of how we design these tests. I.e. one run with fixed seed and one without. As
we discussed offline, there are several alternatives to this approach,
including `RepeatCompilation` etc. We decided on the current approach a while
ago but we can surely revisit. It's out of scope of this PR though 🙂
Testing also revealed that PreloadClasses is required to make sure that the
`@NullRestricted` annotation is respected, so I added a corresponding
`@requires`.
-------------
PR Review Comment:
https://git.openjdk.org/valhalla/pull/2433#discussion_r3235014245