In file included from src/hotspot/share/runtime/atomic.hpp:862, from src/hotspot/share/oops/oop.hpp:35, from src/hotspot/share/oops/weakHandle.hpp:28, from src/hotspot/share/classfile/classLoaderData.hpp:30, from src/hotspot/share/precompiled/precompiled.hpp:34: In member function ‘void Atomic::PlatformOrderedStore::operator()(volatile T*, T) const [with T = unsigned int; long unsigned int byte_size = 4]’, inlined from ‘void Atomic::StoreImpl::value, void>::type>::operator()(volatile T*, T) const [with T = JavaThreadState; PlatformOp = Atomic::PlatformOrderedStore<4, RELEASE_X>]’ at src/hotspot/share/runtime/atomic.hpp:606:17, inlined from ‘static void Atomic::release_store(volatile D*, T) [with D = JavaThreadState; T = JavaThreadState]’ at src/hotspot/share/runtime/atomic.hpp:906:65, inlined from ‘void JavaThread::set_thread_state(JavaThreadState)’ at src/hotspot/share/runtime/javaThread.inline.hpp:158:24, inlined from ‘static void ThreadStateTransition::transition_from_vm(JavaThread*, JavaThreadState, bool)’ at src/hotspot/share/runtime/interfaceSupport.inline.hpp:123:31, inlined from ‘ThreadBlockInVMPreprocess::ThreadBlockInVMPreprocess(JavaThread*, PRE_PROC&, bool) [with PRE_PROC = JvmtiRawMonitor::ExitOnSuspend]’ at src/hotspot/share/runtime/interfaceSupport.inline.hpp:209:23, inlined from ‘int JvmtiRawMonitor::raw_wait(jlong, Thread*)’ at src/hotspot/share/prims/jvmtiRawMonitor.cpp:397:90: src/hotspot/os_cpu/linux_aarch64/atomic_linux_aarch64.hpp:210:61: error: ‘void __atomic_store_4(volatile void*, unsigned int, int)’ writing 4 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=] 210 | void operator()(volatile T* p, T v) const { __atomic_store(const_cast(p), &v, __ATOMIC_RELEASE); } | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function ‘int JvmtiRawMonitor::raw_wait(jlong, Thread*)’: cc1plus: note: destination object is likely at address zero cc1plus: all warnings being treated as errors