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

Drop callback from class to its signers with ref kind JVMTI_HEAP_REFERENCE_SIGNERS

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • None

      The JVM TI heap functions (FollowReferences et. al.) invoke a callback for references from a Class object to its signers (array) when the Class has signers. This is carry over from the legacy JVMPI API and JVMPI_GC_CLASS_DUMP record, and maybe necessary at the time because the reference to the signers was maintained in the VM rather than as an explicit field in java.lang.Class.

      JDK-8334772 has moved signers from injected field to an explicit field. JVMTI agents using the heap functions will now get a callback for the reference from a class object to its signers array (with ref kind JVMTI_HEAP_REFERENCE_FIELD).

      It's time to drop invoking a callback with ref kind JVMTI_HEAP_REFERENCE_SIGNERS. This should only require some small updates to the JVMTI spec. Note that the JVMTI_HEAP_REFERENCE_SIGNERS field needs to be maintained for source compatibility reasons, it's just that a callback will never be invoked with this ref kind.

            amenkov Alex Menkov
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: