changeset 1000:bae8cd49a7c1

runners: provide user-settable property for the number of tailed lines to print on forked VM error.
author shade
date Thu, 04 Sep 2014 17:02:23 +0400
parents 6a7ef879247a
children 0d45525aa63e
files jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Thu Sep 04 16:45:09 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Thu Sep 04 17:02:23 2014 +0400
@@ -82,7 +82,7 @@
  */
 public class Runner extends BaseRunner {
 
-    private static final int TAIL_LINES_ON_ERROR = 20;
+    private static final int TAIL_LINES_ON_ERROR = Integer.getInteger("jmh.tailLines", 20);
     private static final String JMH_LOCK_FILE = System.getProperty("java.io.tmpdir") + "/jmh.lock";
     private static final Boolean JMH_LOCK_IGNORE = Boolean.getBoolean("jmh.ignoreLock");