< prev index next >

src/hotspot/share/oops/fieldInfo.inline.hpp

Print this page
@@ -83,14 +83,18 @@
        _consumer->accept_uint(fi.generic_signature_index());
      }
      if (fi.field_flags().is_contended()) {
        _consumer->accept_uint(fi.contention_group());
      }
+     if (fi.field_flags().has_null_marker()) {
+       _consumer->accept_uint(fi.null_marker_offset());
+     }
    } else {
      assert(fi.initializer_index() == 0, "");
      assert(fi.generic_signature_index() == 0, "");
      assert(fi.contention_group() == 0, "");
+     assert(fi.null_marker_offset() == 0, "");
    }
  }
  
  
  inline FieldInfoReader::FieldInfoReader(const Array<u1>* fi)

@@ -117,21 +121,27 @@
    if (fi._field_flags.is_contended()) {
      fi._contention_group = checked_cast<u2>(next_uint());
    } else {
      fi._contention_group = 0;
    }
+   if (fi._field_flags.has_null_marker()) {
+     fi._null_marker_offset = next_uint();
+   } else {
+     fi._null_marker_offset = 0;
+   }
  }
  
  inline FieldInfoReader&  FieldInfoReader::skip_field_info() {
    _next_index++;
    const int name_sig_af_off = 4;  // four items
    skip(name_sig_af_off);
    FieldInfo::FieldFlags ff(next_uint());
    if (ff.has_any_optionals()) {
      const int init_gen_cont = (ff.is_initialized() +
                                  ff.is_generic() +
-                                 ff.is_contended());
+                                 ff.is_contended() +
+                                 ff.has_null_marker());
      skip(init_gen_cont);  // up to three items
    }
    return *this;
  }
  
< prev index next >