mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8254696: safepointMechanism_aix needs adaptation for JDK-8253180
Reviewed-by: dholmes, clanger
This commit is contained in:
parent
b509e31e5f
commit
9eeeb8a20f
@ -37,6 +37,10 @@ void SafepointMechanism::pd_initialize() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Poll bit values
|
||||
_poll_word_armed_value = poll_bit();
|
||||
_poll_word_disarmed_value = ~_poll_word_armed_value;
|
||||
|
||||
// Allocate one protected page
|
||||
char* map_address = (char*)MAP_FAILED;
|
||||
const size_t page_size = os::vm_page_size();
|
||||
@ -104,8 +108,8 @@ void SafepointMechanism::pd_initialize() {
|
||||
if (!os::guard_memory((char*)_polling_page, page_size)) {
|
||||
fatal("Could not protect polling page");
|
||||
}
|
||||
intptr_t bad_page_val = reinterpret_cast<intptr_t>(map_address),
|
||||
good_page_val = bad_page_val + os::vm_page_size();
|
||||
_poll_armed_value = reinterpret_cast<void*>(bad_page_val + poll_bit());
|
||||
_poll_disarmed_value = reinterpret_cast<void*>(good_page_val);
|
||||
uintptr_t bad_page_val = reinterpret_cast<uintptr_t>(map_address),
|
||||
good_page_val = bad_page_val + os::vm_page_size();
|
||||
_poll_page_armed_value = bad_page_val + poll_bit();
|
||||
_poll_page_disarmed_value = good_page_val;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user