8160942: Unused code in GraphKit::record_profiled_receiver_for_speculation
Summary: Fixed logic error; locally scoped 'maybe_null' w/initialiser is unused/dead
Reviewed-by: kvn
Contributed-by: patric.hedlin@oracle.com
--- a/hotspot/src/share/vm/opto/graphKit.cpp Tue Aug 30 09:01:33 2016 +0000
+++ b/hotspot/src/share/vm/opto/graphKit.cpp Wed Jul 13 12:10:22 2016 +0200
@@ -2172,10 +2172,9 @@
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();
+ maybe_null = data == NULL ? true : data->as_BitData()->null_seen();
}
return record_profile_for_speculation(n, exact_kls, maybe_null);
- return n;
}
/**