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

[JVMCI] CompilerToVM.getNextStackFrame loses locals for compiled frames

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P3
    • None
    • 9
    • hotspot

    Description

      According to javadoc for InspectedFrame.getLocal(I) HotSpotStackFrameReference.getLocal should return an object from the locals list. But it looks like it works only for interpreted frames:

      The following output shows that at compilation levels 3 and 4 frames HotSpotStackFrameReference object doesn't contain locals
      HotSpotStackFrameReference [stackPointer=140707345981904, frameNumber=0, bci=14, method=HotSpotMethod<MaterializeVirtualObjectsTest.testFrame(Object, Integer, Executable)>, locals=[compiler.jvmci.MaterializeVirtualObjectsTest@78084af3, two, 1100, private void compiler.jvmci.MaterializeVirtualObjectsTest.testFrame(java.lang.Object,java.lang.Integer,java.lang.reflect.Executable), two], localIsVirtual=null]
      Has virtual: false
      Is compiled: false, level: 0

      HotSpotStackFrameReference [stackPointer=140707345981864, frameNumber=0, bci=14, method=HotSpotMethod<MaterializeVirtualObjectsTest.testFrame(Object, Integer, Executable)>, locals=[null, null, null, null, null], localIsVirtual=null]
      Has virtual: false
      Is compiled: true, level: 3

      HotSpotStackFrameReference [stackPointer=140707345981952, frameNumber=0, bci=14, method=HotSpotMethod<MaterializeVirtualObjectsTest.testFrame(Object, Integer, Executable)
      >, locals=[null, null, null, null, null], localIsVirtual=null]
      Has virtual: false
      Is compiled: true, level: 4

      Attachments

        Issue Links

          Activity

            People

              dnsimon Douglas Simon
              ppunegov Pavel Punegov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: