On Mon, 19 Feb 2024 10:30:24 GMT, Sean Coffey <coff...@openjdk.org> wrote:
> Nice improvement to have. would it be ok to pad out this comment a bit more ? > I found it difficult to understand the specifics. Perhaps : > > ``` > // In LM_JAR mode, keep the underlying file open to retain it > in > // the ZipFile HashMap cache. This will avoid needing to > re-parse > // the central directory when the file is opened on the class > path, > // triggered by Class.forName below. > ``` No issue with expanding the comment but I think leave it as "ZipFile cache" as a more specific comment will quickly bit rot and confuse reader, and of course the Launcher code doesn't care which collection is used internally in the ZipFile code. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17843#discussion_r1494352861