You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2015/07/23 23:29:17 UTC
[13/19] maven-surefire git commit: [SUREFIRE] refactoring: help GC to
free this object since it's not needed as there's no new test
[SUREFIRE] refactoring: help GC to free this object since it's not needed as there's no new test
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/72c9c5ff
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/72c9c5ff
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/72c9c5ff
Branch: refs/heads/master
Commit: 72c9c5ff2f89d77f5975bd0d13866fa668ba3e3d
Parents: 02cdeaf
Author: Tibor17 <ti...@lycos.com>
Authored: Tue Jul 14 20:02:09 2015 +0200
Committer: Tibor17 <ti...@lycos.com>
Committed: Thu Jul 23 23:28:12 2015 +0200
----------------------------------------------------------------------
.../booterclient/lazytestprovider/TestProvidingInputStream.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/72c9c5ff/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java
----------------------------------------------------------------------
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java
index 39e0c4d..31ca4d7 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java
@@ -125,6 +125,8 @@ public class TestProvidingInputStream
}
else
{
+ // help GC to free this object since it's not needed as there's no new test
+ currentBuffer = null;
return -1;
}
}