Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8253647: Remove dead code in os::create_thread() on Linux/BSD
Reviewed-by: stuefe, dholmes
  • Loading branch information
zhengyu123 committed Sep 25, 2020
1 parent 5a57945 commit 4167540
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions src/hotspot/os/bsd/os_bsd.cpp
Expand Up @@ -782,13 +782,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");
Expand Down
7 changes: 0 additions & 7 deletions src/hotspot/os/linux/os_linux.cpp
Expand Up @@ -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");
Expand Down

1 comment on commit 4167540

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 4167540 Sep 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.