src/share/vm/runtime/thread.hpp

changeset 9289
427b2fb1944f
parent 7627
d68158e12cea
child 9299
c6b5a99cea9e
equal deleted inserted replaced
9288:69b4a8cb80c2 9289:427b2fb1944f
1 /* 1 /*
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
1799 return _stack_guard_state == stack_guard_yellow_disabled; 1799 return _stack_guard_state == stack_guard_yellow_disabled;
1800 } 1800 }
1801 1801
1802 inline bool JavaThread::stack_yellow_zone_enabled() { 1802 inline bool JavaThread::stack_yellow_zone_enabled() {
1803 #ifdef ASSERT 1803 #ifdef ASSERT
1804 if (os::uses_stack_guard_pages()) { 1804 if (os::uses_stack_guard_pages() &&
1805 !(DisablePrimordialThreadGuardPages && os::is_primordial_thread())) {
1805 assert(_stack_guard_state != stack_guard_unused, "guard pages must be in use"); 1806 assert(_stack_guard_state != stack_guard_unused, "guard pages must be in use");
1806 } 1807 }
1807 #endif 1808 #endif
1808 return _stack_guard_state == stack_guard_enabled; 1809 return _stack_guard_state == stack_guard_enabled;
1809 } 1810 }

mercurial