--- old/src/share/vm/runtime/thread.hpp 2018-01-26 00:12:34.374196880 -0500 +++ new/src/share/vm/runtime/thread.hpp 2018-01-26 00:12:34.322196882 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1801,7 +1801,8 @@ inline bool JavaThread::stack_yellow_zone_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