< prev index next >

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

Print this page
@@ -49,10 +49,28 @@
  // unloading, and hence during concurrent class unloading.
  inline bool Klass::is_loader_alive() const {
    return class_loader_data()->is_alive();
  }
  
+ inline void Klass::set_prototype_header(markWord header) {
+   assert(!is_inline_klass() || header.is_inline_type(), "Unexpected prototype");
+   assert(_prototype_header.value() == 0 || _prototype_header == markWord::prototype(),
+          "Prototype already set");
+ #ifdef _LP64
+     assert(header == markWord::prototype() ||
+            header.is_inline_type() ||
+            header.is_flat_array() ||
+            header.is_null_free_array(),
+            "unknown prototype header");
+ #else
+     assert(header == markWord::prototype() ||
+            header.is_inline_type(),
+            "unknown prototype header");
+ #endif
+   _prototype_header = header;
+ }
+ 
  inline oop Klass::java_mirror() const {
    return _java_mirror.resolve();
  }
  
  inline klassVtable Klass::vtable() const {
< prev index next >