Integrated: 8361367: AOT ExcludedClasses.java test failed with missing constant pool logs
Ioi Lam
iklam at openjdk.org
Tue Jul 8 17:37:45 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.
This pull request has now been integrated.
Changeset: 92712ef4
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/92712ef45dd81fa9f03fbd6427f8c1507f28e62b
Stats: 4 lines in 1 file changed: 0 ins; 3 del; 1 mod
8361367: AOT ExcludedClasses.java test failed with missing constant pool logs
Reviewed-by: dholmes, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/26136
More information about the hotspot-runtime-dev
mailing list