Bug: https://bugs.openjdk.java.net/browse/JDK-8243238 See the discussion in the bug itself. Webrev: https://cr.openjdk.java.net/~shade/8243238/webrev.01/ Testing: hotspot_gc_shenandoah, DirectBufferAllocTest -- Thanks, -Aleksey