[8u] RFR (S) 8042891: Format issues embedded in macros for two g1 source files

Aleksey Shipilev shade at redhat.com
Mon Mar 1 18:32:26 UTC 2021


Original issue:
   https://bugs.openjdk.java.net/browse/JDK-8042891
   https://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/2e360934b0cf

In our testing, we have seen G1 crashes when it tries to log something, the stack traces leading 
into vnsprintf. I suspect the cause is formatting problems, which are supposed to be resolved by 
this backport.

There are lots of conflicts when applying the patch, all resolved by hand. Additionally, I built 
with x86_32 and x86_64 with GCC 9, and fixed up a few more formatting warnings. The changes are 
mostly putting p2i() where PTR_FORMAT is expected, matching %u or UINTX_FORMAT where needed, etc.

8u variant:
   https://cr.openjdk.java.net/~shade/8042891/webrev.8u.01/

Testing: tier1

-- 
Thanks,
-Aleksey



More information about the jdk8u-dev mailing list