changeset 7003:bb524ee6b8e9

added relocation entry for the Method* operand of the MOV instruction in a static call stub
author Doug Simon <doug.simon@oracle.com>
date Thu, 22 Nov 2012 23:32:10 +0100
parents 74f0207b82f5
children 1d419abb0081
files src/share/vm/graal/graalCodeInstaller.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp	Thu Nov 22 12:56:52 2012 +0100
+++ b/src/share/vm/graal/graalCodeInstaller.cpp	Thu Nov 22 23:32:10 2012 +0100
@@ -766,6 +766,7 @@
         _offsets.set_value(CodeOffsets::Deopt, pc_offset);
         break;
       case MARK_STATIC_CALL_STUB: {
+        _instructions->relocate(instruction, metadata_Relocation::spec_for_immediate());
         assert(references->length() == 1, "static call stub needs one reference");
         oop ref = ((oop*) references->base(T_OBJECT))[0];
         address call_pc = _instructions->start() + CompilationResult_Site::pcOffset(ref);