changeset 48971:c81bab0287ab

8197789: os::SuspendedThreadTask causes references to global operator delete Summary: make destructor non-virtual and protected Reviewed-by: kbarrett
author coleenp
date Wed, 14 Feb 2018 09:03:31 -0500
parents 7eb296a8ce2c
children b2bb70f5effd
files src/hotspot/share/runtime/os.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;