RFR: 8253948: Memory leak in ImageFileReader

Alan Bateman alanb at openjdk.java.net
Sat Oct 3 16:20:37 UTC 2020


On Fri, 2 Oct 2020 20:47:16 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> ImageFileReader allocates ImageModuleData in ImageFileReader::open(), but never free.
> 
> Also renamed module_data to _module_data to be consistent with other member variables.
> 
> Test:
> - [x] tier1 on Linux x86_64

The jimage file is opened at startup and should never be closed. However the jrtfs provider (used by IDEs and other
tools to access the resources in a target run-time image) may run into it so good to get it fixed.

Can you fix the formatting to use 4-space indentation consistently?

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

PR: https://git.openjdk.java.net/jdk/pull/490


More information about the core-libs-dev mailing list