8253647: Remove dead code in os::create_thread() on Linux/BSD

Reviewed-by: stuefe, dholmes
This commit is contained in:
Zhengyu Gu 2020-09-25 23:33:42 +00:00
parent 5a57945f1a
commit 4167540074
2 changed files with 0 additions and 14 deletions

View file

@ -978,13 +978,6 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
}
}
// Aborted due to thread limit being reached
if (state == ZOMBIE) {
thread->set_osthread(NULL);
delete osthread;
return false;
}
// The thread is returned suspended (in state INITIALIZED),
// and is started higher up in the call chain
assert(state == INITIALIZED, "race condition");