changeset 915:99d0e66b7cf4

runners: a bit of cleanup in ForkedMain.
author shade
date Thu, 17 Jul 2014 23:08:40 +0400
parents 0304b5947dcc
children 2cc1cd54a14f
files jmh-core/src/main/java/org/openjdk/jmh/runner/ForkedMain.java
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/ForkedMain.java	Thu Jul 17 23:00:23 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/ForkedMain.java	Thu Jul 17 23:08:40 2014 +0400
@@ -89,7 +89,8 @@
                                 try {
                                     link.pushException(new BenchmarkException(new IllegalStateException(msg)));
                                 } catch (IOException e) {
-                                    // do nothing
+                                    // last resort
+                                    System.err.println(msg);
                                 }
                             } else {
                                 // last resort
@@ -104,13 +105,6 @@
                                 // swallow
                             }
                         }
-
-                        // If user did System.exit(0), we have to override the exit code
-                        // to let host VM know we encountered a problem. This should be done
-                        // after the link is flushed and down.
-                        if (!gracefullyFinished) {
-//                            Runtime.getRuntime().halt(1);
-                        }
                     }
                 }
         );