-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
master
ZipFile.Source.Key uses BasicFileAttributes to compare file keys and last modified time in the hashCode and equals methods.
By capturing these two fields in the Key constructor instead we make the BasicFileAttributes available for GC and the code easier to reason about.
It should also performance positive, since we create the FileTime instance once and aviod synchronization for the file key capture.
By capturing these two fields in the Key constructor instead we make the BasicFileAttributes available for GC and the code easier to reason about.
It should also performance positive, since we create the FileTime instance once and aviod synchronization for the file key capture.
- links to
-
Commit(master)
openjdk/jdk/e0445c09
-
Review(master)
openjdk/jdk/29411