src/cpu/x86/vm/c1_LIRAssembler_x86.cpp

changeset 2185
a3f7f95b0165
parent 2146
3a294e483abc
child 2187
22e4420d19f7
     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  

mercurial