8218483: Crash in "assert(_daemon_threads_count->get_value() > daemon_count) failed: thread count mismatch 5 : 5"

Reviewed-by: dcubed, stuefe
This commit is contained in:
David Holmes 2019-04-03 22:03:39 +00:00
parent 18146afe7f
commit 2f20909d10
4 changed files with 16 additions and 15 deletions

View file

@ -1242,7 +1242,7 @@ class JavaThread: public Thread {
};
void exit(bool destroy_vm, ExitType exit_type = normal_exit);
void cleanup_failed_attach_current_thread();
void cleanup_failed_attach_current_thread(bool is_daemon);
// Testers
virtual bool is_Java_thread() const { return true; }
@ -2235,7 +2235,7 @@ class Threads: AllStatic {
// force_daemon is a concession to JNI, where we may need to add a
// thread to the thread list before allocating its thread object
static void add(JavaThread* p, bool force_daemon = false);
static void remove(JavaThread* p);
static void remove(JavaThread* p, bool is_daemon);
static void non_java_threads_do(ThreadClosure* tc);
static void java_threads_do(ThreadClosure* tc);
static void java_threads_and_vm_thread_do(ThreadClosure* tc);