RFR: 8308762: Metaspace leak with Instrumentation.retransform [v6]
Coleen Phillimore
coleenp at openjdk.org
Wed Sep 20 14:28:58 UTC 2023
On Thu, 3 Aug 2023 08:43:12 GMT, Jean-Philippe Bempel <jpbempel at 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.
>
> Jean-Philippe Bempel has updated the pull request incrementally with one additional commit since the last revision:
>
> remove trailing whitespace
I'm sorry for the delay in reviewing this. This looks great!
-------------
Marked as reviewed by coleenp (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/14780#pullrequestreview-1635785374
More information about the hotspot-dev
mailing list