RFR: 8371368: SIGSEGV in JfrVframeStream::next_vframe() on arm64

Markus Grönlund mgronlun at openjdk.org
Tue Nov 18 13:43:15 UTC 2025


Greetings,

Please see a description in the JIRA ticket about this problem related to PreserveFramePointer on arm64.

Summary:
The third argument passes the sender_sp as the frame FP - which is valid for most situations where unextended_sp() + cb->frame_size() is used (a compiled frame's real_fp() is usually equivalent to the sender SP). But this is incorrect when PreserveFramePointer is set. To fix this, a real frame pointer must be passed to the constructor.

Testing: jdk_jfr, stress testing

Thanks
Markus

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

Commit messages:
 - PreserveFramePointer test
 - 8371368

Changes: https://git.openjdk.org/jdk/pull/28373/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28373&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371368
  Stats: 2 lines in 2 files changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/28373.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28373/head:pull/28373

PR: https://git.openjdk.org/jdk/pull/28373


More information about the hotspot-jfr-dev mailing list