summaryrefslogtreecommitdiff
path: root/ojluni/src/main/java/sun/misc/Unsafe.java
Commit message (Collapse)AuthorAgeFilesLines
* Use annotated stubs for sun.misc.UnsafeNikita Iashchenko2021-03-311-52/+0
| | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api Change-Id: Ic72aba4f3abfcdabdbec7b52ece8c0c927aaea71
* Mark sun.misc.Unsafe APIs as stableNikita Iashchenko2021-03-091-31/+95
| | | | | | | | Bug: 154796679 Test: m stable.art.module.platform.api.stubs.source-update-current-api m legacy.art.module.platform.api.stubs.source-update-current-api Test: m update-api Change-Id: Ia2a208cb822c9a5d698550563a45ba28e4f6d93f
* Add API docs for sun.misc.UnsafeNikita Iashchenko2021-02-101-47/+280
| | | | | | Bug: 124232146 Test: m update-api Change-Id: I8bed60f653941dbf8b7e6666b7045bae2158a69a
* Revert "Revert "Revert^2 "Use the runtime's implementation for park/unpark"""Charles Munger2018-11-051-16/+3
| | | | | | | | This reverts commit 782e160ebe8db9398ef39fcd84d2330eac825013. Reason for revert: Fixing ThreadStress timeouts. Change-Id: I94d8ea808afdd537800738fc242636e5b35485d9
* Revert "Revert^2 "Use the runtime's implementation for park/unpark""Nicolas Geoffray2018-11-011-3/+16
| | | | | | | | | | This reverts commit 080525b3bd04dd972a7e4c68054dc2bc9b870ae9. Bug: 28845097 Reason for revert: ThreadStress flake Change-Id: Idd71edb5ab739f5fc0495e80ae79486bd2d8fe74
* Revert^2 "Use the runtime's implementation for park/unpark"Charles Munger2018-10-311-16/+3
| | | | | | | | | | | | Bug: 28845097 Test: cts-tradefed run cts -m CtsLibcoreTestCases Test: The following sequence of invocations hangs both before and after this CL: LockSupport.unpark(Thread.currentThread()); LockSupport.parkUntil(-1); LockSupport.park(); Change-Id: I96daba0977550faf3a77a9a66c63428d7e12eb2f
* Revert "Use the runtime's implementation for park/unpark"Filip Pavlis2018-10-311-3/+16
| | | | | | | | | | | | | | | | | | | | | | This reverts commit f62e812bcf9b566599ff565ab469f90907fb11a6. Reason for revert: This CL unfortunately breaks: sdk_gphone_x86-sdk_addon_mac sdk_mac Following error: art/runtime/thread.cc:370:4: warning: "LockSupport.park/unpark implemented as noops without FUTEX support." [-W#warnings] #warning "LockSupport.park/unpark implemented as noops without FUTEX support." ^ art/runtime/thread.cc:295:24: error: unused parameter 'is_absolute' [-Werror,-Wunused-parameter] void Thread::Park(bool is_absolute, int64_t time) { ^ art/runtime/thread.cc:295:45: error: unused parameter 'time' [-Werror,-Wunused-parameter] void Thread::Park(bool is_absolute, int64_t time) { ^ 1 warning and 2 errors generated. Change-Id: Ifa5e6be9c73ef9b03fc6854f2087f487949ad6f7
* Use the runtime's implementation for park/unparkCharles Munger2018-10-301-16/+3
| | | | | | | | | | | | Bug: 28845097 Test: cts-tradefed run cts -m CtsLibcoreTestCases Test: The following sequence of invocations hangs both before and after this CL: LockSupport.unpark(Thread.currentThread()); LockSupport.parkUntil(-1); LockSupport.park(); Change-Id: I7ca5d5981d44823c7d6732a59e390dc55927a6ce
* Drop all 35 patches around VMStack.getCall{erClass,ingClassLoader}.Tobias Thierer2018-07-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this CL, Android was carrying 27 documented and 8 undocumented patches to replace: Reflection.getCallerClass() -> VMStack.getCallerClass1() and ClassLoader.getClassLoader(Reflection.getCallerClass()) (or similar) -> VMStack.getCallingClassLoader(). ClassLoader.getClassLoader(class) returns null (signifying the boot classloader) if class == null, else it returns class.getClassLoader)(). This CL integrates Reflection.getCallerClass() and ClassLoader.getClassLoader() in order to drop all of these Android patches; after this CL, both VMStack.getCallerClass1() and VMStack.getCallingClassLoader() are now only used from tests. Their removal is left to a follow-up CL. Notes: - After this CL, Logger.java is exactly identical to upstream OpenJDK 8u121-b13. - The semantics of Reflection.getCallerClass() after this CL match the semantics of the (now removed) method VMStack.getCallerClass1(), but they are different from the RI's Reflection.getCallerClass(). All current callers of Reflection.getCallerClass() expect the RI semantics, therefore these semantics should be changed in a follow-up CL (bug 111800372). Test: CtsLibcoreTestCases Test: m test-art-host-gtest-jni_internal_test64 Bug: 111850480 Change-Id: I3d177805f7a28a4f32b69d3344b3c4b7564c327a
* jni: Switch to @FastNative for all JNI functions.Igor Murashkin2017-02-211-0/+58
| | | | | | | | | | | | Switches all (248) methods that previously used !bang JNI in art/libcore to all use @FastNative. As a nice benefit, this should be about 1.5x faster than before for those method calls. This measures out to a 3% startup time improvement for system_server. Test: make test-art-host Bug: 34955272 Change-Id: I0881f401c7660c79f275235362777bfa58241deb
* Unsafe: Downstream select methods needed for some of 1.8 java.util.concurrentIgor Murashkin2016-03-071-1/+148
| | | | | | | | | | Adds Sun.misc.Unsafe#loadFence, storeFence, fullFence, and a couple of CAS-based atomic operations. Downstreamed from jdk9 b84b5f6d9ed5 Bug: 26264765 Change-Id: Ie4142b09c1ba18d9f0fc37a627797798822d1abf
* Revert "Revert "Update sun.misc.Unsafe.""Narayan Kamath2016-02-011-0/+396
| | | | This reverts commit 6e91d0c85a31020388bd165bcbefa595888a7dd1.
* Revert "Update sun.misc.Unsafe."Narayan Kamath2016-02-011-396/+0
| | | | | | This reverts commit 5ef64a3267fe516dbe032af2d7de243bdfbc4e29. Change-Id: I5b3fe02b8a1143c9599d69ac8512d037a0c88d4d
* Update sun.misc.Unsafe.Narayan Kamath2016-02-011-0/+396
Change-Id: If58f42ecd773feb746eabb206369327852d01e0e