--- old/src/hotspot/os/linux/os_linux.cpp 2020-02-11 20:31:14.209758360 -0500 +++ new/src/hotspot/os/linux/os_linux.cpp 2020-02-11 20:31:13.012745103 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2020, 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 @@ -719,7 +719,7 @@ assert(t->osthread()->expanding_stack(), "expand should be set"); assert(t->stack_base() != NULL, "stack_base was not initialized"); - if (addr < t->stack_base() && addr >= t->stack_reserved_zone_base()) { + if (t->is_in_usable_stack(addr)) { sigset_t mask_all, old_sigset; sigfillset(&mask_all); pthread_sigmask(SIG_SETMASK, &mask_all, &old_sigset);