On Sat, 14 Nov 2026 19:27:59 GMT, Richard Reingruber <[email protected]> wrote:
> We have to define `GTEST_HAS_PTHREAD=1` on aix since there are tests now that
> use gtest's `SCOPED_TRACE` in worker threads which relies on a proper
> implementation of gtest's `ThreadLocal` (see issue).
>
> Testing:
>
>
> function repro() { \
> local B=`readlink -f .` ; \
> LIBPATH=$B/images/test/hotspot/gtest/server/ \
> $B/images/test/hotspot/gtest/server/gtestLauncher \
> -jdk $B/images/jdk \
> -Xmx200m \
> --gtest_output=xml:test_result.xml \
> --gtest_catch_exceptions=0 \
> --gtest_filter='AtomicAccessBitops.concurrent_uint64_vm' \
> ; \
> }
> while repro ; do echo OK ; done
>
>
> With the change the issue doesn't reproduce anymore.
>
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK
> Interim AI Policy](https://openjdk.org/legal/ai).
This pull request has now been integrated.
Changeset: f9558555
Author: Richard Reingruber <[email protected]>
URL:
https://git.openjdk.org/jdk/commit/f95585555e35d0015681f577c09a4a173d3bca55
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
8397390: [TESTBUG][AIX] SEGV during gtests teardown in ~UnitTestImpl
Reviewed-by: mdoerr, dbriemann, erikj
-------------
PR: https://git.openjdk.org/jdk/pull/33909