src/java.base/share/classes/sun/reflect/UnsafeQualifiedFieldAccessorImpl.java
Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke
*** 25,38 ****
package sun.reflect;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
! import sun.misc.Unsafe;
/**
! * Base class for sun.misc.Unsafe-based FieldAccessors for fields with
* final or volatile qualifiers. These differ from unqualified
* versions in that (1) they check for read-only status (2) they use
* the volatile forms of Unsafe get/put methods. (When accessed via
* reflection, finals act as slightly "lighter" forms of volatiles. So
* the volatile forms are heavier than necessary in terms of
--- 25,38 ----
package sun.reflect;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
! import jdk.internal.misc.Unsafe;
/**
! * Base class for jdk.internal.misc.Unsafe-based FieldAccessors for fields with
* final or volatile qualifiers. These differ from unqualified
* versions in that (1) they check for read-only status (2) they use
* the volatile forms of Unsafe get/put methods. (When accessed via
* reflection, finals act as slightly "lighter" forms of volatiles. So
* the volatile forms are heavier than necessary in terms of