changeset 3564:f79b652d4437

let hotspot recognize graal's way of doing safepoints (mov instead of test)
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 01 Sep 2011 09:38:36 +0200
parents 8780fa370aab
children dbf8d6a4201f 76a7f1732bb0
files src/cpu/x86/vm/nativeInst_x86.hpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/nativeInst_x86.hpp	Wed Aug 31 14:55:40 2011 +0200
+++ b/src/cpu/x86/vm/nativeInst_x86.hpp	Thu Sep 01 09:38:36 2011 +0200
@@ -549,8 +549,10 @@
       return false;
     }
   } else {
-    if (ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl &&
-        ubyte_at(1) == 0x05) { // 00 rax 101
+    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);
+    } else if (ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl && ubyte_at(1) == 0x05) { // 00 rax 101
       address fault = addr_at(6) + int_at(2);
       return os::is_poll_address(fault);
     } else {