Mercurial > hg > truffle
diff src/share/vm/graal/graalCodeInstaller.cpp @ 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 | bf2ea3ed3bce |
children | 17eeac928874 263bc2349f15 |
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);