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

Ioi Lam iklam at openjdk.org
Fri Jul 4 16:51:16 UTC 2025


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.

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

Commit messages:
 - 8361367: AOT ExcludedClasses.java test failed with missing constant pool logs

Changes: https://git.openjdk.org/jdk/pull/26136/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26136&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8361367
  Stats: 4 lines in 1 file changed: 0 ins; 3 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/26136.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26136/head:pull/26136

PR: https://git.openjdk.org/jdk/pull/26136


More information about the hotspot-runtime-dev mailing list