Integrated: JDK-8293344: JDK-8242181 broke stack printing for non-attached threads
Thomas Stuefe
stuefe at openjdk.org
Mon Sep 5 13:11:01 UTC 2022
On Mon, 5 Sep 2022 07:12:11 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> https://bugs.openjdk.org/browse/JDK-8242181 gave us source infos in call stacks on Linux, which is really nice, but it made stack printing more vulnerable. We now require Thread::current, which makes stack printing fail and crash in non-attached threads. Causes truncated or missing stacks in hs-err file resp. crashes if stack printing is used outside error reporting.
>
> I tested the fix manually.
>
> I also am working on a testing facility for cases like these, which I will introduce in a separate RFE (see https://bugs.openjdk.org/browse/JDK-8293346).
This pull request has now been integrated.
Changeset: d4e3e695
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d4e3e69505db1b114afec2f6a61acf1261a8e69c
Stats: 6 lines in 1 file changed: 3 ins; 2 del; 1 mod
8293344: JDK-8242181 broke stack printing for non-attached threads
Reviewed-by: chagedorn, mdoerr
-------------
PR: https://git.openjdk.org/jdk/pull/10158
More information about the hotspot-runtime-dev
mailing list