RFR: 8341735: Rewrite the build/AbsPathsInImage.java test to not load the entire file at once

Daniel Hu duke at openjdk.org
Mon Jul 7 17:53:52 UTC 2025


These changes should prevent entire binary files from being loaded into memory for build/AbsPathsInImage.java test. I chose a default buffer size of 8KB since BufferedInputStream uses that, but open to alternative solutions. GHA passes and test passes on linux x64.

-------------

Commit messages:
 - remove 8341024
 - remove trailing whitespace
 - fix

Changes: https://git.openjdk.org/jdk/pull/26030/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26030&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341735
  Stats: 23 lines in 1 file changed: 13 ins; 1 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/26030.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26030/head:pull/26030

PR: https://git.openjdk.org/jdk/pull/26030


More information about the build-dev mailing list