--- old/src/hotspot/share/runtime/thread.hpp Tue Nov 21 14:38:39 2017 +++ new/src/hotspot/share/runtime/thread.hpp Tue Nov 21 14:38:38 2017 @@ -1176,7 +1176,7 @@ // JavaThread termination and lifecycle support: void smr_delete(); - bool on_thread_list() { return _on_thread_list; } + bool on_thread_list() const { return _on_thread_list; } void set_on_thread_list() { _on_thread_list = true; } // thread has called JavaThread::exit() or is terminated @@ -1187,7 +1187,7 @@ bool check_is_terminated(TerminatedTypes l_terminated) const { return l_terminated != _not_terminated && l_terminated != _thread_exiting; } - bool is_terminated(); + bool is_terminated() const; void set_terminated(TerminatedTypes t); // special for Threads::remove() which is static: void set_terminated_value();