On Fri, 29 Jan 2021 05:53:57 GMT, Bo Zhang <github.com+12689835+blindpir...@openjdk.org> wrote:
> Previously, `ImageBufferCache` contains a ThreadLocal field which holds > strong reference to `ImageBufferCache$BufferReference.class`. When loaded > from `jrt-fs.jar`, this will keep `JrtFileSystemProvider$JrtFsLoader` > in memory forever and never being GCed. > > The fix replace the old `ImageBufferCache$BufferReference` class with > `WeakReference<ByteBuffer>`, which is verified by provided test. This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.java.net/jdk/pull/2307