RFR: 8254882: ZGC: Use static_assert instead of guarantee [v2]

Kim Barrett kbarrett at openjdk.java.net
Mon Oct 19 05:37:09 UTC 2020


On Sun, 18 Oct 2020 19:32:19 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".
>
> Per Liden has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add messages

Looks better - sorry I missed that.  Do any of Oracle's supported compiler configurations complain?  If not, I'm sure
this will keep happening.

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

Marked as reviewed by kbarrett (Reviewer).

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



More information about the hotspot-gc-dev mailing list