hotspot/src/share/vm/runtime/thread.cpp
changeset 18943 7d0ef675e808
parent 18938 ff8f8cec9434
child 18946 65a870954fd7
equal deleted inserted replaced
18942:705506c1bf49 18943:7d0ef675e808
  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