8241043: Expand assertions to identify thread with errant _stack_base

Reviewed-by: mikael
This commit is contained in:
David Holmes 2020-03-16 02:16:49 -04:00
parent 4b978533ca
commit 95898e86a1
2 changed files with 2 additions and 1 deletions

View file

@ -349,6 +349,7 @@ void Thread::record_stack_base_and_size() {
// If possible, refrain from doing anything which may crash or assert since
// quite probably those crash dumps will be useless.
set_stack_base(os::current_stack_base());
assert(_stack_base != NULL, "current_stack_base failed for %s", name());
set_stack_size(os::current_stack_size());
#ifdef SOLARIS