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

jvmtiStringPrimitiveCallback should not be invoked when string value is null

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b49
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: