[lworld] RFR: 8287030: Remove references to Objects.newIdentity

Roger Riggs rriggs at openjdk.java.net
Thu May 19 16:00:40 UTC 2022


On Thu, 19 May 2022 15:53:48 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> `new Object()` is again a valid way to construct a simple identity object.
> As per the [JEP Draft Value Objects (Preview)](https://openjdk.java.net/jeps/8277163).
> 
> The method `java.util.Objects.newIdentity()` is no longer needed

A hotspot test references Objects.newIdentity.   `test/hotspot/jtreg/compiler/c2/irTests/TestStripMiningDropsSafepoint.java`
Should I modify this test also?

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

PR: https://git.openjdk.java.net/valhalla/pull/692



More information about the valhalla-dev mailing list