< prev index next >

src/hotspot/share/oops/instanceKlass.cpp

Print this page
@@ -62,10 +62,11 @@
  #include "oops/constantPool.hpp"
  #include "oops/instanceClassLoaderKlass.hpp"
  #include "oops/instanceKlass.inline.hpp"
  #include "oops/instanceMirrorKlass.hpp"
  #include "oops/instanceOop.hpp"
+ #include "oops/instanceStackChunkKlass.hpp"
  #include "oops/klass.inline.hpp"
  #include "oops/method.hpp"
  #include "oops/oop.inline.hpp"
  #include "oops/recordComponent.hpp"
  #include "oops/symbol.hpp"

@@ -436,22 +437,19 @@
    InstanceKlass* ik;
  
    // Allocation
    if (REF_NONE == parser.reference_type()) {
      if (class_name == vmSymbols::java_lang_Class()) {
-       // mirror
        ik = new (loader_data, size, THREAD) InstanceMirrorKlass(parser);
-     }
-     else if (is_class_loader(class_name, parser)) {
-       // class loader
+     } else if (class_name == vmSymbols::jdk_internal_vm_StackChunk()) {
+       ik = new (loader_data, size, THREAD) InstanceStackChunkKlass(parser);
+     } else if (is_class_loader(class_name, parser)) {
        ik = new (loader_data, size, THREAD) InstanceClassLoaderKlass(parser);
      } else {
-       // normal
        ik = new (loader_data, size, THREAD) InstanceKlass(parser, InstanceKlass::_kind_other);
      }
    } else {
-     // reference
      ik = new (loader_data, size, THREAD) InstanceRefKlass(parser);
    }
  
    // Check for pending exception before adding to the loader data and incrementing
    // class count.  Can get OOM here.
< prev index next >