src/cpu/sparc/vm/sharedRuntime_sparc.cpp

changeset 1045
70998f2e05ef
parent 797
f8199438385b
child 1145
e5b0439ef4ae
     1.1 --- a/src/cpu/sparc/vm/sharedRuntime_sparc.cpp	Mon Mar 02 14:00:23 2009 -0700
     1.2 +++ b/src/cpu/sparc/vm/sharedRuntime_sparc.cpp	Mon Mar 02 14:03:03 2009 -0700
     1.3 @@ -2161,6 +2161,18 @@
     1.4      __ restore();
     1.5    }
     1.6  
     1.7 +  // RedefineClasses() tracing support for obsolete method entry
     1.8 +  if (RC_TRACE_IN_RANGE(0x00001000, 0x00002000)) {
     1.9 +    // create inner frame
    1.10 +    __ save_frame(0);
    1.11 +    __ mov(G2_thread, L7_thread_cache);
    1.12 +    __ set_oop_constant(JNIHandles::make_local(method()), O1);
    1.13 +    __ call_VM_leaf(L7_thread_cache,
    1.14 +         CAST_FROM_FN_PTR(address, SharedRuntime::rc_trace_method_entry),
    1.15 +         G2_thread, O1);
    1.16 +    __ restore();
    1.17 +  }
    1.18 +
    1.19    // We are in the jni frame unless saved_frame is true in which case
    1.20    // we are in one frame deeper (the "inner" frame). If we are in the
    1.21    // "inner" frames the args are in the Iregs and if the jni frame then

mercurial