8160942: Unused code in GraphKit::record_profiled_receiver_for_speculation
authorneliasso
Wed, 13 Jul 2016 12:10:22 +0200
changeset 41055 f9014f1e7dfc
parent 41054 29ca540a1910
child 41056 8b4c1a429e5d
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
hotspot/src/share/vm/opto/graphKit.cpp
--- 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;
 }
 
 /**