Introduce java.lang.invoke.VarHandle APIs.
These are present in preparation for OpenJDK 9 to allow VM support for
VarHandle accessors and fences to be developed. For this initial
import the VarHandle APIs are hidden and unimplemented.
The implementation path will follow the approach taken with the
MethodHandle API: public API compatability and alternative
implementation strategy based on VM functionality.
The files in this CL under ojluni/ define the APIs and are based on
the corresponding files in upstream OpenJDK 9+181.
Bug: 65872996
Test: m -j32
Change-Id: I678ab2239507b349a9701a4a6f5bbc92bf18b40d
diff --git a/openjdk_java_files.bp b/openjdk_java_files.bp
index 6d9d8d4..ac0103e 100644
--- a/openjdk_java_files.bp
+++ b/openjdk_java_files.bp
@@ -256,6 +256,7 @@
"ojluni/src/main/java/java/lang/invoke/MutableCallSite.java",
"ojluni/src/main/java/java/lang/invoke/Stable.java",
"ojluni/src/main/java/java/lang/invoke/Transformers.java",
+ "ojluni/src/main/java/java/lang/invoke/VarHandle.java",
"ojluni/src/main/java/java/lang/invoke/VolatileCallSite.java",
"ojluni/src/main/java/java/lang/invoke/WrongMethodTypeException.java",
"ojluni/src/main/java/java/net/AbstractPlainDatagramSocketImpl.java",