RFR: 8254882: ZGC: Use static_assert instead of guarantee

Thomas Schatzl tschatzl at openjdk.java.net
Fri Oct 16 15:38:08 UTC 2020


On Fri, 16 Oct 2020 09:27:25 GMT, Per Liden <pliden at openjdk.org> wrote:

> The ZMarkStackAllocator uses guarantee(), which can be turned into static_assert(). I took the opportunity to also
> change three exsisting uses of STATIC_ASSERT to static_assert, and adjust some neighbouring "typedefs" to "using".

Marked as reviewed by tschatzl (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/696



More information about the hotspot-gc-dev mailing list