Repository: logging-log4j2 Updated Branches: refs/heads/LOG4J2-1278-gc-free-logger fbe63f5e5 -> 0cda9c483
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/LOG4J2-1278-gc-free-logger Commit: 0e8d40b0e8d02e5528088522afe6209bce19793f Parents: e39a2da Author: rpopma <rpo...@apache.org> Authored: Fri Mar 18 07:45:29 2016 +0900 Committer: rpopma <rpo...@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);