RFR: 8361367: AOT ExcludedClasses.java test failed with missing constant pool logs
    Vladimir Kozlov 
    kvn at openjdk.org
       
    Mon Jul  7 23:33:39 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.
Good.
-------------
Marked as reviewed by kvn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/26136#pullrequestreview-2995540387
    
    
More information about the hotspot-runtime-dev
mailing list