RFR: 8361367: AOT ExcludedClasses.java test failed with missing constant pool logs

David Holmes dholmes at openjdk.org
Mon Jul 7 07:45:40 UTC 2025


On Fri, 4 Jul 2025 16:46:07 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> This is a test bug.
> 
> The failures happen with `-Xcomp`. The following method is executed completely in compiled code:
> 
> 
> static int hotSpot() {
>     ShouldBeExcluded s = new ShouldBeExcluded();
>     [.....]
>     return counter + s.m() + s.f + b.m() + b.f;
> }
> 
> 
> 
> C1 can generate code for reading `s.f` without resolving the `ShouldBeExcluded:f:I` reference inside the constant pool. Therefore, I removed two log messages from the test that may not be printed if the compiler happens to compile the corresponding bytecodes.

Seems reasonable.

Thanks

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26136#pullrequestreview-2992583463


More information about the hotspot-runtime-dev mailing list