mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-11 13:15:32 -04:00
Uplaod the page trap fix patch
This commit is contained in:
parent
4797b35771
commit
6cbc57072e
17
patches/jdk8u_android_page_trap_fix.diff
Normal file
17
patches/jdk8u_android_page_trap_fix.diff
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/hotspot/src/share/vm/runtime/os.cpp b/hotspot/src/share/vm/runtime/os.cpp
|
||||||
|
index 96eed036..49a2ee1f 100644
|
||||||
|
--- a/hotspot/src/share/vm/runtime/os.cpp
|
||||||
|
+++ b/hotspot/src/share/vm/runtime/os.cpp
|
||||||
|
@@ -1329,7 +1329,11 @@ void os::block_on_serialize_page_trap() {
|
||||||
|
// Generally, it is unsafe to manipulate locks in signal handlers, but in
|
||||||
|
// this case, it's OK as the signal is synchronous and we know precisely when
|
||||||
|
// it can occur.
|
||||||
|
- Thread::muxAcquire(&SerializePageLock, "set_memory_serialize_page");
|
||||||
|
+ ParkEvent *ev = NULL;
|
||||||
|
+ if(ThreadLocalStorage::is_initialized()) {
|
||||||
|
+ ev = ThreadLocalStorage::get_thread_slow()->_MuxEvent;
|
||||||
|
+ }
|
||||||
|
+ Thread::muxAcquireW(&SerializePageLock, ev);
|
||||||
|
Thread::muxRelease(&SerializePageLock);
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user