mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8197789: os::SuspendedThreadTask causes references to global operator delete
Make destructor non-virtual and protected Reviewed-by: kbarrett
This commit is contained in:
parent
b8689741ec
commit
d41cbf61a1
1 changed files with 1 additions and 1 deletions
|
@ -909,11 +909,11 @@ class os: AllStatic {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue