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.
materializeVirtualObjects.
Test attached.
- blocks
- 
                    JDK-8173369 Investigate to implement AccessController.getContext using StackWalker -           
- Closed
 
-         
- relates to
- 
                    JDK-8214584 stackwalk returns null for scalar-replaced value -           
- Open
 
-         
- 
                    JDK-8227745 Enable Escape Analysis for Better Performance in the Presence of JVMTI Agents -           
- Resolved
 
-         
- 
                    JDK-8214763 add compiler intrinsic to materialize objects -           
- Open
 
-