[ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441496
]
Stephen Colebourne commented on IO-82:
--------------------------------------
This looks a mite dodgy:
while (FileCleaner.getTrackCount() != 0) {
System.gc();
}
JDK1.6 could have altered System.gc to not do anything, thus it takes longer.
Try adding this
int total = 0;
while (FileCleaner.getTrackCount() != 0) {
byte[] b = new byte[1024 * 1024];
b[0] = (byte) System.currentTimeMillis();
total = total + b[0];
System.gc();
}
to waste some memory and kick the gc (I know its just as bad...)
> Test takes a long time to run in Mustang
> ----------------------------------------
>
> Key: IO-82
> URL: http://issues.apache.org/jira/browse/IO-82
> Project: Commons IO
> Issue Type: Bug
> Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
> Reporter: Henri Yandell
> Fix For: 1.3
>
>
> [junit] Running org.apache.commons.io.FileCleanerTestCase
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]