RFR: 8299380: conflict assert definitions

Xue-Lei Andrew Fan xuelei at openjdk.org
Wed Dec 28 03:44:46 UTC 2022


On Wed, 28 Dec 2022 03:32:19 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> So this seems to be a compiler toolchain bug?

The including file parsing sequences could be complicated, I think. 

For historic reason, there are a lot of use of the assert macro with 2+ parameters.  Basically, assert is a name defined and used in ANSI C.  The name should not be re-defined for other forms and purpose.  As suggested in the definition of the 2+ parameters assert, vmassert() should be used instead.

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

PR: https://git.openjdk.org/jdk/pull/11792


More information about the hotspot-jfr-dev mailing list