Remove usage of System.gc() in Wicket code
------------------------------------------

                 Key: WICKET-3851
                 URL: https://issues.apache.org/jira/browse/WICKET-3851
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
    Affects Versions: 1.5-RC5.1
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov


org.apache.wicket.util.file.Files.remove(File) calls System.gc() when a file 
cannot be removed for any reason.
This call popped up in our performance tests.

I suggest to try to delete the file at most N times and if it still not deleted 
then log a warning and schedule it for deletion when the JVM exists 
(java.io.File.deleteOnExit())

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to