-
Bug
-
Resolution: Unresolved
-
P4
-
25
-
+ uname -a
Linux CompilerTest-aarch64-6 5.10.134-16.1.al8.aarch64 #1 SMP Thu Dec 7 22:04:51 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
+ cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"+ free -h
total used free shared buff/cache available
Mem: 245Gi 2.9Gi 229Gi 9.0Mi 13Gi 240Gi
Swap: 0B 0B 0B
+ lscpu
+ head -n 25
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 64
On-line CPU(s) list: 0-63
Thread(s) per core: 1
Core(s) per socket: 64
Socket(s): 1
NUMA node(s): 1
Vendor ID: ARM
Model: 0
Model name: Neoverse-N2
Stepping: r0p0
CPU MHz: 3000.000
CPU max MHz: 3000.0000
CPU min MHz: 3000.0000
BogoMIPS: 100.00
L1d cache: 64K
L1i cache: 64K
L2 cache: 1024K
L3 cache: 65536K
NUMA node0 CPU(s): 0-63
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
+ ldd --version
ldd (GNU libc) 2.32
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
+ java -version
openjdk version "24" 2025-03-18
OpenJDK Runtime Environment (build 24)
OpenJDK 64-Bit Server VM (build 24, mixed mode, sharing)
+ java -Xinternalversion
OpenJDK 64-Bit Server VM (24) for linux-aarch64 JRE (24), built on 2024-10-23T06:09:16Z with gcc 10.2.1 20210130 (Red Hat 10.2.1-11)
+ git remote -v
origin git@github.com:sendaoYan/jdk-ysd.git (fetch)
origin git@github.com:sendaoYan/jdk-ysd.git (push)
upstream git@github.com:openjdk/jdk.git (fetch)
upstream git@github.com:openjdk/jdk.git (push)
+ git log -n 1
+ head -n 1
commit 7d3a4049d5d6fd9a8b0c3808e8428edf501b5f9a+ uname -a Linux CompilerTest-aarch64-6 5.10.134-16.1.al8.aarch64 #1 SMP Thu Dec 7 22:04:51 CST 2023 aarch64 aarch64 aarch64 GNU/Linux + cat /etc/os-release NAME="Alibaba Cloud Linux" VERSION="3 (Soaring Falcon)" ID="alinux" ID_LIKE="rhel fedora centos anolis" VERSION_ID="3" UPDATE_ID="9" PLATFORM_ID="platform:al8" PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)" ANSI_COLOR="0;31" HOME_URL="https://www.aliyun.com/" + free -h total used free shared buff/cache available Mem: 245Gi 2.9Gi 229Gi 9.0Mi 13Gi 240Gi Swap: 0B 0B 0B + lscpu + head -n 25 Architecture: aarch64 Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 1 Core(s) per socket: 64 Socket(s): 1 NUMA node(s): 1 Vendor ID: ARM Model: 0 Model name: Neoverse-N2 Stepping: r0p0 CPU MHz: 3000.000 CPU max MHz: 3000.0000 CPU min MHz: 3000.0000 BogoMIPS: 100.00 L1d cache: 64K L1i cache: 64K L2 cache: 1024K L3 cache: 65536K NUMA node0 CPU(s): 0-63 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh + ldd --version ldd (GNU libc) 2.32 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper. + java -version openjdk version "24" 2025-03-18 OpenJDK Runtime Environment (build 24) OpenJDK 64-Bit Server VM (build 24, mixed mode, sharing) + java -Xinternalversion OpenJDK 64-Bit Server VM (24) for linux-aarch64 JRE (24), built on 2024-10-23T06:09:16Z with gcc 10.2.1 20210130 (Red Hat 10.2.1-11) + git remote -v origin git@github.com:sendaoYan/jdk-ysd.git (fetch) origin git@github.com:sendaoYan/jdk-ysd.git (push) upstream git@github.com:openjdk/jdk.git (fetch) upstream git@github.com:openjdk/jdk.git (push) + git log -n 1 + head -n 1 commit 7d3a4049d5d6fd9a8b0c3808e8428edf501b5f9a
-
aarch64
-
linux
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 ‘T Atomic::PlatformOrderedLoad<byte_size, X_ACQUIRE>::operator()(const volatile T*) const [with T = unsigned char; long unsigned int byte_size = 1]’,
inlined from ‘T Atomic::LoadImpl<T, PlatformOp, typename std::enable_if<PrimitiveConversions::Translate<T>::value, void>::type>::operator()(const volatile T*) const [with T = InstanceKlass::ClassState; PlatformOp = Atomic::PlatformOrderedLoad<1, X_ACQUIRE>]’ at src/hotspot/share/runtime/atomic.hpp:537:34,
inlined from ‘static T Atomic::load_acquire(const volatile T*) [with T = InstanceKlass::ClassState]’ at src/hotspot/share/runtime/atomic.hpp:887:67,
inlined from ‘InstanceKlass::ClassState InstanceKlass::init_state() const’ at src/hotspot/share/oops/instanceKlass.hpp:520:73,
inlined from ‘bool InstanceKlass::is_being_initialized() const’ at src/hotspot/share/oops/instanceKlass.hpp:517:63,
inlined from ‘void InstanceKlass::initialize_impl(JavaThread*)’ at src/hotspot/share/oops/instanceKlass.cpp:1183:32:
src/hotspot/os_cpu/linux_aarch64/atomic_linux_aarch64.hpp:203:66: error: ‘unsigned char __atomic_load_1(const volatile void*, int)’ writing 1 byte into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
203 | T operator()(const volatile T* p) const { T data; __atomic_load(const_cast<T*>(p), &data, __ATOMIC_ACQUIRE); return data; }
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In member function ‘void InstanceKlass::initialize_impl(JavaThread*)’:
cc1plus: note: destination object is likely at address zero
cc1plus: all warnings being treated as errors
Standalone compile command:
g++ -MMD -MF build/linux-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/instanceKlass.d.tmp -fpch-preprocess -Ibuild/linux-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -D_REENTRANT -pipe -fno-rtti -fno-exceptions -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector -std=c++14 -DLIBC=gnu -DLINUX -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wformat=2 -Wpointer-arith -Wreturn-type -Wsign-compare -Wtrampolines -Wundef -Wunused-const-variable=1 -Wunused-function -Wunused-result -Wunused-value -Woverloaded-virtual -Wreorder -fPIC -DVM_LITTLE_ENDIAN -D_LP64=1 -Wno-psabi -fno-lifetime-dse -Wno-format-zero-length -Wtype-limits -Wuninitialized -fsanitize=address -Wno-stringop-truncation -fno-omit-frame-pointer -fno-common -DADDRESS_SANITIZER --param asan-use-after-return=0 -fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER -fsanitize=leak -fno-omit-frame-pointer -DLEAK_SANITIZER -DASSERT -DCHECK_UNHANDLED_OOPS -DTARGET_ARCH_aarch64 -DINCLUDE_SUFFIX_OS=_linux -DINCLUDE_SUFFIX_CPU=_aarch64 -DINCLUDE_SUFFIX_COMPILER=_gcc -DTARGET_COMPILER_gcc -DAARCH64 -DHOTSPOT_LIB_ARCH='"aarch64"' -DCOMPILER1 -DCOMPILER2 -DDTRACE_ENABLED -Ibuild/linux-aarch64-server-fastdebug/hotspot/variant-server/gensrc/adfiles -Isrc/hotspot/share -Isrc/hotspot/os/linux -Isrc/hotspot/os/posix -Isrc/hotspot/cpu/aarch64 -Isrc/hotspot/os_cpu/linux_aarch64 -Ibuild/linux-aarch64-server-fastdebug/hotspot/variant-server/gensrc -Isrc/hotspot/share/precompiled -Isrc/hotspot/share/include -Isrc/hotspot/os/posix/include -Ibuild/linux-aarch64-server-fastdebug/support/modules_include/java.base -Ibuild/linux-aarch64-server-fastdebug/support/modules_include/java.base/linux -Isrc/java.base/share/native/libjimage -DCOMPATIBLE_CDS_ALIGNMENT -Ibuild/linux-aarch64-server-fastdebug/hotspot/variant-server/gensrc/adfiles -Isrc/hotspot/share -Isrc/hotspot/os/linux -Isrc/hotspot/os/posix -Isrc/hotspot/cpu/aarch64 -Isrc/hotspot/os_cpu/linux_aarch64 -Ibuild/linux-aarch64-server-fastdebug/hotspot/variant-server/gensrc -Ibuild/linux-aarch64-server-fastdebug/support/modules_include/java.base -Isrc/java.base/unix/native/include -Isrc/java.base/share/native/include -g -gdwarf-4 -Wno-unused-parameter -Wno-array-bounds -Wno-comment -Wno-delete-non-virtual-dtor -Wno-empty-body -Wno-implicit-fallthrough -Wno-int-in-bool-context -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-variable -Wno-strict-overflow -Werror -O3 -D_FORTIFY_SOURCE=2 -c -o build/linux-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/instanceKlass.o src/hotspot/share/oops/instanceKlass.cpp -frandom-seed="instanceKlass.cpp"
- relates to
-
JDK-8289512 Fix GCC 12 warnings for adlc output_c.cpp
- Resolved