Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8306027

Clarify JVMTI heap functions spec about virtual thread stack.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • hotspot
    • b22
    • generic
    • generic

      Specification of FollowReferences function says:
       The heap root are the set of system classes, JNI globals, references from thread stacks, and other objects used as roots for the purposes of garbage collection.
      But virtual threads and their stacks are deliberately not roots.
      Need to update the spec to reflect this.
      The same issue with IterateOverReachableObjects spec:
       The root objects comprise the set of system classes, JNI globals, references from thread stacks, and other objects used as roots for the purposes of garbage collection.

      Also need to update description of JVMTI_HEAP_REFERENCE_STACK_LOCAL, JVMTI_HEAP_REFERENCE_JNI_LOCAL values as their descriptions says "Heap root reference".

            amenkov Alex Menkov
            amenkov Alex Menkov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: