RFR: 8275717: Reimplement STATIC_ASSERT to use static_assert
Stefan Karlsson
stefank at openjdk.java.net
Fri Oct 22 14:58:04 UTC 2021
On Fri, 22 Oct 2021 12:57:06 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> LGTM.
>
> How do the asserts at build time look like?
>
> I'm in favor of retaining the macro since it enables us to add support for non-compliant compilers and keeps backporting simple.
>
> Thanks, Thomas
Thanks for reviewing!
This is one of the warnings:
In file included from /Users/runner/work/jdk/jdk/jdk/src/hotspot/share/asm/register.cpp:1:
In file included from /Users/runner/work/jdk/jdk/jdk/src/hotspot/share/precompiled/precompiled.hpp:34:
In file included from /Users/runner/work/jdk/jdk/jdk/src/hotspot/share/classfile/classLoaderData.hpp:28:
In file included from /Users/runner/work/jdk/jdk/jdk/src/hotspot/share/memory/allocation.hpp:29:
-------------
PR: https://git.openjdk.java.net/jdk/pull/6077
More information about the hotspot-dev
mailing list