JDK-8139706 : JarFile.getBytes could use InputStream.readNBytes
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-10-15
  • Updated: 2017-03-13
  • Resolved: 2015-10-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b89Fixed
Related Reports
Relates :  
Description
A 2%-4% regression was measured with footprint3-server in JDK9-b86 on all platforms. 

JDK-8138978 removed sun.misc.IOUtils and left JarFile.getBytes using InputStream.readAllBytes, which is sub-optimal when the ZipEntry size is known. 

Using readNBytes might improve startup and early footprint characteristics.