Removed Reflection.getCallerClass() call from AtomicReferenceFieldUpdater (performance regression).
@@ -40,7 +40,7 @@ import java.lang.reflect.Modifier;
import java.util.function.BinaryOperator;
import java.util.function.UnaryOperator;
import sun.reflect.CallerSensitive;
-import sun.reflect.Reflection;
+
/**
* A reflection-based utility that enables atomic updates to
@@ -103,7 +103,7 @@ public abstract class AtomicReferenceFieldUpdater<T,V> {
Class<W> vclass,
String fieldName) {
return new AtomicReferenceFieldUpdaterImpl<U,W>
- (tclass, vclass, fieldName, Reflection.getCallerClass());
+ (tclass, vclass, fieldName, null);
}
/**
