mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8271862: C2 intrinsic for Reference.refersTo() is often not used
Reviewed-by: kbarrett, mchung
This commit is contained in:
parent
abebbe2335
commit
3f723ca457
2 changed files with 14 additions and 3 deletions
|
@ -69,8 +69,12 @@ public class PhantomReference<T> extends Reference<T> {
|
|||
* do reference processing concurrently.
|
||||
*/
|
||||
@Override
|
||||
boolean refersToImpl(T obj) {
|
||||
return refersTo0(obj);
|
||||
}
|
||||
|
||||
@IntrinsicCandidate
|
||||
native final boolean refersTo0(Object o);
|
||||
private native boolean refersTo0(Object o);
|
||||
|
||||
/**
|
||||
* Creates a new phantom reference that refers to the given object and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue