On Fri, 4 Sep 2026 11:55:16 GMT, Coleen Phillimore <[email protected]> wrote:

> I'm struggling to figure out how some application can tell the difference, 
> and why it would have code that relies on this implementation detail.

The callback for a ref kind JVMTI_HEAP_REFERENCE_ARRAY_ELEMENT is specified for 
array -> element refs.

As per the discussion already, we need a chain of refs from a class loader to 
the classes it has defined. Synthesizing a direct ref (current changes) is 
problematic as doesn't fit into the current ref kinds, hence the comment about 
needing new API. Before going there then we should exhaust the options for 
shoehorning into the existing API. I think we should at least try to have it 
work "as if" there is an array object in ClassLoader with a ref to each class.

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

PR Comment: https://git.openjdk.org/jdk/pull/32519#issuecomment-5541042067

Reply via email to