On Tue, 9 Jun 2026 01:27:36 GMT, SendaoYan <[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).
>
> make/test/JtregNativeHotspot.gmk line 69:
> 
>> 67:   TEST_exeinvoke_exeinvoke.c_OPTIMIZATION := NONE
>> 68:   HOTSPOT_JTREG_EXECUTABLES_LIBS_exeFPRegs := -ldl
>> 69:   HOTSPOT_JTREG_LIBRARIES_LIBS_libatExit += -ldl
> 
> Should we update the copyright year.

Please do

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31411#discussion_r3378748817

Reply via email to