changeset 7943:a413bcd552a4

Relax safepoint polling assertion.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 05 Mar 2013 21:58:51 +0100
parents 1c05f6f747d3
children 5fc51c1ecdeb
files src/cpu/x86/vm/nativeInst_x86.hpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/nativeInst_x86.hpp	Tue Mar 05 21:21:45 2013 +0100
+++ b/src/cpu/x86/vm/nativeInst_x86.hpp	Tue Mar 05 21:58:51 2013 +0100
@@ -574,6 +574,10 @@
       return false;
     }
   } else {
+#ifdef GRAAL
+    // Graal may allocate an arbitrary register for storing the polling address.
+    return true;
+#else
     if (ubyte_at(0) == Assembler::REX_WR && ubyte_at(1) == NativeMovRegMem::instruction_code_mem2reg && ubyte_at(2) == 0x15) { // mov r10, rip[...]
       address fault = addr_at(7) + int_at(3);
       return os::is_poll_address(fault);
@@ -583,6 +587,7 @@
     } else {
       return false;
     }
+#endif
   }
 #else
   return ( ubyte_at(0) == NativeMovRegMem::instruction_code_mem2reg ||