commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-commons/jelly/src/test/org/apache/commons/jelly/core BaseMemoryLeakTest.java
Date Tue, 28 Dec 2004 01:46:36 GMT
polx        2004/12/27 17:46:36

  Modified:    jelly/src/test/org/apache/commons/jelly/core
                        BaseMemoryLeakTest.java
  Log:
  The tagHolderMap size was reported way too often...
  paul
  
  Revision  Changes    Path
  1.2       +5 -5      jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/BaseMemoryLeakTest.java
  
  Index: BaseMemoryLeakTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/BaseMemoryLeakTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BaseMemoryLeakTest.java	28 Dec 2004 01:39:23 -0000	1.1
  +++ BaseMemoryLeakTest.java	28 Dec 2004 01:46:36 -0000	1.2
  @@ -114,11 +114,10 @@
   
               script = parser.parse(scriptISource);
               script.run(jc, output);
  -			log.info("TagHolderMap has " + jc.getTagHolderMap().size() + " entries.");
  -			// PL: I don't see why but removing the clear here 
  -			//     does make the test fail!
  -			//     As if the WeakHashMap wasn't weak enough...
  -			jc.clear();
  +            // PL: I don't see why but removing the clear here 
  +            //     does make the test fail!
  +            //     As if the WeakHashMap wasn't weak enough...
  +            jc.clear();
   
               if (outputEveryXIterations != 0 && i % outputEveryXIterations == 0)
{
                   parser = null;
  @@ -127,6 +126,7 @@
                   rt.runFinalization();
                   rt.gc();
                   long middle = rt.totalMemory() - rt.freeMemory();
  +                log.info("TagHolderMap has " + jc.getTagHolderMap().size() + " entries.");
                   log.info("Memory test after " + i + " runs: "
                           + (middle - start));
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message