Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2015-10-01 00:47:24 +0300
committerScott Mosier <smosier@microsoft.com>2015-10-01 00:47:24 +0300
commitad0323ab91a7b1469b42ca5457ddd631b94294fe (patch)
tree88fae57e1ec3aae90288463dc07e58f7aebc1de8 /src/Native/Runtime/SyncClean.cpp
parent6763d16387778f126ec510c0421783952602f8f7 (diff)
Initial population of CoreRT Runtime files.
Diffstat (limited to 'src/Native/Runtime/SyncClean.cpp')
-rw-r--r--src/Native/Runtime/SyncClean.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/Native/Runtime/SyncClean.cpp b/src/Native/Runtime/SyncClean.cpp
new file mode 100644
index 000000000..785a5f8ba
--- /dev/null
+++ b/src/Native/Runtime/SyncClean.cpp
@@ -0,0 +1,37 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+#include "commontypes.h"
+#include "daccess.h"
+#include "forward_declarations.h"
+#include "commonmacros.h"
+#include "palredhawkcommon.h"
+#include "palredhawk.h"
+#include "assert.h"
+#include "slist.h"
+#include "holder.h"
+#include "spinlock.h"
+#include "rhbinder.h"
+#ifdef FEATURE_VSD
+#include "virtualcallstub.h"
+#endif // FEATURE_VSD
+#include "cachedinterfacedispatch.h"
+
+#include "syncclean.hpp"
+
+void SyncClean::Terminate()
+{
+ CleanUp();
+}
+
+void SyncClean::CleanUp ()
+{
+#ifdef FEATURE_VSD
+ // Give others we want to reclaim during the GC sync point a chance to do it
+ VirtualCallStubManager::ReclaimAll();
+#elif defined(FEATURE_CACHED_INTERFACE_DISPATCH)
+ // Update any interface dispatch caches that were unsafe to modify outside of this GC.
+ ReclaimUnusedInterfaceDispatchCaches();
+#endif
+}