comparison src/share/vm/runtime/sharedRuntime.cpp @ 10199:a5c95fcf7cb7

8012157: removed unused code in SharedRuntime::handle_wrong_method Reviewed-by: kvn, roland, rbackman Contributed-by: albert.noll@oracle.com
author neliasso
date Tue, 23 Apr 2013 18:06:54 +0200
parents df8462fbe585
children f0bc60565ba8
comparison
equal deleted inserted replaced
10198:247342108a11 10199:a5c95fcf7cb7
1313 // safepoint is possible and have trouble gc'ing the compiled args. 1313 // safepoint is possible and have trouble gc'ing the compiled args.
1314 RegisterMap reg_map(thread, false); 1314 RegisterMap reg_map(thread, false);
1315 frame stub_frame = thread->last_frame(); 1315 frame stub_frame = thread->last_frame();
1316 assert(stub_frame.is_runtime_frame(), "sanity check"); 1316 assert(stub_frame.is_runtime_frame(), "sanity check");
1317 frame caller_frame = stub_frame.sender(&reg_map); 1317 frame caller_frame = stub_frame.sender(&reg_map);
1318
1319 // MethodHandle invokes don't have a CompiledIC and should always
1320 // simply redispatch to the callee_target.
1321 address sender_pc = caller_frame.pc();
1322 CodeBlob* sender_cb = caller_frame.cb();
1323 nmethod* sender_nm = sender_cb->as_nmethod_or_null();
1324 1318
1325 if (caller_frame.is_interpreted_frame() || 1319 if (caller_frame.is_interpreted_frame() ||
1326 caller_frame.is_entry_frame()) { 1320 caller_frame.is_entry_frame()) {
1327 Method* callee = thread->callee_target(); 1321 Method* callee = thread->callee_target();
1328 guarantee(callee != NULL && callee->is_method(), "bad handshake"); 1322 guarantee(callee != NULL && callee->is_method(), "bad handshake");