RFR: 8370176: Mixed mode jhsdb jstack cannot unwind call stack with -Xcomp [v2]
Yasumasa Suenaga
ysuenaga at openjdk.org
Tue Oct 21 05:47:05 UTC 2025
On Mon, 20 Oct 2025 19:44:07 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
>> Yasumasa Suenaga has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update testcase
>
> test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackMixedWithXComp.java line 40:
>
>> 38: * @bug 8370176
>> 39: * @requires vm.hasSA
>> 40: * @requires os.family == "linux"
>
> Do Windows and OSX have a similar problem that should be fixed also?
This problem is in mixed mode (`PStack`) only, thus we need to skip OSX because [you mentioned](https://github.com/openjdk/jdk/pull/27728#issuecomment-3392919979) mixed mode is not supported on OSX.
In Windows, I'm not sure, but I guess we need to consider `UNWIND_INFO` like DWARF in Linux, however it hasn't done yet. Thus I didn't added Windows here.
https://learn.microsoft.com/cpp/build/exception-handling-x64
Actually I could not see all of stacks as following in mixed mode. It works in normal mode (without `--mixed`) of course. (I tested it on Windows 11 x64, upstream JDK built by VS 2022)
----------------- 13 -----------------
"Reference Handler" #15 daemon prio=10 tid=0x00000207280b9f70 nid=12684 waiting on condition [0x000000aaf6aff000]
java.lang.Thread.State: RUNNABLE
JavaThread state: _thread_blocked
0x00007fffa6b45844 ntdll!NtWaitForAlertByThreadId + 0x14
0x00000000ffffffff ????????
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27885#discussion_r2446778835
More information about the serviceability-dev
mailing list