equal
deleted
inserted
replaced
2633 // To be sure I need to check the protection afterwards. Try to |
2633 // To be sure I need to check the protection afterwards. Try to |
2634 // read from protected memory and check whether that causes a segfault. |
2634 // read from protected memory and check whether that causes a segfault. |
2635 // |
2635 // |
2636 if (!os::Aix::xpg_sus_mode()) { |
2636 if (!os::Aix::xpg_sus_mode()) { |
2637 |
2637 |
2638 if (StubRoutines::SafeFetch32_stub()) { |
2638 if (CanUseSafeFetch32()) { |
2639 |
2639 |
2640 const bool read_protected = |
2640 const bool read_protected = |
2641 (SafeFetch32((int*)addr, 0x12345678) == 0x12345678 && |
2641 (SafeFetch32((int*)addr, 0x12345678) == 0x12345678 && |
2642 SafeFetch32((int*)addr, 0x76543210) == 0x76543210) ? true : false; |
2642 SafeFetch32((int*)addr, 0x76543210) == 0x76543210) ? true : false; |
2643 |
2643 |