Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wisp] coroutine.cpp reported compile warning ‘w.WispPostStealHandleUpdateMark::_hwm’ is used uninitialized #897

Open
sendaoYan opened this issue Dec 18, 2024 · 0 comments
Assignees

Comments

@sendaoYan
Copy link
Collaborator

sendaoYan commented Dec 18, 2024

Configure command:

bash configure --with-jobs=128 --prefix=/home/yansendao/git/dragonwell11/install-release --verbose --with-debug-level=release --enable-unlimited-crypto --with-vendor-name=yansendao --with-vendor-url=https://github.com/sendaoYan --with-vendor-bug-url=mailto:[email protected] --with-vendor-vm-bug-url=mailto:[email protected] --with-jvm-variants=server --with-boot-jdk=/home/yansendao/software/jdk/2024-11/dragonwell-11.0.25.22+9-GA  --with-jtreg=/home/yansendao/software/jdk/jtreg-7     --with-version-opt=b985104e --with-zlib=system --enable-ccache

Compile standalone command:

g++ -MMD -MF /home/yansendao/git/dragonwell11/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/coroutine.d.tmp -fpch-preprocess -I/home/yansendao/git/dragonwell11/build/linux-x86_64-normal-server-release/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 -fcheck-new -fstack-protector -std=gnu++98 -DLIBC=gnu -DSUPPORTS_CLOCK_MONOTONIC -DLINUX -fPIC -fmacro-prefix-map=/home/yansendao/git/dragonwell11/= -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-delete-null-pointer-checks -fno-lifetime-dse -Wno-format-zero-length -Wtype-limits -Wuninitialized -m64 -DPRODUCT -DTARGET_ARCH_x86 -DINCLUDE_SUFFIX_OS=_linux -DINCLUDE_SUFFIX_CPU=_x86 -DINCLUDE_SUFFIX_COMPILER=_gcc -DTARGET_COMPILER_gcc -DAMD64 -DHOTSPOT_LIB_ARCH='"amd64"' -DCOMPILER1 -DCOMPILER2 -DDTRACE_ENABLED -DINCLUDE_SHENANDOAHGC=0 -I/home/yansendao/git/dragonwell11/build/linux-x86_64-normal-server-release/hotspot/variant-server/gensrc/adfiles -I/home/yansendao/git/dragonwell11/src/hotspot/share -I/home/yansendao/git/dragonwell11/src/hotspot/os/linux -I/home/yansendao/git/dragonwell11/src/hotspot/os/posix -I/home/yansendao/git/dragonwell11/src/hotspot/cpu/x86 -I/home/yansendao/git/dragonwell11/src/hotspot/os_cpu/linux_x86 -I/home/yansendao/git/dragonwell11/build/linux-x86_64-normal-server-release/hotspot/variant-server/gensrc -I/home/yansendao/git/dragonwell11/src/hotspot/share/precompiled -I/home/yansendao/git/dragonwell11/src/hotspot/share/include -I/home/yansendao/git/dragonwell11/src/hotspot/os/posix/include -I/home/yansendao/git/dragonwell11/build/linux-x86_64-normal-server-release/support/modules_include/java.base -I/home/yansendao/git/dragonwell11/build/linux-x86_64-normal-server-release/support/modules_include/java.base/linux -I/home/yansendao/git/dragonwell11/src/java.base/share/native/libjimage -m64 -g -Wno-extra -Wno-all -Werror -O3 -c -o /home/yansendao/git/dragonwell11/build/linux-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/coroutine.o /home/yansendao/git/dragonwell11/src/hotspot/share/runtime/coroutine.cpp

g++ output:

/home/yansendao/git/dragonwell11/src/hotspot/share/runtime/coroutine.cpp: In static member function ‘static void WispThread::park(long int, const ObjectWaiter*)’:
/home/yansendao/git/dragonwell11/src/hotspot/share/runtime/coroutine.cpp:775:35: error: ‘w.WispPostStealHandleUpdateMark::_hwm’ is used uninitialized [-Werror=uninitialized]
  775 |     WispPostStealHandleUpdateMark w(jt);   // special one, because park() is inside an EnableStealMark, so the _enable_steal_count counter has been added one.
      |                                   ^
/home/yansendao/git/dragonwell11/src/hotspot/share/runtime/coroutine.cpp:775:35: error: ‘w.WispPostStealHandleUpdateMark::_chunk’ is used uninitialized [-Werror=uninitialized]
cc1plus: all warnings being treated as errors

gcc version:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/yansendao/software/gcc/gcc-14.2.0-binary/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: configure --prefix=/home/yansendao/git/tone-matrix-compiler/csmith/gcc-14.2.0/../gcc-14.2.0-binary --disable-multilib --enable-languages=c,c++,objc,obj-c++,fortran,lto
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.2.0 (GCC) 

make-linux-x86_64-normal-server-release-1.log
make-linux-x86_64-normal-server-release-2.log
hotspot_variant-server_libjvm_objs_coroutine.o.log
configure-command.txt

@sendaoYan sendaoYan self-assigned this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant