changeset 33794 | 41ef3dc95179 |
parent 30608 | d79880a5cf2f |
--- a/hotspot/src/share/vm/runtime/task.cpp Mon Nov 09 11:35:45 2015 +0000 +++ b/hotspot/src/share/vm/runtime/task.cpp Mon Oct 26 16:21:37 2015 +0100 @@ -117,8 +117,9 @@ if (_num_tasks == PeriodicTask::max_tasks) { fatal("Overflow in PeriodicTask table"); + } else { + _tasks[_num_tasks++] = this; } - _tasks[_num_tasks++] = this; WatcherThread* thread = WatcherThread::watcher_thread(); if (thread != NULL) {