See http://cr.openjdk.java.net/~kdnilsen/JDK-8241062/webrev.00/ This patch addresses the problem described in https://bugs.openjdk.java.net/browse/JDK-8241062 Satisfies tier1, tier2, and hotspot_gc_shenandoah regression tests. Is this ok to merge?