hotspot/src/share/vm/prims/jvm.cpp
changeset 46327 91576389a517
parent 44203 d2d435372329
parent 46289 1904e7ec236e
child 46329 53ccc37bda19
--- a/hotspot/src/share/vm/prims/jvm.cpp	Mon Mar 13 19:59:41 2017 +0000
+++ b/hotspot/src/share/vm/prims/jvm.cpp	Tue Mar 14 14:07:24 2017 -0400
@@ -549,9 +549,9 @@
     THROW_MSG_(vmSymbols::java_lang_IllegalArgumentException(), "not enough space in buffers", NULL);
   }
 
-  Handle result = StackWalk::walk(stackStream_h, mode, skip_frames, frame_count,
-                                  start_index, frames_array_h, CHECK_NULL);
-  return JNIHandles::make_local(env, result());
+  oop result = StackWalk::walk(stackStream_h, mode, skip_frames, frame_count,
+                               start_index, frames_array_h, CHECK_NULL);
+  return JNIHandles::make_local(env, result);
 JVM_END
 
 
@@ -684,7 +684,7 @@
       // This can safepoint and redefine method, so need both new_obj and method
       // in a handle, for two different reasons.  new_obj can move, method can be
       // deleted if nothing is using it on the stack.
-      m->method_holder()->add_member_name(new_obj(), false);
+      m->method_holder()->add_member_name(new_obj, false);
     }
   }