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

SendaoYan syan at openjdk.org
Fri Mar 7 13:02:03 UTC 2025


On Thu, 6 Mar 2025 03:35:20 GMT, SendaoYan <syan at openjdk.org> wrote:

> 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:
> 
> - [x] jtreg tests(include tier1/2/3 etc.) on linux-x64(AMD EPYC 9T24 96-Core Processor) with release build
> - [x] jtreg tests(include tier1/2/3 etc.) on linux-x64(AMD EPYC 9T24 96-Core Processor) with fastdebug build

GHA report 1 test failure:

1. Job 'macos-aarch64 hs/tier1 gc' report "gc/TestAllocHumongousFragment.java#generational" timed out, this issue has been recorded by [JDK-8345958](https://bugs.openjdk.org/browse/JDK-8345958), it's unrelated to this PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/23925#issuecomment-2706398809


More information about the core-libs-dev mailing list