diff src/share/vm/runtime/thread.cpp @ 11151:5e3b6f79d280

8020701: Avoid crashes in WatcherThread Reviewed-by: acorn, dcubed, dsimms
author rbackman
date Wed, 17 Jul 2013 13:48:15 +0200
parents e619a2766bcc
children 02d7aa1456c9
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp	Thu Jul 18 06:47:15 2013 -0400
+++ b/src/share/vm/runtime/thread.cpp	Wed Jul 17 13:48:15 2013 +0200
@@ -1226,7 +1226,7 @@
 bool WatcherThread::_startable = false;
 volatile bool  WatcherThread::_should_terminate = false;
 
-WatcherThread::WatcherThread() : Thread() {
+WatcherThread::WatcherThread() : Thread(), _crash_protection(NULL) {
   assert(watcher_thread() == NULL, "we can only allocate one WatcherThread");
   if (os::create_thread(this, os::watcher_thread)) {
     _watcher_thread = this;