We see now in our asan build (linux x86_64 product) this build error, are you aware of this ?
/priv/jenkins/ci1/client-home/workspace/openjdk-jdk-weekly-linux_x86_64-opt/jdk/test/hotspot/gtest/nmt/test_nmt_cornercases.cpp:35:13: error: 'void check_expected_malloc_header(const void*, MemTag, size_t)' defined but not used [-Werror=unused-function]
35 | static void check_expected_malloc_header(const void* payload, MemTag mem_tag, size_t size) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
If the function void check_expected_malloc_header is unused now we should probably move it into the
#if !INCLUDE_ASAN
block ?
/priv/jenkins/ci1/client-home/workspace/openjdk-jdk-weekly-linux_x86_64-opt/jdk/test/hotspot/gtest/nmt/test_nmt_cornercases.cpp:35:13: error: 'void check_expected_malloc_header(const void*, MemTag, size_t)' defined but not used [-Werror=unused-function]
35 | static void check_expected_malloc_header(const void* payload, MemTag mem_tag, size_t size) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
If the function void check_expected_malloc_header is unused now we should probably move it into the
#if !INCLUDE_ASAN
block ?
- relates to
-
JDK-8369393 NMT: poison the malloc header and footer under ASAN build
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/bfb6de5b
-
Review(master)
openjdk/jdk/29636