summaryrefslogtreecommitdiff
path: root/src/vm/mlinfo.cpp
diff options
context:
space:
mode:
authorLuqun Lou <luqunl@users.noreply.github.com>2018-06-22 11:33:35 -0700
committerGitHub <noreply@github.com>2018-06-22 11:33:35 -0700
commit3fb4483277c7b12841b9ea7672bccdc6f23d3d52 (patch)
tree96a208b5927506651473da3d45880c48de973f4f /src/vm/mlinfo.cpp
parent8aad994743a1332a21a56728799c293a21115050 (diff)
downloadcoreclr-3fb4483277c7b12841b9ea7672bccdc6f23d3d52.tar.gz
coreclr-3fb4483277c7b12841b9ea7672bccdc6f23d3d52.tar.bz2
coreclr-3fb4483277c7b12841b9ea7672bccdc6f23d3d52.zip
Add public implementation MarshalerSupport (#18530)
Diffstat (limited to 'src/vm/mlinfo.cpp')
-rw-r--r--src/vm/mlinfo.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/vm/mlinfo.cpp b/src/vm/mlinfo.cpp
index e5138db97f..12be6d3b95 100644
--- a/src/vm/mlinfo.cpp
+++ b/src/vm/mlinfo.cpp
@@ -894,7 +894,6 @@ void *EventArgsMarshalingInfo::operator new(size_t size, LoaderHeap *pHeap)
RETURN mem;
}
-
void EventArgsMarshalingInfo::operator delete(void *pMem)
{
LIMITED_METHOD_CONTRACT;
@@ -912,10 +911,6 @@ EventArgsMarshalingInfo::EventArgsMarshalingInfo()
}
CONTRACTL_END;
- // Create on-demand as we don't want to create the factories in NGEN time
- m_pNCCEventArgsFactory = NULL;
- m_pPCEventArgsFactory = NULL;
-
// Load the System.Collections.Specialized.NotifyCollectionChangedEventArgs class.
SString qualifiedNCCEventArgsTypeName(SString::Utf8, NCCEVENTARGS_ASM_QUAL_TYPE_NAME);
m_hndSystemNCCEventArgsType = TypeName::GetTypeFromAsmQualifiedName(qualifiedNCCEventArgsTypeName.GetUnicode(), FALSE);
@@ -953,25 +948,7 @@ EventArgsMarshalingInfo::EventArgsMarshalingInfo()
EventArgsMarshalingInfo::~EventArgsMarshalingInfo()
{
- CONTRACTL
- {
- NOTHROW;
- GC_TRIGGERS;
- MODE_ANY;
- }
- CONTRACTL_END;
-
- if (m_pNCCEventArgsFactory)
- {
- SafeRelease(m_pNCCEventArgsFactory);
- m_pNCCEventArgsFactory = NULL;
- }
-
- if (m_pPCEventArgsFactory)
- {
- SafeRelease(m_pPCEventArgsFactory);
- m_pPCEventArgsFactory = NULL;
- }
+ LIMITED_METHOD_CONTRACT;
}
void *UriMarshalingInfo::operator new(size_t size, LoaderHeap *pHeap)