hotspot/src/share/vm/code/nmethod.cpp
changeset 35546 b75e269c0922
parent 35542 9dccb7f9f656
parent 35232 76aed99c0ddd
child 35606 d873b64009cc
--- a/hotspot/src/share/vm/code/nmethod.cpp	Fri Dec 11 16:57:08 2015 +0100
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Mon Jan 11 17:11:57 2016 -0800
@@ -41,6 +41,7 @@
 #include "prims/jvmtiImpl.hpp"
 #include "runtime/atomic.inline.hpp"
 #include "runtime/orderAccess.inline.hpp"
+#include "runtime/os.hpp"
 #include "runtime/sharedRuntime.hpp"
 #include "runtime/sweeper.hpp"
 #include "utilities/resourceHash.hpp"
@@ -3096,6 +3097,17 @@
           CodeBlob* cb = CodeCache::find_blob(dest);
           if (cb != NULL) {
             st.print(" %s", cb->name());
+          } else {
+            ResourceMark rm;
+            const int buflen = 1024;
+            char* buf = NEW_RESOURCE_ARRAY(char, buflen);
+            int offset;
+            if (os::dll_address_to_function_name(dest, buf, buflen, &offset)) {
+              st.print(" %s", buf);
+              if (offset != 0) {
+                st.print("+%d", offset);
+              }
+            }
           }
           return st.as_string();
         }