Description
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".
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".
Attachments
Issue Links
- csr for
-
JDK-8306781 Clarify JVMTI heap functions spec about virtual thread stack.
-
- Closed
-
- relates to
-
JDK-8299414 JVMTI FollowReferences should support references from VirtualThread stack
-
- Resolved
-