RFR: 8326603: Test com/sun/jdi/EATests.java#id0 performs synchronization on a value based class

Alex Menkov amenkov at openjdk.org
Thu Feb 12 02:34:43 UTC 2026


On Wed, 11 Feb 2026 22:26:18 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> The fix updates the test to not synchronize on `Integer`, and use `Object` instead
>
> test/jdk/com/sun/jdi/EATests.java line 2408:
> 
>> 2406:         printStack(bpe.thread());
>> 2407:         @SuppressWarnings("unused")
>> 2408:         ObjectReference o = getLocalRef(bpe.thread().frame(1), Object.class.getName(), "l1");
> 
> The testcase tried to synchronize on the ValueBased class intentionally. So it can't be just updated to use non-value based class. 
> 
> I don't know how to implement the regression test for https://bugs.openjdk.org/browse/JDK-8324881 though.

Good point, thank you.
Need to rethink the issue

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29679#discussion_r2796480892


More information about the serviceability-dev mailing list