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

Need InterateOverReachable interface that lets me tag the referrers as I go

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • hotspot
    • None
    • b51
    • generic
    • generic

      Jim asked that I file this.
      I assume if it's accepted we need to also file a CCC, let me know how to proceed.

      I think what we need is a:

      jvmtiError
      IterateOverReachableObjects2(jvmtiEnv* env,
                  jvmtiHeapRootCallback heap_root_callback,
                  jvmtiStackReferenceCallback stack_ref_callback,
                  jvmtiObjectReferenceCallback2 object_ref_callback,
                  void* user_data);

      typedef jvmtiIterationControl (JNICALL *jvmtiObjectReferenceCallback2)
          (jvmtiObjectReferenceKind reference_kind,
           jlong class_tag,
           jlong size,
           jlong* tag_ptr,
           jlong* referrer_tag, <-------- Allow me to tag referrer
           jint referrer_index,
           void* user_data);

      I'm not particular on the naming. I just used a '2' suffix.

      ###@###.### 2005-04-08 18:59:25 GMT

            alanb Alan Bateman
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: