On Thu, 13 Nov 2025 12:53:50 GMT, Yasumasa Suenaga <[email protected]> wrote:

>> We've fixed mixed mode jstack for the debuggee running with `-Xcomp` in 
>> [JDK-8370176](https://bugs.openjdk.org/browse/JDK-8370176), but it was not 
>> enough. We need to handle like unifying `CFrame` and `Frame` in stack 
>> unwinding as possible, and need to change how to get caller SP/FP from stack.
>> 
>> This PR works fine on both Linux AMD64 and Linux AArch64. All of 
>> `hotspot/jtreg/serviceability/sa` tests have been passed on both platforms.
>> 
>> Big thanks to @pchilano for your help!
>
> Yasumasa Suenaga has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Update for Linux PPC64 and RISC-V

On macosx I'm seeing the following when running ClhsdbPStack.java:
``` Opening core file, please wait...
hsdb> hsdb> + verbose true
hsdb> + pstack -v
Deadlock Detection:

No deadlocks found.

Not available for Mac OS X processes
hsdb> + quit

The "Not available for Mac OS X processes" message is expected when running on 
a macosx process, but in this case the test is running the core version of the 
test, so SA is acting on a core file. The test goes on to fail because there 
are no threads in the output.

The message is generated by PStack.java whenever the thread list is null and it 
is running on OSX. In that case it assumes the reason the thread list is null 
is because it is running on a macosx process. It's not clear to me why the 
thread list is null. I don't see any changes that look like they could cause 
that.

This happens with both x64 and aarch64, although you need to remove the test 
from the problem list for macosx-aarch64 to get it to reproduce. macosx-x64 is 
not problem listed.

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

PR Comment: https://git.openjdk.org/jdk/pull/28284#issuecomment-3545013052

Reply via email to