summaryrefslogtreecommitdiff
path: root/src/vm
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2019-04-29 09:43:03 -0700
committerBrian Sullivan <briansul@microsoft.com>2019-04-29 09:43:03 -0700
commit663ce255b2d236d1b8075f635a9d5b0d20b45c7a (patch)
treefd0f1819d56a9e10ba049476d096c4770c882119 /src/vm
parentd360e7cb82d2b0bcec37fc9d06bb88fe7d87e2ae (diff)
downloadcoreclr-663ce255b2d236d1b8075f635a9d5b0d20b45c7a.tar.gz
coreclr-663ce255b2d236d1b8075f635a9d5b0d20b45c7a.tar.bz2
coreclr-663ce255b2d236d1b8075f635a9d5b0d20b45c7a.zip
Removed method ReleaseManagedCommandLine()
jkotas - We are intentionally not doing any cleanup that is just releasing memory. We depend on the OS to take care of releasing the memory.
Diffstat (limited to 'src/vm')
-rw-r--r--src/vm/ceeload.cpp11
-rw-r--r--src/vm/ceeload.h2
-rw-r--r--src/vm/ceemain.cpp6
3 files changed, 0 insertions, 19 deletions
diff --git a/src/vm/ceeload.cpp b/src/vm/ceeload.cpp
index c21f18670d..3e1d96d219 100644
--- a/src/vm/ceeload.cpp
+++ b/src/vm/ceeload.cpp
@@ -11737,17 +11737,6 @@ void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv)
#endif
}
-// Release any memory that we allocated for the managed command line
-void ReleaseManagedCommandLine()
-{
- LIMITED_METHOD_CONTRACT;
-
-#ifdef FEATURE_PAL
- delete[] s_pCommandLine;
- s_pCommandLine = NULL;
-#endif
-}
-
static void ProfileDataAllocateScenarioInfo(ProfileEmitter * pEmitter, LPCSTR scopeName, GUID* pMvid)
{
CONTRACTL
diff --git a/src/vm/ceeload.h b/src/vm/ceeload.h
index adfefccc5c..407d96933c 100644
--- a/src/vm/ceeload.h
+++ b/src/vm/ceeload.h
@@ -3423,7 +3423,5 @@ struct VASigCookieEx : public VASigCookie
LPCWSTR GetManagedCommandLine();
// Save the command line for the current process.
void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv);
-// Release any memory that we allocated for the managed command line
-void ReleaseManagedCommandLine();
#endif // !CEELOAD_H_
diff --git a/src/vm/ceemain.cpp b/src/vm/ceemain.cpp
index d2e23b8c52..e595e88868 100644
--- a/src/vm/ceemain.cpp
+++ b/src/vm/ceemain.cpp
@@ -1463,12 +1463,6 @@ void STDMETHODCALLTYPE EEShutDownHelper(BOOL fIsDllUnloading)
DiagnosticServer::Shutdown();
#endif // FEATURE_PERFTRACING
- // When running under FEATURE_PAL, the SetCommandLineArgs call above will
- // call SaveManagedCommandLine which will allocate memory using new WCHAR[]
- // We can release this memory now.
- //
- ReleaseManagedCommandLine();
-
#if defined(FEATURE_COMINTEROP)
// Get the current thread.
Thread * pThisThread = GetThread();