mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8220051: Remove global safepoint code
Reviewed-by: mdoerr, dcubed, eosterlund, bulasevich, coleenp
This commit is contained in:
parent
8d84cf5a3b
commit
bf41f548e1
86 changed files with 263 additions and 927 deletions
|
@ -56,6 +56,7 @@
|
|||
#include "runtime/orderAccess.hpp"
|
||||
#include "runtime/osThread.hpp"
|
||||
#include "runtime/perfMemory.hpp"
|
||||
#include "runtime/safepointMechanism.hpp"
|
||||
#include "runtime/sharedRuntime.hpp"
|
||||
#include "runtime/statSampler.hpp"
|
||||
#include "runtime/stubRoutines.hpp"
|
||||
|
@ -2531,7 +2532,7 @@ LONG WINAPI topLevelExceptionFilter(struct _EXCEPTION_POINTERS* exceptionInfo) {
|
|||
// the rest are checked explicitly now.
|
||||
CodeBlob* cb = CodeCache::find_blob(pc);
|
||||
if (cb != NULL) {
|
||||
if (os::is_poll_address(addr)) {
|
||||
if (SafepointMechanism::is_poll_address(addr)) {
|
||||
address stub = SharedRuntime::get_poll_stub(pc);
|
||||
return Handle_Exception(exceptionInfo, stub);
|
||||
}
|
||||
|
@ -4115,24 +4116,6 @@ jint os::init_2(void) {
|
|||
return JNI_OK;
|
||||
}
|
||||
|
||||
// Mark the polling page as unreadable
|
||||
void os::make_polling_page_unreadable(void) {
|
||||
DWORD old_status;
|
||||
if (!VirtualProtect((char *)_polling_page, os::vm_page_size(),
|
||||
PAGE_NOACCESS, &old_status)) {
|
||||
fatal("Could not disable polling page");
|
||||
}
|
||||
}
|
||||
|
||||
// Mark the polling page as readable
|
||||
void os::make_polling_page_readable(void) {
|
||||
DWORD old_status;
|
||||
if (!VirtualProtect((char *)_polling_page, os::vm_page_size(),
|
||||
PAGE_READONLY, &old_status)) {
|
||||
fatal("Could not enable polling page");
|
||||
}
|
||||
}
|
||||
|
||||
// combine the high and low DWORD into a ULONGLONG
|
||||
static ULONGLONG make_double_word(DWORD high_word, DWORD low_word) {
|
||||
ULONGLONG value = high_word;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue