The assertion fired in one of vmTestbase/vm tests. The assertion is racy, even we just saw the flag was clear, other threads could set the flag immediately. Webrev: http://cr.openjdk.java.net/~zgu/shenandoah/racy_assertion/webrev.00/ Test: tier1_gc_shenandoah. Thanks, -Zhengyu