Integrated: 8371083: FollowReferences reports non-class objects as JVMTI_HEAP_REFERENCE_SYSTEM_CLASS

Alex Menkov amenkov at openjdk.org
Fri Nov 14 19:42:21 UTC 2025


On Mon, 10 Nov 2025 20:54:56 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

This pull request has now been integrated.

Changeset: 3924a28a
Author:    Alex Menkov <amenkov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3924a28a2281bbdb13fe9f1e0b5347d57197f8dc
Stats:     209 lines in 3 files changed: 206 ins; 0 del; 3 mod

8371083: FollowReferences reports non-class objects as JVMTI_HEAP_REFERENCE_SYSTEM_CLASS

Reviewed-by: lmesnik, sspitsyn

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

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


More information about the hotspot-dev mailing list