equal
deleted
inserted
replaced
1224 |
1224 |
1225 WatcherThread* WatcherThread::_watcher_thread = NULL; |
1225 WatcherThread* WatcherThread::_watcher_thread = NULL; |
1226 bool WatcherThread::_startable = false; |
1226 bool WatcherThread::_startable = false; |
1227 volatile bool WatcherThread::_should_terminate = false; |
1227 volatile bool WatcherThread::_should_terminate = false; |
1228 |
1228 |
1229 WatcherThread::WatcherThread() : Thread() { |
1229 WatcherThread::WatcherThread() : Thread(), _crash_protection(NULL) { |
1230 assert(watcher_thread() == NULL, "we can only allocate one WatcherThread"); |
1230 assert(watcher_thread() == NULL, "we can only allocate one WatcherThread"); |
1231 if (os::create_thread(this, os::watcher_thread)) { |
1231 if (os::create_thread(this, os::watcher_thread)) { |
1232 _watcher_thread = this; |
1232 _watcher_thread = this; |
1233 |
1233 |
1234 // Set the watcher thread to the highest OS priority which should not be |
1234 // Set the watcher thread to the highest OS priority which should not be |