RFR: 8266773: Release VM is broken with GCC 9 after JDK-8214237

Jie Fu jiefu at openjdk.java.net
Mon May 10 13:29:57 UTC 2021


Hi all,

Release VM is broken with GCC 9 due to -Werror=format-overflow=.
And if this assert[1] is removed, fastdebug VM can also reproduce the same bug.
The key to reproduce it is to compile with -O3.

IMO, it seems like a false positive gcc bug.
But we'd better fix it since gcc 9 is assumed to be supported to build OpenJDK.

Thanks.
Best regards,
Jie


[1] https://github.com/openjdk/jdk/blob/master/src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp#L47

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

Commit messages:
 - 8266773: Release VM is broken with GCC 9 after JDK-8214237

Changes: https://git.openjdk.java.net/jdk/pull/3941/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3941&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8266773
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3941.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3941/head:pull/3941

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



More information about the hotspot-gc-dev mailing list