< prev index next >

src/hotspot/share/runtime/thread.inline.hpp

Print this page

        

@@ -154,11 +154,12 @@
   return cur_sp > low_addr ? cur_sp - low_addr : 0;
 }
 
 inline bool JavaThread::stack_guards_enabled() {
 #ifdef ASSERT
-  if (os::uses_stack_guard_pages()) {
+  if (os::uses_stack_guard_pages() &&
+      !(DisablePrimordialThreadGuardPages && os::is_primordial_thread())) {
     assert(_stack_guard_state != stack_guard_unused, "guard pages must be in use");
   }
 #endif
   return _stack_guard_state == stack_guard_enabled;
 }
< prev index next >