changeset 6631:c021ec40774f

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
author iveresov
date Wed, 18 Jun 2014 10:54:32 -0700
parents 90ebb569b57e
children b1df6ed438eb
files src/cpu/x86/vm/c1_LIRAssembler_x86.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Tue Jun 17 11:18:10 2014 -0700
+++ b/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);