RFR: 8316309: AArch64: VMError::print_native_stack() crashes on Java native method frame [v2]

Andrew Haley aph at openjdk.org
Fri Sep 29 18:41:16 UTC 2023


On Fri, 29 Sep 2023 15:39:04 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

> If this is a native frame the current FP would point to the current's frame lowest address. The value stored there would be the sender's FP.

Yes to both of those.

> If the sender is also a native frame, then that value would just point to the lowest address of that frame.

Maybe. I think that's the way GCC works, but not the ABI. All the ABI guarantees is that the frame pointers form a chain. And I don't know that GCC always does it this way, e.g. with variable-size arrays. At least this needs a comment.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/15972#discussion_r1341638839


More information about the hotspot-dev mailing list