sim: Add missing virtual destructor to GlobalSyncEvent
This missing destructor in GlobalSyncEvent was causing a compilation error in gcc-12, thus causing the compiler-tests to fail: https://jenkins.gem5.org/job/compiler-checks/436/ In addition a destructor was added to BaseGlobalEventTemplate. This does not directly fix the aforementioned bug provides some additional security. Change-Id: Iab86d3f6d55064ba3b6a8a7cb01fb14533cce4b9 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/66152 Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
committed by
Bobby Bruce
parent
92027a68ce
commit
770b84c2ee
@@ -162,6 +162,8 @@ class BaseGlobalEventTemplate : public BaseGlobalEvent
|
||||
for (int i = 0; i < numMainEventQueues; ++i)
|
||||
barrierEvent[i] = new typename Derived::BarrierEvent(this, p, f);
|
||||
}
|
||||
|
||||
virtual ~BaseGlobalEventTemplate(){}
|
||||
};
|
||||
|
||||
|
||||
@@ -229,6 +231,8 @@ class GlobalSyncEvent : public BaseGlobalEventTemplate<GlobalSyncEvent>
|
||||
schedule(when);
|
||||
}
|
||||
|
||||
virtual ~GlobalSyncEvent (){}
|
||||
|
||||
void process();
|
||||
|
||||
const char *description() const;
|
||||
|
||||
Reference in New Issue
Block a user