RFR: 8265796: vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects002/referringObjects002.java fails when running with the fix for JDK-6824466 [v2]

David Holmes dholmes at openjdk.java.net
Tue Nov 16 04:36:34 UTC 2021


On Tue, 16 Nov 2021 02:45:13 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> The nsk.share.jdi.TestClass1 is used via reflection. The reflective call creates MethodHandle and one more reference to TestClass1.  So the number of expected references should be incremented.  Thanks to @plummercj and @mlchung for the investigation.
>> This fix also prints references to inspected class.
>
> Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision:
> 
>   updated

Hi Leonid,

Where is the reflective call that you are referring to? I'm wondering why the MH based reflection holds a reference where the previous reflection implementation would not? And whether this is an unintended change in behaviour for core reflection.

Thanks,
David

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

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


More information about the serviceability-dev mailing list