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:
authorJeff Greene <hippiehunterenator@gmail.com>2018-01-29 10:03:26 +0300
committerMorgan Brown <morganbr@users.noreply.github.com>2018-01-29 10:03:26 +0300
commitd73ee1ca1cfd7e0fb45e9b496edcdbd7fb8c21b9 (patch)
tree901d4cb5955aa7a52d4c0e1d2e16cd5ce433034f /src/Native
parentdb571d393a0b99394be255da438b983951f591dc (diff)
removed unneeded ifdef for wasm (#5303)
Diffstat (limited to 'src/Native')
-rw-r--r--src/Native/Runtime/gcrhenv.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Native/Runtime/gcrhenv.cpp b/src/Native/Runtime/gcrhenv.cpp
index 1388712cb..8a50a25cf 100644
--- a/src/Native/Runtime/gcrhenv.cpp
+++ b/src/Native/Runtime/gcrhenv.cpp
@@ -776,7 +776,6 @@ COOP_PINVOKE_HELPER(void, RhpBox, (Object * pObj, void * pData))
UInt8 * pbFields = (UInt8*)pObj + sizeof(EEType*);
-#if !defined(_WASM_)
// Copy the unboxed value type data into the new object.
// Perform any write barriers necessary for embedded reference fields.
if (pEEType->HasReferenceFields())
@@ -787,10 +786,6 @@ COOP_PINVOKE_HELPER(void, RhpBox, (Object * pObj, void * pData))
{
memcpy(pbFields, pData, cbFields);
}
-#else
- //TODO: write barriers currently crash in wasm and we dont really have GC anyway
- memcpy(pbFields, pData, cbFields);
-#endif
}
bool EETypesEquivalentEnoughForUnboxing(EEType *pObjectEEType, EEType *pUnboxToEEType)