RFR: Fixing GCC 7.3.1 build issues

Per Liden per.liden at oracle.com
Thu Mar 15 14:05:46 UTC 2018

We noticed that building the ZGC repo with a recent gcc (like 7.3.1) 
didn't work (it's more picky and generates additional warnings, etc). So 
here are patches to fix that.

ZGC: Avoid treating oops as volatile in root barriers

ZGC: Avoid compiler warning about implicit dereference of volatile oop

ZGC: Avoid oop cast issue in security manager

ZGC: TEMPORARY: Avoid compiler warnings about using the deprecated readdir_r

I'm also planning on bringing in Erik's fix of JDK-8199685 (Access 
arraycopy build failure with GCC 7.3.1), when that goes in upstream.


More information about the zgc-dev mailing list