8197789: os::SuspendedThreadTask causes references to global operator delete
authorcoleenp
Wed, 14 Feb 2018 09:03:31 -0500
changeset 48970 c81bab0287ab
parent 48969 7eb296a8ce2c
child 48971 b2bb70f5effd
8197789: os::SuspendedThreadTask causes references to global operator delete Summary: make destructor non-virtual and protected Reviewed-by: kbarrett
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;