< prev index next >

src/hotspot/share/prims/jvmtiGetLoadedClasses.cpp

Print this page
*** 25,10 ***
--- 25,11 ---
  #include "classfile/classLoaderDataGraph.hpp"
  #include "classfile/dictionary.hpp"
  #include "classfile/javaClasses.hpp"
  #include "gc/shared/collectedHeap.hpp"
  #include "memory/universe.hpp"
+ #include "oops/inlineKlass.hpp"
  #include "oops/klass.inline.hpp"
  #include "prims/jvmtiGetLoadedClasses.hpp"
  #include "runtime/handles.inline.hpp"
  #include "runtime/javaThread.hpp"
  #include "runtime/jniHandles.inline.hpp"

*** 75,10 ***
--- 76,11 ---
        // Collect array classes this way when walking the dictionary (because array classes are
        // not in the dictionary).
        for (Klass* l = k->array_klass_or_null(); l != nullptr; l = l->array_klass_or_null()) {
          _classStack.push((jclass) _env->jni_reference(Handle(_cur_thread, l->java_mirror())));
        }
+       // CMH flat arrays (InlineKlass)
      }
    }
  
    jvmtiError get_result(JvmtiEnv *env, jint* classCountPtr, jclass** classesPtr) {
      // Return results by extracting the collected contents into a list
< prev index next >