--- old/src/hotspot/share/runtime/thread.hpp 2019-04-01 22:22:42.712584126 +0000 +++ new/src/hotspot/share/runtime/thread.hpp 2019-04-01 22:22:42.016567775 +0000 @@ -1243,7 +1243,7 @@ }; 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; } @@ -2236,7 +2236,7 @@ // 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);