diff src/cpu/x86/vm/jvmciCodeInstaller_x86.cpp @ 23767:edf3f2eb3b00

Record metadata_Relocations for metadata references
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 28 Sep 2016 16:39:44 -0700
parents 83b296a07c33
children 59f53c97a38a
line wrap: on
line diff
--- a/src/cpu/x86/vm/jvmciCodeInstaller_x86.cpp	Wed Sep 28 19:27:23 2016 +0200
+++ b/src/cpu/x86/vm/jvmciCodeInstaller_x86.cpp	Wed Sep 28 16:39:44 2016 -0700
@@ -87,14 +87,14 @@
   if (HotSpotMetaspaceConstantImpl::compressed(constant)) {
 #ifdef _LP64
     address operand = Assembler::locate_operand(pc, Assembler::narrow_oop_operand);
-    *((narrowKlass*) operand) = record_narrow_metadata_reference(constant, CHECK);
+    *((narrowKlass*) operand) = record_narrow_metadata_reference(_instructions, operand, constant, CHECK);
     TRACE_jvmci_3("relocating (narrow metaspace constant) at %p/%p", pc, operand);
 #else
     JVMCI_ERROR("compressed Klass* on 32bit");
 #endif
   } else {
     address operand = Assembler::locate_operand(pc, Assembler::imm_operand);
-    *((void**) operand) = record_metadata_reference(constant, CHECK);
+    *((void**) operand) = record_metadata_reference(_instructions, operand, constant, CHECK);
     TRACE_jvmci_3("relocating (metaspace constant) at %p/%p", pc, operand);
   }
 }