< prev index next >

src/hotspot/cpu/riscv/c1_Runtime1_riscv.cpp

Print this page
@@ -881,14 +881,13 @@
          StubFrame f(sasm, "monitorenter", dont_gc_arguments);
          OopMap* map = save_live_registers(sasm, save_fpu_registers);
          assert_cond(map != NULL);
  
          // Called with store_parameter and not C abi
-         f.load_argument(1, x10); // x10: object
-         f.load_argument(0, x11); // x11: lock address
+         f.load_argument(0, x10); // x10: object
  
-         int call_offset = __ call_RT(noreg, noreg, CAST_FROM_FN_PTR(address, monitorenter), x10, x11);
+         int call_offset = __ call_RT(noreg, noreg, CAST_FROM_FN_PTR(address, monitorenter), x10);
  
          oop_maps = new OopMapSet();
          assert_cond(oop_maps != NULL);
          oop_maps->add_gc_map(call_offset, map);
          restore_live_registers(sasm, save_fpu_registers);

@@ -903,11 +902,11 @@
          StubFrame f(sasm, "monitorexit", dont_gc_arguments);
          OopMap* map = save_live_registers(sasm, save_fpu_registers);
          assert_cond(map != NULL);
  
          // Called with store_parameter and not C abi
-         f.load_argument(0, x10); // x10: lock address
+         f.load_argument(0, x10); // x10: object
  
          // note: really a leaf routine but must setup last java sp
          //       => use call_RT for now (speed can be improved by
          //       doing last java sp setup manually)
          int call_offset = __ call_RT(noreg, noreg, CAST_FROM_FN_PTR(address, monitorexit), x10);
< prev index next >