8263840: PeriodicTask should declare its destructor virtual

Reviewed-by: xliu, kbarrett
This commit is contained in:
David Holmes 2021-07-23 11:40:19 +00:00
parent f22619032d
commit 8a789b71fe

View File

@ -62,7 +62,7 @@ class PeriodicTask: public CHeapObj<mtInternal> {
friend class WatcherThread;
public:
PeriodicTask(size_t interval_time); // interval is in milliseconds of elapsed time
~PeriodicTask();
virtual ~PeriodicTask();
// Make the task active
// For dynamic enrollment at the time T, the task will execute somewhere