on non-static field layout

Dmytro Sheyko dmytro.sheyko at gmail.com
Tue Feb 17 09:17:22 UTC 2015


Hi Peter,

On Tue, Feb 17, 2015 at 1:46 AM, Peter B. Kessler
<Peter.B.Kessler at oracle.com> wrote:
> With respect to your original proposal
> (http://mail.openjdk.java.net/pipermail/hotspot-dev/2015-February/017141.html):
> for an "Object[] foo" are you really proposing that foo[0] would be 1 word
> before the pointer to foo, and that foo[1] would be two words before the
> pointer to foo, etc.?  That's going to be interesting to explain to
> debuggers, etc.  One could make an exception for Object[].

The proposal did not relate to Object[]. The only goal to place
references before header is to minimize number of oop-map entries.
Alternatively, reference fields could be placed after header and
primitives before.


More information about the hotspot-runtime-dev mailing list