From eb9fccdfd79eeb51693fe1dc5ed85a06dacb6a23 Mon Sep 17 00:00:00 2001 From: Patric Hedlin Date: Wed, 13 Jul 2016 12:10:22 +0200 Subject: [PATCH] 8160942: Unused code in GraphKit::record_profiled_receiver_for_speculation Fixed logic error; locally scoped 'maybe_null' w/initialiser is unused/dead Reviewed-by: kvn --- hotspot/src/share/vm/opto/graphKit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hotspot/src/share/vm/opto/graphKit.cpp b/hotspot/src/share/vm/opto/graphKit.cpp index acb4174bcf1..c879137d882 100644 --- a/hotspot/src/share/vm/opto/graphKit.cpp +++ b/hotspot/src/share/vm/opto/graphKit.cpp @@ -2172,10 +2172,9 @@ Node* GraphKit::record_profiled_receiver_for_speculation(Node* n) { 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; } /**