http://hg.openjdk.java.net/jdk9/hs-comp/hotspot/rev/37023a7f1e1b#l7.99
+ bool maybe_null = true;
+ if (java_bc() == Bytecodes::_checkcast ||
+ java_bc() == Bytecodes::_instanceof ||
+ java_bc() == Bytecodes::_aastore) {
+ ciProfileData* data = method()->method_data()->bci_to_data(bci());
+ bool maybe_null = data == NULL ? true : data->as_BitData()->null_seen();
+ }
+ return record_profile_for_speculation(n, exact_kls, maybe_null);
+ return n;
- relates to
-
JDK-8031755 Type speculation should be used to optimize explicit null checks
-
- Resolved
-