summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-07-08 11:55:54 +0200
committerJan Vorlicek <janvorli@microsoft.com>2015-07-08 11:55:54 +0200
commit1d1d3ac90668b02287051dbaca5d3d163d6807ac (patch)
tree298a3aa2537136205696b1c4bc14d765e115a146
parent6ddbc71bfcfa87df7b203808bbd62323aa4dfdaf (diff)
downloadcoreclr-1d1d3ac90668b02287051dbaca5d3d163d6807ac.tar.gz
coreclr-1d1d3ac90668b02287051dbaca5d3d163d6807ac.tar.bz2
coreclr-1d1d3ac90668b02287051dbaca5d3d163d6807ac.zip
Add missing contracts to some destructors
This change adds missing contract annotation to several destructors that were missing it.
-rw-r--r--src/vm/compile.h5
-rw-r--r--src/vm/dllimport.cpp5
-rw-r--r--src/vm/hash.h5
-rw-r--r--src/vm/ilmarshalers.h5
4 files changed, 16 insertions, 4 deletions
diff --git a/src/vm/compile.h b/src/vm/compile.h
index b13954116c..a34bd93460 100644
--- a/src/vm/compile.h
+++ b/src/vm/compile.h
@@ -183,7 +183,10 @@ typedef SHash<ZapperLoaderModuleTableTraits> ZapperLoaderModuleTable;
class CEECompileInfo : public ICorCompileInfo
{
public:
- virtual ~CEECompileInfo() {}
+ virtual ~CEECompileInfo()
+ {
+ WRAPPER_NO_CONTRACT;
+ }
HRESULT Startup( BOOL fForceDebug,
BOOL fForceProfiling,
diff --git a/src/vm/dllimport.cpp b/src/vm/dllimport.cpp
index c7f93bca7b..a57353f65b 100644
--- a/src/vm/dllimport.cpp
+++ b/src/vm/dllimport.cpp
@@ -186,7 +186,10 @@ public:
virtual void FinishEmit(MethodDesc* pMD) = 0;
- virtual ~StubState() {}
+ virtual ~StubState()
+ {
+ LIMITED_METHOD_CONTRACT;
+ }
};
class ILStubState : public StubState
diff --git a/src/vm/hash.h b/src/vm/hash.h
index 1e30b5a39d..0f73d24b61 100644
--- a/src/vm/hash.h
+++ b/src/vm/hash.h
@@ -139,7 +139,10 @@ public:
m_ptr = ptr;
}
- virtual ~Compare() {}
+ virtual ~Compare()
+ {
+ LIMITED_METHOD_CONTRACT;
+ }
virtual UPTR CompareHelper(UPTR val1, UPTR storedval)
{
diff --git a/src/vm/ilmarshalers.h b/src/vm/ilmarshalers.h
index a1b0fb69d4..e95756f03e 100644
--- a/src/vm/ilmarshalers.h
+++ b/src/vm/ilmarshalers.h
@@ -235,7 +235,10 @@ public:
{
}
- virtual ~ILMarshaler() {}
+ virtual ~ILMarshaler()
+ {
+ LIMITED_METHOD_CONTRACT;
+ }
void SetNDirectStubLinker(NDirectStubLinker* pslNDirect)
{