src/share/vm/code/compiledIC.hpp

Print this page
rev 3825 : Specify offset of IC load in java_to_interp stub.

If a compiled static call calls the interpreter, it jumps past a
java_to_interp stub in the compiled code. Patching this call must
find the load of the IC. So far the shared code assumed this is the
first instruction in the stub.
This might not be the case if, for example, the base of the constant
table must be loaded.
Extend CompiledStaticCall to consider an offset from its beginning
where to search the load of the IC.

@@ -325,10 +325,14 @@
   static void set_stub_to_clean(static_stub_Relocation* static_stub);
 
   // Misc.
   void print()  PRODUCT_RETURN;
   void verify() PRODUCT_RETURN;
+
+  // Offset of start of compiled java to interpreter stub to the load
+  // constant that loads the inline cache (IC). See ad file.
+  static const int comp_to_int_load_offset;
 };
 
 
 inline CompiledStaticCall* compiledStaticCall_before(address return_addr) {
   CompiledStaticCall* st = (CompiledStaticCall*)nativeCall_before(return_addr);