mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8256999: Add C2 intrinsic for Reference.refersTo and PhantomReference::refersTo
Reviewed-by: pliden, vlivanov, rkennke, eosterlund, shade
This commit is contained in:
parent
c5d95071df
commit
816e8f83b8
20 changed files with 320 additions and 134 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
package java.lang.ref;
|
||||
|
||||
import jdk.internal.vm.annotation.IntrinsicCandidate;
|
||||
|
||||
/**
|
||||
* Phantom reference objects, which are enqueued after the collector
|
||||
|
@ -66,6 +67,7 @@ public class PhantomReference<T> extends Reference<T> {
|
|||
* do reference processing concurrently.
|
||||
*/
|
||||
@Override
|
||||
@IntrinsicCandidate
|
||||
native final boolean refersTo0(Object o);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue