mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8020701: Avoid crashes in WatcherThread
Reviewed-by: acorn, dcubed, dsimms
This commit is contained in:
parent
71ca890b66
commit
2d77390705
14 changed files with 169 additions and 1 deletions
|
@ -1226,7 +1226,7 @@ WatcherThread* WatcherThread::_watcher_thread = NULL;
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue