RFR: 8371083: FollowReferences reports non-class objects as JVMTI_HEAP_REFERENCE_SYSTEM_CLASS [v2]

Leonid Mesnik lmesnik at openjdk.org
Thu Nov 13 19:53:12 UTC 2025


On Thu, 13 Nov 2025 19:42:00 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

>> FollowReferences with null initial_object starts heap walking from "heap roots", which include system classes.
>> All oops from ClassLoaderDataGraph are reported with JVMTI_HEAP_REFERENCE_SYSTEM_CLASS kind, but some of the objects are not classes.
>> The fix updates FollowReferences to report non-class objects from ClassLoaderDataGraph as JVMTI_HEAP_REFERENCE_OTHER
>> 
>> Testing: tier1..4,hs-tier5-svc
>
> Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   feedback

Marked as reviewed by lmesnik (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/28224#pullrequestreview-3461421197


More information about the hotspot-dev mailing list