Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8326717

Disable stringop-overflow in shenandoahLock.cpp

XMLWordPrintable

    • gc
    • b12
    • aarch64
    • linux

        Fastdebug builds are failing on Linux aarch64 with GCC13.2

        In member function ‘void Atomic::PlatformOrderedStore<byte_size, RELEASE_X>::operator()(volatile T*, T) const [with T = unsigned int; long unsigned int byte_size = 4]’,
            inlined from ‘void Atomic::StoreImpl<T, T, PlatformOp, typename std::enable_if<PrimitiveConversions::Translate<T>::value, void>::type>::operator()(volatile T*, T) const [with T = JavaThreadState; PlatformOp = Atomic::PlatformOrderedStore<4, RELEASE_X>]’ at /code/src/hotspot/share/runtime/atomic.hpp:605:17,
            inlined from ‘static void Atomic::release_store(volatile D*, T) [with D = JavaThreadState; T = JavaThreadState]’ at /code/src/hotspot/share/runtime/atomic.hpp:905:65,
            inlined from ‘void JavaThread::set_thread_state(JavaThreadState)’ at /code/src/hotspot/share/runtime/javaThread.inline.hpp:156:24,
            inlined from ‘static void ThreadStateTransition::transition_from_vm(JavaThread*, JavaThreadState, bool)’ at /code/src/hotspot/share/runtime/interfaceSupport.inline.hpp:123:31,
            inlined from ‘ThreadBlockInVMPreprocess<PRE_PROC>::ThreadBlockInVMPreprocess(JavaThread*, PRE_PROC&, bool) [with PRE_PROC = void(JavaThread*)]’ at /code/src/hotspot/share/runtime/interfaceSupport.inline.hpp:209:23,
            inlined from ‘ThreadBlockInVM::ThreadBlockInVM(JavaThread*, bool)’ at /code/src/hotspot/share/runtime/interfaceSupport.inline.hpp:226:63,
            inlined from ‘void ShenandoahLock::contended_lock_internal(JavaThread*) [with BlockOp = ThreadBlockInVM]’ at /code/src/hotspot/share/gc/shenandoah/shenandoahLock.cpp:59:15:
        /code/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=]

              dlutker Dan Lutker
              dlutker Dan Lutker
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: