8077257: Use CanUseSafeFetch instead of probing SafeFetch stub directly

Reviewed-by: simonis
This commit is contained in:
Thomas Stuefe 2015-04-08 12:51:50 +02:00
parent 1baf145d9e
commit 3d93d62722

View file

@ -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 &&