The JVM Specification (JSE 8 Edition) mentioned:
Page 12: 2.5.2 JVM Stacks: "Because the JVM stack is never manipulated directly except to push and pop frames, frames may be heap allocated."
Page 15: 2.6: Frames: "Frames are allocated from the JVM stack of the thread creating the frame." And on Page 16: "Note that a frame created by a thread is local to that thread and cannot be referenced by any other thread."
This sounds quite confusing to me. Since a frame is local to the thread that creates the frame, why allocate the frame in heap since heap is shared among all JVM threads? It does not make sense unless something is missed here. The sentence on Page 12 is an interesting statement.
Any hints? Thanks.