changeset 1233:f535278fe63a

Fix Windows xperfasm failures after 7901435.
author shade
date Tue, 26 May 2015 14:54:32 +0300
parents 1de24c774498
children a60472c69898
files jmh-core/src/main/java/org/openjdk/jmh/profile/WinPerfAsmProfiler.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/WinPerfAsmProfiler.java	Tue May 26 14:38:22 2015 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/WinPerfAsmProfiler.java	Tue May 26 14:54:32 2015 +0300
@@ -90,7 +90,7 @@
     /**
      * Path to a directory with jvm.dll symbols (optional).
      */
-    private static final String SYMBOL_DIR = System.getProperty("jmh.perfasm.symbol.dir");
+    private static final String SYMBOL_DIR = System.getProperty("jmh.perfasm.symbol.dir", "");
 
     /**
      * Path to binary.
@@ -176,7 +176,7 @@
         // 2. Convert binary data to text form.
         try {
             ProcessBuilder pb = new ProcessBuilder(PATH, "-i", perfBinData, "-symbols", "-a", "dumper");
-            pb.environment().put("_NT_SYMBOL_PATH=" + SYMBOL_DIR, "");
+            pb.environment().put("_NT_SYMBOL_PATH", SYMBOL_DIR);
 
             Process p = pb.start();