On Fri, 22 May 2026 23:00:24 GMT, Leonid Mesnik <[email protected]> wrote:

> Fixed layout.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

src/hotspot/share/prims/jvmtiTagMapTable.hpp line 53:

> 51:     if (k->is_inline_klass()) {
> 52:     _inline_klass = InlineKlass::cast(k);
> 53:     _layout_kind = LayoutKind::BUFFERED;

LayoutKind::BUFFERED is just a synthetic concept, not a real layout.
It is used to easily get the characteristics of the most constraining layout 
supported by a class, in order to know how heap allocated instances should be 
sized.
In this method, I think the _layout_kind should be set to REFERENCE for both 
cases.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2473#discussion_r3306507477

Reply via email to