8183925: Decouple crash protection from watcher thread

Reviewed-by: dcubed, coleenp
This commit is contained in:
Robbin Ehn 2017-07-07 23:11:33 +02:00
parent 41e729b386
commit cc9648a8b8
16 changed files with 78 additions and 74 deletions

View file

@ -1200,7 +1200,7 @@ WatcherThread* WatcherThread::_watcher_thread = NULL;
bool WatcherThread::_startable = false;
volatile bool WatcherThread::_should_terminate = false;
WatcherThread::WatcherThread() : Thread(), _crash_protection(NULL) {
WatcherThread::WatcherThread() : Thread() {
assert(watcher_thread() == NULL, "we can only allocate one WatcherThread");
if (os::create_thread(this, os::watcher_thread)) {
_watcher_thread = this;