8046684: sharedRuntime.cpp...assert(((nmethod*)cb)->is_at_poll_or_poll_return(pc)) failed: safepoint polling: type must be poll
Summary: Emit a poll relocation for the testl in is_polling_page_far() on x86
Reviewed-by: vlivanov, roland
--- a/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp Tue Jun 17 11:18:10 2014 -0700
+++ b/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp Wed Jun 18 10:54:32 2014 -0700
@@ -625,6 +625,7 @@
__ 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);