src/hotspot/cpu/sparc/macroAssembler_sparc.cpp
changeset 50380 bec342339138
parent 49902 3661f31c6df4
child 50446 39ca7558bc43
--- a/src/hotspot/cpu/sparc/macroAssembler_sparc.cpp	Mon Jun 04 11:19:54 2018 +0200
+++ b/src/hotspot/cpu/sparc/macroAssembler_sparc.cpp	Mon Jun 04 10:18:43 2018 -0400
@@ -3338,6 +3338,12 @@
   _masm->bind(_label);
 }
 
+void MacroAssembler::bang_stack_with_offset(int offset) {
+  // stack grows down, caller passes positive offset
+  assert(offset > 0, "must bang with negative offset");
+  set((-offset)+STACK_BIAS, G3_scratch);
+  st(G0, SP, G3_scratch);
+}
 
 // Writes to stack successive pages until offset reached to check for
 // stack overflow + shadow pages.  This clobbers tsp and scratch.