mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8193471: Startup regression due to JDK-8185582
Reviewed-by: rriggs, psandoz
This commit is contained in:
parent
cbe050e931
commit
1b432b5066
2 changed files with 23 additions and 2 deletions
|
@ -427,7 +427,12 @@ class ZipFile implements ZipConstants, Closeable {
|
|||
Inflater inf, int size) {
|
||||
super(zfin, inf, size);
|
||||
this.cleanable = CleanerFactory.cleaner().register(this,
|
||||
() -> res.releaseInflater(inf));
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
res.releaseInflater(inf);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue