1.1 --- a/src/share/vm/c1/c1_GraphBuilder.cpp Fri Sep 30 13:48:17 2011 -0700 1.2 +++ b/src/share/vm/c1/c1_GraphBuilder.cpp Tue Oct 04 10:07:07 2011 -0700 1.3 @@ -1165,11 +1165,11 @@ 1.4 Goto *x = new Goto(block_at(to_bci), to_bci <= from_bci); 1.5 if (is_profiling()) { 1.6 compilation()->set_would_profile(true); 1.7 - } 1.8 - if (profile_branches()) { 1.9 - x->set_profiled_method(method()); 1.10 x->set_profiled_bci(bci()); 1.11 - x->set_should_profile(true); 1.12 + if (profile_branches()) { 1.13 + x->set_profiled_method(method()); 1.14 + x->set_should_profile(true); 1.15 + } 1.16 } 1.17 append(x); 1.18 } 1.19 @@ -1203,9 +1203,9 @@ 1.20 Goto *goto_node = i->as_Goto(); 1.21 if (goto_node != NULL) { 1.22 compilation()->set_would_profile(true); 1.23 + goto_node->set_profiled_bci(bci()); 1.24 if (profile_branches()) { 1.25 goto_node->set_profiled_method(method()); 1.26 - goto_node->set_profiled_bci(bci()); 1.27 goto_node->set_should_profile(true); 1.28 // Find out which successor is used. 1.29 if (goto_node->default_sux() == tsux) {