RFR: 8372845: C2: Fold identity hash code if object is constant [v3]

Emanuel Peter epeter at openjdk.org
Thu Dec 11 07:22:34 UTC 2025


On Wed, 10 Dec 2025 19:46:43 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

>> You can for example run it with C1 or Xint only. That would disable the test. Or someone runs it with Graal.
>> I would generally remove `@requires` from any test we can, to get more coverage.
>
> It's a test on C2 IR. What's the point in running it w/o C2?

You can always do more than just C2 IR verification. For example, we could also do result verification. That would give us coverage for C1 for example. I think it is just good practice not to have a restriction if it is not absolutely necessary.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28589#discussion_r2609462695


More information about the hotspot-dev mailing list