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

jvmtiStringPrimitiveCallback should not be invoked when string value is null

XMLWordPrintable

    • b49
    • generic
    • generic

        One of the profiler vendors reports a crash when they enable the jvmtiStringPrimitiveCallback implementation. From the description it appears that the heap iteration (IterateThroughHeap) encounters a partially constructed java.lang.String. That is, the value field is null. The invoke_string_value_callback function doesn't check for this case and so will crash.

              sspitsyn Serguei Spitsyn
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: