On Sat, 6 Jun 2026 16:18:10 GMT, Boris Ulasevich <[email protected]> wrote:

> The 
> [test/hotspot/jtreg/runtime/jni/critical/libSuspendInCritical.cpp](https://github.com/openjdk/jdk/pull/30936/changes#diff-137899820d5ad5d36c91c879aa09a9678112d4be6718ba8e64ebfe1a20f6dda3)
>  library operates with `jlong` native_counter. 32-bit ARM lacks native 8-byte 
> atomic instructions, so GCC emits calls to 
> __atomic_load_8/__atomic_fetch_add_8 from libatomic, which is not linked, 
> causing a build failure.
> 
> The issue is fixed by adding -latomic link flag for the library into 
> JtregNativeHotspot.gmk.
> 
> ---------
> - [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: c278e8b4
Author:    Boris Ulasevich <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/c278e8b4cf461f96d05e2baf88ad7078e8a6d4a0
Stats:     4 lines in 1 file changed: 3 ins; 0 del; 1 mod

8386107: arm32: libSuspendInCritical jtreg library fails to link

Reviewed-by: shade, erikj, dholmes

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

PR: https://git.openjdk.org/jdk/pull/31411

Reply via email to