Integrated: 8266206: Build failure after JDK-8264752 with older GCCs

Aleksey Shipilev shade at openjdk.java.net
Wed Apr 28 16:46:00 UTC 2021


On Wed, 28 Apr 2021 11:23:30 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> See the bug report for error log. It seems older GCCs dislike `const char*` as template argument without it being the `constexpr`. Since the bug is marked for eventual backports to 8u and 11u, I think we better play it safe and drop the template argument to `bool`, and select the message in the method body.
> 
> Additional testing:
>  - [x] build passes with GCC 6.3.0
>  - [x] build passes with GCC 9.3.0
>  - [x] `jdk_jfr` passes

This pull request has now been integrated.

Changeset: 21f65f8e
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/21f65f8e79b25b8367fc8d177b5f156b3575c89e
Stats:     4 lines in 1 file changed: 1 ins; 0 del; 3 mod

8266206: Build failure after JDK-8264752 with older GCCs

Reviewed-by: mgronlun

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

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


More information about the hotspot-jfr-dev mailing list