hotspot/src/cpu/zero/vm/stack_zero.hpp

Print this page

        

@@ -40,10 +40,12 @@
 
   bool needs_setup() const {
     return _base == NULL;
   }
 
+  int suggest_size(Thread *thread) const;
+
   void setup(void *mem, size_t size) {
     assert(needs_setup(), "already set up");
     assert(!(size & WordAlignmentMask), "unaligned");
 
     _base = (intptr_t *) mem;

@@ -65,10 +67,13 @@
   void set_sp(intptr_t *new_sp) {
     assert(_top >= new_sp && new_sp >= _base, "bad stack pointer");
     _sp = new_sp;
   }
 
+  int total_words() const {
+    return _top - _base;
+  }
   int available_words() const {
     return _sp - _base;
   }
 
   void push(intptr_t value) {

@@ -87,10 +92,11 @@
   }
 
   int shadow_pages_size() const {
     return _shadow_pages_size;
   }
+  int abi_stack_available(Thread *thread) const;
 
  public:
   void overflow_check(int required_words, TRAPS);
   static void handle_overflow(TRAPS);