On Thu, 1 Oct 2026 23:08:42 GMT, Serguei Spitsyn <[email protected]> wrote:

> When the JVMTI `IterateThroughHeap` has a class filter then the flattened 
> value objects contained in the fields of filtered class objects are not 
> reported. The fix is:
>  - If the object has flattened fields, visit and report them as heap objects 
> even though this object was not reported.
> 
> The update adds new test with a needed coverage:
>   
> `test/hotspot/jtreg/serviceability/jvmti/valhalla/Heapwalking/FlatClassFilterTest.java`
> 
> Testing:
>  - check new test is failing without fix and is passing with the fix
>  - TBD: run mach5 tiers 1-6
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 10f4d3d6
Author:    Serguei Spitsyn <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/10f4d3d67975f9a18f7b490963f57066893b637d
Stats:     321 lines in 3 files changed: 255 ins; 35 del; 31 mod

8389460: JVMTI IterateThroughHeap class filter skips flattened value objects

Reviewed-by: heidinga, lmesnik

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

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

Reply via email to