mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8077257: Use CanUseSafeFetch instead of probing SafeFetch stub directly
Reviewed-by: simonis
This commit is contained in:
parent
1baf145d9e
commit
3d93d62722
1 changed files with 1 additions and 1 deletions
|
@ -2635,7 +2635,7 @@ static bool checked_mprotect(char* addr, size_t size, int prot) {
|
|||
//
|
||||
if (!os::Aix::xpg_sus_mode()) {
|
||||
|
||||
if (StubRoutines::SafeFetch32_stub()) {
|
||||
if (CanUseSafeFetch32()) {
|
||||
|
||||
const bool read_protected =
|
||||
(SafeFetch32((int*)addr, 0x12345678) == 0x12345678 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue