hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp
changeset 6756 01ac7b1701eb
parent 6461 cfc616b49f58
child 6758 2c14f9ec1cbf
--- a/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Tue Oct 05 08:57:20 2010 -0700
+++ b/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Tue Oct 05 11:16:12 2010 -0700
@@ -488,7 +488,9 @@
   }
 
   if (compilation()->env()->dtrace_method_probes()) {
-    __ movoop(Address(rsp, 0), method()->constant_encoding());
+    __ get_thread(rax);
+    __ movptr(Address(rsp, 0), rax);
+    __ movoop(Address(rsp, sizeof(void*)), method()->constant_encoding());
     __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, SharedRuntime::dtrace_method_exit)));
   }