• Phillip Webb's avatar
    Attempt to fix memory leak in JarFile class · aac367e9
    Phillip Webb authored
    Create a new `JarFileWrapper` class so that we can wrap and existing
    `JarFile` and offer a version that can be safely closed.
    
    Prior to this commit, we provided wrapper functionality in the `JarFile`
    class itself. Unfortunately, because we override `close` and also create
    a lot of wrappers this caused memory issues when running on Java 11.
    
    With Java 11 `java.util.zip.ZipFile` class uses `FinalizableResource`
    for any implementation that overrides `close()`. This means that any
    wrapper classes will not be garbage collected until the JVM finalizer
    thread runs.
    
    Closes gh-22991
    aac367e9
Name
Last commit
Last update
.bomr Loading commit data...
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...