< prev index next >

src/cpu/zero/vm/stack_zero.cpp

Print this page

        

@@ -23,13 +23,20 @@
  *
  */
 
 #include "precompiled.hpp"
 #include "interpreter/interpreterRuntime.hpp"
+#include "runtime/thread.hpp"
 #include "stack_zero.hpp"
 #include "stack_zero.inline.hpp"
 
+// Inlined causes circular inclusion with thread.hpp
+ZeroStack::ZeroStack()
+    : _base(NULL), _top(NULL), _sp(NULL) {
+    _shadow_pages_size = JavaThread::stack_shadow_zone_size();
+  }
+
 int ZeroStack::suggest_size(Thread *thread) const {
   assert(needs_setup(), "already set up");
   int abi_available = abi_stack_available(thread);
   assert(abi_available >= 0, "available abi stack must be >= 0");
   return align_size_down(abi_available / 2, wordSize);
< prev index next >