8046684: sharedRuntime.cpp...assert(((nmethod*)cb)->is_at_poll_or_poll_return(pc)) failed: safepoint polling: type must be poll

Emit a poll relocation for the testl in is_polling_page_far() on x86

Reviewed-by: vlivanov, roland
This commit is contained in:
Igor Veresov 2014-06-18 10:54:32 -07:00
parent 02f3dbb898
commit 7ae9df8697

View File

@ -625,6 +625,7 @@ int LIR_Assembler::safepoint_poll(LIR_Opr tmp, CodeEmitInfo* info) {
__ lea(rscratch1, polling_page);
offset = __ offset();
add_debug_info_for_branch(info);
__ relocate(relocInfo::poll_type);
__ testl(rax, Address(rscratch1, 0));
} else {
add_debug_info_for_branch(info);