RFR: 8361367: AOT ExcludedClasses.java test failed with missing constant pool logs
Ioi Lam
iklam at openjdk.org
Tue Jul 8 17:37:44 UTC 2025
On Mon, 7 Jul 2025 07:43:30 GMT, David Holmes <dholmes 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
Thanks @dholmes-ora @vnkozlov for the review
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26136#issuecomment-3049762957
More information about the hotspot-runtime-dev
mailing list