[jdk11u-dev] RFR: 8315380: AsyncGetCallTrace crash in frame::safe_for_sender
Jaroslav Bachorík
jaroslav.bachorik at datadoghq.com
Fri Mar 7 14:21:42 UTC 2025
Hello,
JBS: https://bugs.openjdk.org/browse/JDK-8315380
PR : https://github.com/openjdk/jdk11u-dev/pull/3003
Could you please review this JDK 11 specific bug fix?
The change addresses an issue in frame_aarch64.cpp, within the
safe_for_sender function. The existing code
```
bool unextended_sp_safe = unextended_sp < thread->stack_base();
```
checks only one unsafe scenario. It does not consider the case where the
unextended_sp falls within the stack space.
The proposed change
```
bool unextended_sp_safe = (unextended_sp < thread->stack_base() &&
sp >= thread->stack_base() - thread->stack_size());
```
ensures that the behavior aligns with JDK 15+ (since JDK-8238988), where
the unextended_sp is checked against the stack limits.
Unfortunately, I couldn't create a reliable JTReg test to trigger this
issue. However, I ran existing tier1-tier4 tests on a linux-aarch64 system
and observed no new failures.
The same change would apply to jdk8u-dev where I plan to backport it once
this PR is merged.
Cheers,
Jaroslav Bachorík
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-updates-dev/attachments/20250307/91798eb0/attachment-0001.htm>
More information about the jdk-updates-dev
mailing list