hotspot/src/share/vm/code/compiledMethod.cpp
changeset 46796 ec791efbdecf
parent 46630 75aa3e39d02c
--- a/hotspot/src/share/vm/code/compiledMethod.cpp	Thu Aug 10 18:09:19 2017 -0700
+++ b/hotspot/src/share/vm/code/compiledMethod.cpp	Fri Aug 11 16:29:00 2017 -0400
@@ -209,6 +209,14 @@
                        pd->return_oop());
 }
 
+ScopeDesc* CompiledMethod::scope_desc_near(address pc) {
+  PcDesc* pd = pc_desc_near(pc);
+  guarantee(pd != NULL, "scope must be present");
+  return new ScopeDesc(this, pd->scope_decode_offset(),
+                       pd->obj_decode_offset(), pd->should_reexecute(), pd->rethrow_exception(),
+                       pd->return_oop());
+}
+
 void CompiledMethod::cleanup_inline_caches(bool clean_all/*=false*/) {
   assert_locked_or_safepoint(CompiledIC_lock);