Skip to content

Commit 4167540

Browse files
committedSep 25, 2020
8253647: Remove dead code in os::create_thread() on Linux/BSD
Reviewed-by: stuefe, dholmes
1 parent 5a57945 commit 4167540

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed
 

‎src/hotspot/os/bsd/os_bsd.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -782,13 +782,6 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
782782

783783
}
784784

785-
// Aborted due to thread limit being reached
786-
if (state == ZOMBIE) {
787-
thread->set_osthread(NULL);
788-
delete osthread;
789-
return false;
790-
}
791-
792785
// The thread is returned suspended (in state INITIALIZED),
793786
// and is started higher up in the call chain
794787
assert(state == INITIALIZED, "race condition");

‎src/hotspot/os/linux/os_linux.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -978,13 +978,6 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
978978
}
979979
}
980980

981-
// Aborted due to thread limit being reached
982-
if (state == ZOMBIE) {
983-
thread->set_osthread(NULL);
984-
delete osthread;
985-
return false;
986-
}
987-
988981
// The thread is returned suspended (in state INITIALIZED),
989982
// and is started higher up in the call chain
990983
assert(state == INITIALIZED, "race condition");

0 commit comments

Comments
 (0)
Please sign in to comment.