Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8261848 LOOM: SA needs to add support for scanning StackChunks
  3. JDK-8293669

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

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • 20
    • 19, 20
    • hotspot
    • b15

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: