[jdk11u-dev] RFR: 8315380: AsyncGetCallTrace crash in frame::safe_for_sender [v2]

Martin Doerr mdoerr at openjdk.org
Thu Apr 17 11:16:56 UTC 2025


On Thu, 17 Apr 2025 10:59:38 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>>> What's the meaning of trailing \ here?
>> No particular meaning, removed.
>> 
>>> I think you can do unextended_sp >= thread->stack_end() to better capture the intent and match 8238988 better.
>> Yes. Done.
>> 
>> Also, I noticed that the check for unextended_sp is not done very consistently across archs. This is also changed in 8238988 but I opted for the simplicity and added the change only for the arch for which the original issue was reported. I hope it's ok but if a more extensive change is preferred I can apply similar logic to other archs as well.
>
> I see this for other arches:
>  - AArch64: Checks (stack_base, *)
>  - ARM: Checks [stack_base, sp]
>  - PPC: Checks (stack_base, *)
>  - S390: Checks (stack_base, *)
>  - SPARC: Checks [stack_base, sp]
>  - x86: Checks (stack_base, sp]
> 
> So I think only AArch64, PPC and S390 are affected by this bug? Checking against `sp` on other arches looks more conservative than checking for `stack_end()`, so I think we are "fine" there. Given that profiling on PPC and S390 is likely not happening all that often -- I think async-profiler started supporting PPC profiling only not that long ago -- I don't think there is a need to fix those.
> 
> @TheRealMDoerr might disagree, though :)

No, I'm not interested in asprof with jdk11. One remark: I wouldn't allow Copyright additions if I was lead maintainer.

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

PR Review Comment: https://git.openjdk.org/jdk11u-dev/pull/3003#discussion_r2048734729


More information about the jdk-updates-dev mailing list