[x86/Linux] Add virtual dtor for ArrayStubCache class (dotnet/coreclr#8339)
authorJonghyun Park <parjong@gmail.com>
Wed, 30 Nov 2016 03:08:19 +0000 (12:08 +0900)
committerJan Kotas <jkotas@microsoft.com>
Wed, 30 Nov 2016 03:08:19 +0000 (19:08 -0800)
* Adds virtual dtor for ArrayStubCache class

* Remove unnecessary default destructor

Commit migrated from https://github.com/dotnet/coreclr/commit/89440daa5cfe3ad814b9caac6bd47c5d7ffc6d9b

src/coreclr/src/inc/utilcode.h
src/coreclr/src/vm/stubcache.h

index b00515c..6c5498f 100644 (file)
@@ -3400,7 +3400,7 @@ public:
         m_iSize = iBuckets + 7;
     }
 
-    ~CClosedHashBase()
+    virtual ~CClosedHashBase()
     {
         WRAPPER_NO_CONTRACT;
         Clear();
index 781d46c..b42ed16 100644 (file)
@@ -50,7 +50,7 @@ public:
     //---------------------------------------------------------
     // Destructor
     //---------------------------------------------------------
-    ~StubCacheBase();
+    virtual ~StubCacheBase();
 
     //---------------------------------------------------------
     // Returns the equivalent hashed Stub, creating a new hash