[lworld] RFR: 8373575: [lworld] Fix and problem list failing JDK, langtools and HotSpot tier 1 tests under --enable-preview [v5]
Leonid Mesnik
lmesnik at openjdk.org
Tue Dec 16 16:54:45 UTC 2025
On Tue, 16 Dec 2025 09:13:12 GMT, Paul Hübner <phubner at openjdk.org> wrote:
>> test/hotspot/jtreg/compiler/escapeAnalysis/Test8329757.java line 46:
>>
>>> 44: void q() {
>>> 45: int e;
>>> 46: synchronized (new Object()) {
>>
>> What motivated this change?
>
> We cannot synchronize on value classes (primitive boxes are migrated to value classes with preview mode enabled) and we throw an `IdentityException` if we attempt to do so. I've talked with the author of the test and compiler folks and it doesn't change the semantics if we change the mutex.
I think it makes sense to push this and similar changes into jdk/jdk to minimize diff for valhalla.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1793#discussion_r2624032539
More information about the valhalla-dev
mailing list