RFR: 8351233: [ASAN] avx2-emu-funcs.hpp:151:20: error: ‘D.82188’ is used uninitialized

SendaoYan syan at openjdk.org
Thu Mar 6 03:55:25 UTC 2025


Hi all,

The return type of function `const __m256i &perm` is `__m256i`, so `const __m256i &perm` should be replaced as 'const __m256i perm'.

The function implementation in gcc/clang compiler header:

1. gcc: lib/gcc/x86_64-pc-linux-gnu/14.2.0/include/avxintrin.h


extern __inline __m256i __attribute__((__gnu_inline__, __always_inline__, __artificial__))
_mm256_loadu_si256 (__m256i_u const *__P)
{
  return *__P;
}


2. clang: lib64/clang/17/include/avxintrin.h


static __inline __m256i __DEFAULT_FN_ATTRS
_mm256_loadu_si256(__m256i_u const *__p)
{
  struct __loadu_si256 {
    __m256i_u __v;
  } __attribute__((__packed__, __may_alias__));
  return ((const struct __loadu_si256*)__p)->__v;
}


Additional testing:

- [ ] jtreg tests(include tier1/2/3 etc.) on linux-x64(AMD EPYC 9T24 96-Core Processor) with release build
- [ ] jtreg tests(include tier1/2/3 etc.) on linux-x64(AMD EPYC 9T24 96-Core Processor) with fastdebug build

-------------

Commit messages:
 - 8351233: [ASAN] avx2-emu-funcs.hpp:151:20: error: ‘D.82188’ is used uninitialized

Changes: https://git.openjdk.org/jdk/pull/23925/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23925&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8351233
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/23925.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23925/head:pull/23925

PR: https://git.openjdk.org/jdk/pull/23925


More information about the core-libs-dev mailing list