Need way to get all class fields from instance: GetAllClassFields() (see referrer_index spec)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P3
    • 10
    • Affects Version/s: 6
    • Component/s: hotspot
    • None
    • generic
    • generic

      Need way to get all class fields from instance: GetAllClassFields() (see referrer_index spec)

      Somehow this RFE got lost.

      The HeapIterate functions callbacks have a spec for referrer_index when it refers
      to a field of an instance which involves a non-trivial traversal of a class and it's
      super classes to construct a single list of fields. Having a JVMTI interface that
      created this single list would be a great benefit to hprof and anyone trying to make
      sense of a referrer_index.

      jvmtiError
      GetAllClassFields(jvmtiEnv* env,
                  jclass klass,
                  jint* field_count_ptr,
                  jfieldID** fields_ptr);

      Returns all the fields for an instance of this class in an order that matches a
      referer_index. Includes static and instance fields.


      ###@###.### 2005-04-14 22:49:28 GMT

            Assignee:
            Unassigned
            Reporter:
            Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: