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

Daniel Hu duke at openjdk.org
Mon Oct 27 16:53:51 UTC 2025


On Fri, 27 Jun 2025 23:29:15 GMT, Daniel Hu <duke at openjdk.org> wrote:

> These changes prevent entire binary files from being loaded into memory for build/AbsPathsInImage.java test. Files are buffered and matching is performed using Knuth–Morris–Pratt algorithm. GHA passes and test passes on linux x64. Correctly fails when running with jdk build with `--enable-absolute-paths-in-output`.

This pull request has now been integrated.

Changeset: c25f3520
Author:    Daniel Hu <costmuch at amazon.com>
Committer: Cesar Soares Lucas <cslucas at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c25f35205ae4544970bbaca233de8745f8e4e92c
Stats:     151 lines in 1 file changed: 93 ins; 6 del; 52 mod

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

Reviewed-by: erikj

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

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


More information about the build-dev mailing list