hotspot/src/os/aix/vm/os_aix.cpp
changeset 30234 aa6bfe87720b
parent 30139 a2ae06b774e5
child 30240 a7ba42fa1df6
equal deleted inserted replaced
30233:526072aec162 30234:aa6bfe87720b
  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