You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/03/22 12:55:52 UTC
[28/41] logging-log4j2 git commit: LOG4J2-1295 Small improvement in
automated GC-free test.
LOG4J2-1295 Small improvement in automated GC-free test.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/0e8d40b0
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/0e8d40b0
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/0e8d40b0
Branch: refs/heads/gelf-layout-gc-free
Commit: 0e8d40b0e8d02e5528088522afe6209bce19793f
Parents: e39a2da
Author: rpopma <rp...@apache.org>
Authored: Fri Mar 18 07:45:29 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Fri Mar 18 07:45:29 2016 +0900
----------------------------------------------------------------------
.../org/apache/logging/log4j/core/GcFreeLoggingTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/0e8d40b0/log4j-core/src/test/java/org/apache/logging/log4j/core/GcFreeLoggingTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/GcFreeLoggingTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/GcFreeLoggingTest.java
index 2cca348..4a52ff6 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/GcFreeLoggingTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/GcFreeLoggingTest.java
@@ -93,14 +93,14 @@ public class GcFreeLoggingTest {
return; // exclude
}
}
- System.out.println("I just allocated the object " + newObj +
+ System.err.println("I just allocated the object " + newObj +
" of type " + desc + " whose size is " + size);
if (count != -1) {
- System.out.println("It's an array of size " + count);
+ System.err.println("It's an array of size " + count);
}
- // uncomment to get a stack trace and see which line caused allocation
- //new RuntimeException().printStackTrace();
+ // show a stack trace to see which line caused allocation
+ new RuntimeException().printStackTrace();
}
};
Thread.sleep(500);