JDK-6910605 C2: NullPointerException/ClassCaseException is thrown when C2 with DeoptimizeALot is used