src/hotspot/share/runtime/thread.inline.hpp
changeset 48005 9fd89aabb6cd
parent 47881 0ce0ac68ace7
child 48105 8d15b1369c7a
--- a/src/hotspot/share/runtime/thread.inline.hpp	Mon Nov 20 09:46:55 2017 +0000
+++ b/src/hotspot/share/runtime/thread.inline.hpp	Mon Nov 20 15:56:32 2017 -0500
@@ -156,7 +156,8 @@
 
 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