diff src/share/vm/code/debugInfoRec.cpp @ 3650:0e8a2a629afb

Pass-by compilation broker.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Wed, 16 Nov 2011 21:27:28 +0100
parents 5857923e563c
children 597bc897257d
line wrap: on
line diff
--- a/src/share/vm/code/debugInfoRec.cpp	Wed Nov 16 16:46:32 2011 +0100
+++ b/src/share/vm/code/debugInfoRec.cpp	Wed Nov 16 21:27:28 2011 +0100
@@ -280,7 +280,7 @@
 // must call add_safepoint before: it sets PcDesc and this routine uses
 // the last PcDesc set
 void DebugInformationRecorder::describe_scope(int         pc_offset,
-                                              ciMethod*   method,
+                                              methodHandle   method,
                                               int         bci,
                                               bool        reexecute,
                                               bool        rethrow_exception,
@@ -307,7 +307,7 @@
   stream()->write_int(sender_stream_offset);
 
   // serialize scope
-  jobject method_enc = (method == NULL)? NULL: method->constant_encoding();
+  jobject method_enc = JNIHandles::make_local(Thread::current(), method());
   stream()->write_int(oop_recorder()->find_index(method_enc));
   stream()->write_bci(bci);
   assert(method == NULL ||