maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [34/50] [abbrv] maven git commit: [MNG-6340] [Performance]To make System.gc() call configurable in target summary code o Just removed the System.gc() call.
Date Sat, 17 Feb 2018 20:30:55 GMT
[MNG-6340] [Performance]To make System.gc() call configurable in target
summary code
 o Just removed the System.gc() call.


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/99e66229
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/99e66229
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/99e66229

Branch: refs/heads/MNG-5227
Commit: 99e66229aca82e12292d0e481d8e71158cc52ca4
Parents: 5988085
Author: Karl Heinz Marbaise <khmarbaise@apache.org>
Authored: Sun Feb 4 11:27:33 2018 +0100
Committer: Karl Heinz Marbaise <khmarbaise@apache.org>
Committed: Sun Feb 4 11:27:33 2018 +0100

----------------------------------------------------------------------
 .../org/apache/maven/cli/event/ExecutionEventLogger.java     | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/99e66229/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
----------------------------------------------------------------------
diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
index 85760e6..d4171f7 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java
@@ -233,14 +233,6 @@ public class ExecutionEventLogger
         logger.info( "Total time: " + formatDuration( time ) + wallClock );
 
         logger.info( "Finished at: " + formatTimestamp( finish ) );
-
-        System.gc();
-
-        Runtime r = Runtime.getRuntime();
-
-        long mb = 1024 * 1024;
-
-        logger.info( "Final Memory: " + ( r.totalMemory() - r.freeMemory() ) / mb + "M/"
+ r.totalMemory() / mb + "M" );
     }
 
     @Override


Mime
View raw message