Withdrawn: 8357579: Compilation error: first argument in call to 'memset' is a pointer to non-trivially copyable type
duke
duke at openjdk.org
Thu Aug 28 15:35:56 UTC 2025
On Wed, 2 Jul 2025 16:29:27 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:
> With clang-20 using --with-toolchain-type=clang resolveFieldEntry.cpp and resolveMethodEntry.cpp break the build with similar warnings like:
>
> src/hotspot/share/oops/resolvedFieldEntry.cpp:49:10: error: first argument in call to 'memset' is a pointer to non-trivially copyable type 'ResolvedFieldEntry' [-Werror,-Wnontrivial-memcall]
> 49 | memset(this, 0, sizeof(*this));
> | ^
> src/hotspot/share/oops/resolvedFieldEntry.cpp:49:10: note: explicitly cast the pointer to silence this warning
> 49 | memset(this, 0, sizeof(*this));
> | ^
> | (void*)
>
> The patch follows the suggested fix.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/26098
More information about the hotspot-dev
mailing list