On Thu, 6 Jul 2023 05:18:01 GMT, Jean-Philippe Bempel <jpbem...@openjdk.org> 
wrote:

> Fix a small leak in constant pool merging during retransformation of a class. 
> If this class has a catch block with `Throwable`, the class `Throwable` is 
> pre-resolved in the constant pool, while all the other classes are in a 
> unresolved state. So the constant pool merging process was considering the 
> entry with pre-resolved class as different compared to the destination and 
> create a new entry. We now try to consider it as equal specially for 
> Methodref/Fieldref.

This pull request has now been integrated.

Changeset: df4a25b4
Author:    Jean-Philippe Bempel <jpbem...@openjdk.org>
Committer: David Holmes <dhol...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/df4a25b41c7f339cd077e072aa0fd3604ed809f5
Stats:     133 lines in 5 files changed: 78 ins; 55 del; 0 mod

8308762: Metaspace leak with Instrumentation.retransform

Reviewed-by: dholmes, coleenp

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

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

Reply via email to