From 2f01e8ed55663b73787e079955d890e1ffd2983e Mon Sep 17 00:00:00 2001 From: Sorin Basca Date: Fri, 18 Jun 2021 06:44:07 +0000 Subject: Copying sun.misc.Unsafe to jdk.internal.misc From OpenJDK 10 onward, sun.misc.Unsafe has been moved to jdk.internal.misc. Trying to merge in changes from OpenJDK 11 depends on having jdk.internal.misc.Unsafe available. As sun.misc.Unsafe is still used throughout libcore code, it cannot be changed yet, so a copy is made to jdk.internal.misc.Unsafe for now. As OpenJDK 11 is merged in and sun.misc.Unsafe references will disappear, it can be deprecated and eventually made to call into jdk.internal.misc.Unsafe. Test: m Test: art/test/testrunner/testrunner.py -t 004-UnsafeTest Test: art/test/testrunner/testrunner.py -t 2235-JdkUnsafeTest Bug: 190470684 Change-Id: I472a9778a1001fbd7c3ecce0dfa58ea6d632f158 --- compiler/optimizing/intrinsics.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/optimizing/intrinsics.h') diff --git a/compiler/optimizing/intrinsics.h b/compiler/optimizing/intrinsics.h index 9bc8c5126b..738dac0c4a 100644 --- a/compiler/optimizing/intrinsics.h +++ b/compiler/optimizing/intrinsics.h @@ -295,6 +295,9 @@ UNREACHABLE_INTRINSIC(Arch, StringLength) \ UNREACHABLE_INTRINSIC(Arch, UnsafeLoadFence) \ UNREACHABLE_INTRINSIC(Arch, UnsafeStoreFence) \ UNREACHABLE_INTRINSIC(Arch, UnsafeFullFence) \ +UNREACHABLE_INTRINSIC(Arch, JdkUnsafeLoadFence) \ +UNREACHABLE_INTRINSIC(Arch, JdkUnsafeStoreFence) \ +UNREACHABLE_INTRINSIC(Arch, JdkUnsafeFullFence) \ UNREACHABLE_INTRINSIC(Arch, VarHandleFullFence) \ UNREACHABLE_INTRINSIC(Arch, VarHandleAcquireFence) \ UNREACHABLE_INTRINSIC(Arch, VarHandleReleaseFence) \ -- cgit v1.2.3-59-g8ed1b