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

LiveStackFrameInfo.getLocals does not materialize virtual objects

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 11, 12
    • core-libs
    • None

      LiveStackFrameInfo.getLocals returns null for virtual objects (the JIT compiler has eliminated a "non-escaping" allocation). There should be a way to recognize and materialize these virtual objects. For example, see jdk.vm.ci.hotspot.HotSpotStackFrameReference.
      materializeVirtualObjects.

      Test attached.

        1. StackWalkTest.java
          1 kB
          Dean Long
        2. StackWalkTest9.java
          2 kB
          Brent Christian

            Unassigned Unassigned
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: