# HG changeset patch # User coleenp # Date 1518617011 18000 # Node ID c81bab0287ab864470a0207205ce3c8ba71c75a4 # Parent 7eb296a8ce2c22cf08b7ace1903ceed6d2cb9e4a 8197789: os::SuspendedThreadTask causes references to global operator delete Summary: make destructor non-virtual and protected Reviewed-by: kbarrett diff -r 7eb296a8ce2c -r c81bab0287ab src/hotspot/share/runtime/os.hpp --- a/src/hotspot/share/runtime/os.hpp Wed Feb 14 13:29:45 2018 +0100 +++ b/src/hotspot/share/runtime/os.hpp Wed Feb 14 09:03:31 2018 -0500 @@ -909,11 +909,11 @@ class SuspendedThreadTask { public: SuspendedThreadTask(Thread* thread) : _thread(thread), _done(false) {} - virtual ~SuspendedThreadTask() {} void run(); bool is_done() { return _done; } virtual void do_task(const SuspendedThreadTaskContext& context) = 0; protected: + ~SuspendedThreadTask() {} private: void internal_do_task(); Thread* _thread;