1.1 --- a/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp Tue Oct 05 08:57:20 2010 -0700 1.2 +++ b/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp Tue Oct 05 11:16:12 2010 -0700 1.3 @@ -488,7 +488,9 @@ 1.4 } 1.5 1.6 if (compilation()->env()->dtrace_method_probes()) { 1.7 - __ movoop(Address(rsp, 0), method()->constant_encoding()); 1.8 + __ get_thread(rax); 1.9 + __ movptr(Address(rsp, 0), rax); 1.10 + __ movoop(Address(rsp, sizeof(void*)), method()->constant_encoding()); 1.11 __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, SharedRuntime::dtrace_method_exit))); 1.12 } 1.13