SWDEV-444670 - Enable teardown class
Force implicit runtime teardown with a global destructor. Change-Id: Iabe63dedf5b94fefc98668585c45a61607120669
This commit is contained in:
@@ -91,6 +91,16 @@ public:
|
||||
|
||||
inline bool Runtime::initialized() { return initialized_; }
|
||||
|
||||
class RuntimeTearDown : public HeapObject {
|
||||
static std::vector<ReferenceCountedObject*> external_;
|
||||
|
||||
public:
|
||||
RuntimeTearDown() {}
|
||||
~RuntimeTearDown();
|
||||
|
||||
static void RegisterObject(ReferenceCountedObject* obj);
|
||||
};
|
||||
|
||||
} // namespace amd
|
||||
|
||||
#endif /*RUNTIME_HPP_*/
|
||||
|
||||
Reference in New Issue
Block a user