https://bugs.openjdk.java.net/browse/JDK-8204199 http://cr.openjdk.java.net/~dlong/8204199/webrev/ I cherry-picked the fix for this from Graal, rather than wait for 8204231. Graal change is here: https://github.com/oracle/graal/commit/80b18b329f04b8ef75b4c367413a2de51c82f3d9 dl