SA: Remove unnecssary "InstanceStackChunkKlass: InstanceStackChunkKlass" output when scanning heap

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 19, 20
    • Component/s: hotspot
    • b15

      When executing clhsdb commands that walk the heap, such as scanoops or dumpheap, you will see the following in the output just once (and only the first time the command is executed):

      InstanceStackChunkKlass: InstanceStackChunkKlass

      It comes from InstanceStackChunkKlass.initialize():

        private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
          // Just make sure it's there for now
          Type type = db.lookupType("InstanceStackChunkKlass");
          java.lang.Thread.currentThread().dumpStack();
          System.out.println("InstanceStackChunkKlass: " + type);
        }

      It's purpose was really just a reminder that SA still does not scan virtual thread StackChunks. We have JDK-8261848 to cover that. Note the presence of the output happens even if virtual threads are not used, so it should be removed.

            Assignee:
            Chris Plummer
            Reporter:
            Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: