< prev index next >
src/hotspot/share/oops/valueKlass.cpp
Print this page
*** 66,76 ****
// 3 byte = 4, because pow2 needed for element stores
int first_offset = first_field_offset();
int last_offset = 0; // find the last offset, add basic type size
int last_tsz = 0;
for (JavaFieldStream fs(this); !fs.done(); fs.next()) {
! if (fs.offset() > last_offset) {
BasicType type = fs.field_descriptor().field_type();
if (is_java_primitive(type)) {
last_tsz = type2aelembytes(type);
} else if (type == T_VALUETYPE) {
// Not just primitives. Layout aligns embedded value, so use jlong aligned it is
--- 66,78 ----
// 3 byte = 4, because pow2 needed for element stores
int first_offset = first_field_offset();
int last_offset = 0; // find the last offset, add basic type size
int last_tsz = 0;
for (JavaFieldStream fs(this); !fs.done(); fs.next()) {
! if (fs.access_flags().is_static()) {
! continue;
! } else if (fs.offset() > last_offset) {
BasicType type = fs.field_descriptor().field_type();
if (is_java_primitive(type)) {
last_tsz = type2aelembytes(type);
} else if (type == T_VALUETYPE) {
// Not just primitives. Layout aligns embedded value, so use jlong aligned it is
< prev index next >