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:
authorJan Vorlicek <janvorli@microsoft.com>2015-10-17 11:18:37 +0300
committerJan Vorlicek <janvorli@microsoft.com>2015-10-24 18:38:19 +0300
commitb8ee1855645d427fd9a1ad17f9270340a42f96a0 (patch)
tree5d66f0d662b5c7f8441e356f2e157796cf5656e7 /src/Native/Runtime/gcrhscan.cpp
parent86b0cc9a82ae0655eb334ca4aacf9a384a05b89b (diff)
Enable compilation of the runtime on Linux
This change enables compilation of the runtime excluding the PAL layer on Linux. Most of the changes are just to make it build with clang that's more strict w.r.t. the C++11 standard. In addition to that, I have removed our implementation of the new / delete operators and replaced all calls to new in the runtime by new (nothrow).
Diffstat (limited to 'src/Native/Runtime/gcrhscan.cpp')
-rw-r--r--src/Native/Runtime/gcrhscan.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Native/Runtime/gcrhscan.cpp b/src/Native/Runtime/gcrhscan.cpp
index 61030b490..6a45e5b63 100644
--- a/src/Native/Runtime/gcrhscan.cpp
+++ b/src/Native/Runtime/gcrhscan.cpp
@@ -85,7 +85,9 @@ static void CALLBACK CheckPromoted(_UNCHECKED_OBJECTREF *pObjRef, LPARAM *pExtra
VOID CNameSpace::GcWeakPtrScanBySingleThread( int condemned, int max_gen, EnumGcRefScanContext* sc )
{
PalPrintf("CNameSpace::GcWeakPtrScanBySingleThread\n");
+#ifdef VERIFY_HEAP
SyncBlockCache::GetSyncBlockCache()->GCWeakPtrScan(&CheckPromoted, (LPARAM)sc, 0);
+#endif // VERIFY_HEAP
}
VOID CNameSpace::GcShortWeakPtrScan(EnumGcRefCallbackFunc* fn, int condemned, int max_gen,
@@ -227,16 +229,20 @@ void CNameSpace::GcDemote (int condemned, int max_gen, EnumGcRefScanContext* sc)
{
PalPrintf("CNameSpace::GcDemote\n");
Ref_RejuvenateHandles (condemned, max_gen, (LPARAM)sc);
+#ifdef VERIFY_HEAP
if (!GCHeap::IsServerHeap() || sc->thread_number == 0)
SyncBlockCache::GetSyncBlockCache()->GCDone(TRUE, max_gen);
+#endif // VERIFY_HEAP
}
void CNameSpace::GcPromotionsGranted (int condemned, int max_gen, EnumGcRefScanContext* sc)
{
PalPrintf("CNameSpace::GcPromotionsGranted\n");
Ref_AgeHandles(condemned, max_gen, (LPARAM)sc);
+#ifdef VERIFY_HEAP
if (!GCHeap::IsServerHeap() || sc->thread_number == 0)
SyncBlockCache::GetSyncBlockCache()->GCDone(FALSE, max_gen);
+#endif // VERIFY_HEAP
}