RFR: 8256999: Add C2 intrinsic for Reference.refersTo and PhantomReference::refersTo
Vladimir Kozlov
kvn at openjdk.java.net
Wed Nov 25 03:37:08 UTC 2020
JDK-8188055 added the function Reference.refersTo. For performance, the supporting native methods Reference.refersTo0 and PhantomReference.refersTo0 should be intrinsified by C2.
Initial patch was prepared by @fisk.
Tested hs-tier1-4. Added new compiler tests to test intrinsics.
Ran new test with Shenandoah. Found only one issue. As result I disable PhantomReference::refersTo intrinsic for COOP+ Shenandoah combination. Someone from Shenandoah team have to test changes if that is enough.
-------------
Commit messages:
- 8256999: Add C2 intrinsic for Reference.refersTo and PhantomReference::refersTo
Changes: https://git.openjdk.java.net/jdk/pull/1425/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1425&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8256999
Stats: 381 lines in 16 files changed: 242 ins; 61 del; 78 mod
Patch: https://git.openjdk.java.net/jdk/pull/1425.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/1425/head:pull/1425
PR: https://git.openjdk.java.net/jdk/pull/1425
More information about the core-libs-dev
mailing list