RFR: 8067306: Improve STATIC_ASSERT

Kim Barrett kim.barrett at oracle.com
Fri Dec 19 17:16:54 UTC 2014


On Dec 19, 2014, at 5:11 AM, Stefan Karlsson <stefan.karlsson at oracle.com> wrote:
> 
> Would it just not compile or would it produce the wrong answer? If it just wouldn't compile I don't think we should add this extra line noise. If we encounter a problem with it we'll find out and then we can add this workaround. The previous code already worked with only <cond>.

Since I don’t have an exemplar of a problematic toolchain, I really have no idea.  Unfortunately, my awareness of this potential issue is based on having looked at a number of different implementations of this facility over the years that contain code similar to this, and none of them contained a detailed explanation, just complaints about ancient compilers.  OTOH, it does future-proof for C++11 features, as if *that* will ever be a worry.



More information about the hotspot-gc-dev mailing list