# HG changeset patch # User kvn # Date 1348786188 25200 # Node ID 69fb89ec6fa79472697e92cd16b5505c370dfcee # Parent e626685e9f6c78652c5493f1cda1827055509142 7198084: NPG: distance is too big for short branches in test_invocation_counter_for_mdp() Summary: use long branches in test_invocation_counter_for_mdp() Reviewed-by: twisti diff -r e626685e9f6c -r 69fb89ec6fa7 src/cpu/sparc/vm/interp_masm_sparc.cpp --- a/src/cpu/sparc/vm/interp_masm_sparc.cpp Thu Sep 27 09:38:42 2012 -0700 +++ b/src/cpu/sparc/vm/interp_masm_sparc.cpp Thu Sep 27 15:49:48 2012 -0700 @@ -1395,12 +1395,17 @@ AddressLiteral profile_limit((address) &InvocationCounter::InterpreterProfileLimit); sethi(profile_limit, Rtmp); ld(Rtmp, profile_limit.low10(), Rtmp); - cmp_and_br_short(invocation_count, Rtmp, Assembler::lessUnsigned, Assembler::pn, profile_continue); + cmp(invocation_count, Rtmp); + // Use long branches because call_VM() code and following code generated by + // test_backedge_count_for_osr() is large in debug VM. + br(Assembler::lessUnsigned, false, Assembler::pn, profile_continue); + delayed()->nop(); // Build it now. call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::profile_method)); set_method_data_pointer_for_bcp(); - ba_short(profile_continue); + ba(profile_continue); + delayed()->nop(); bind(done); }