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

NEWHPROF: Treatment of JNI references isn't right

XMLWordPrintable

    • b38
    • generic
    • generic

      Global JNI references aren't handled right.

      Fix for 1.5 beta2 hopefully.

      Probably need to use JNI interception table and not use the class_tag
      from JVMTI heap iterate functions.

      The Global ref is always using the refered object as the GLOBal ref, and the
      class as the Global ref.

      cruella<54> fgrep 50000327 java.hprof.txt
      ROOT 50000327 (kind=<JNI global ref>, id=5000011e, trace=300021)
      OBJ 50000327 (sz=304, trace=300000, class=java.lang.Object@5000000e)
      cruella<55> fgrep 5000011e java.hprof.txt
      ROOT 50000327 (kind=<JNI global ref>, id=5000011e, trace=300021)
      ROOT 5000011e (kind=<system class>, name=java.net.URLClassLoader$1)
      CLS 5000011e (name=java.net.URLClassLoader$1, trace=300021)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: