changeset 1443:ef50cc696984

7902107: perfasm should provide better suggestion about PrintAssembly failures
author shade
date Mon, 22 Jan 2018 22:39:43 +0100
parents f797116d4991
children bd52958ab680
files jmh-core/src/main/java/org/openjdk/jmh/profile/AbstractPerfAsmProfiler.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/AbstractPerfAsmProfiler.java	Mon Jan 22 18:35:26 2018 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/AbstractPerfAsmProfiler.java	Mon Jan 22 22:39:43 2018 +0100
@@ -334,7 +334,11 @@
             pw.println();
         } else {
             pw.println();
-            pw.println("ERROR: No address lines detected in assembly capture, make sure your JDK is PrintAssembly-enabled:\n    https://wiki.openjdk.java.net/display/HotSpot/PrintAssembly");
+            pw.println("ERROR: No address lines detected in assembly capture. Make sure your JDK is properly configured to");
+            pw.println("print generated assembly. The most probable cause for this failure is that hsdis is not available,");
+            pw.println("or resides at the wrong path within the JDK. Try to run the same JDK with -XX:+PrintAssembly with");
+            pw.println("a simple non-JMH program and look for warning messages. For details, see the link below:");
+            pw.println("    https://wiki.openjdk.java.net/display/HotSpot/PrintAssembly");
             pw.println();
         }