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/slist.inl
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/slist.inl')
-rw-r--r--src/Native/Runtime/slist.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Native/Runtime/slist.inl b/src/Native/Runtime/slist.inl
index 9255af955..3f5b56632 100644
--- a/src/Native/Runtime/slist.inl
+++ b/src/Native/Runtime/slist.inl
@@ -99,11 +99,11 @@ void SList<T, Traits>::PushHeadInterlocked(
while (true)
{
- *GetNextPtr(pItem) = *reinterpret_cast<T * volatile *>(&m_pHead);
+ *Traits::GetNextPtr(pItem) = *reinterpret_cast<T * volatile *>(&m_pHead);
if (PalInterlockedCompareExchangePointer(
reinterpret_cast<void * volatile *>(&m_pHead),
reinterpret_cast<void *>(pItem),
- reinterpret_cast<void *>(*GetNextPtr(pItem))) == reinterpret_cast<void *>(*GetNextPtr(pItem)))
+ reinterpret_cast<void *>(*Traits::GetNextPtr(pItem))) == reinterpret_cast<void *>(*Traits::GetNextPtr(pItem)))
{
break;
}