summaryrefslogtreecommitdiff
path: root/src/vm/stringliteralmap.cpp
diff options
context:
space:
mode:
authorTarek Mahmoud Sayed <tarekms@microsoft.com>2016-05-19 16:09:03 -0700
committerJan Kotas <jkotas@microsoft.com>2016-05-19 16:09:03 -0700
commit9e00c86e744d1db8737b5e52ac7111b1aab82e8c (patch)
tree3f7f7ef7fe4828f819501a41235de649929fbfc9 /src/vm/stringliteralmap.cpp
parent1205aa01a485a49c4856e1637b1f7e87d12cd30a (diff)
downloadcoreclr-9e00c86e744d1db8737b5e52ac7111b1aab82e8c.tar.gz
coreclr-9e00c86e744d1db8737b5e52ac7111b1aab82e8c.tar.bz2
coreclr-9e00c86e744d1db8737b5e52ac7111b1aab82e8c.zip
Remove the wrong optimization from the string initialization (#5107)
The string initilaization misteknly setting some flag for characters under 0x80 the fix here is just remove this part (per Jan Kotas recommendation)
Diffstat (limited to 'src/vm/stringliteralmap.cpp')
-rw-r--r--src/vm/stringliteralmap.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/vm/stringliteralmap.cpp b/src/vm/stringliteralmap.cpp
index c9d031011d..aa46c3f922 100644
--- a/src/vm/stringliteralmap.cpp
+++ b/src/vm/stringliteralmap.cpp
@@ -479,16 +479,6 @@ STRINGREF AllocateStringObject(EEStringData *pStringData)
LPWSTR strDest = strObj->GetBuffer();
memcpyNoGCRefs(strDest, pStringData->GetStringBuffer(), cCount*sizeof(WCHAR));
strDest[cCount] = 0;
-
- // IsOnlyLowChars actually incidicates if we can sort the string in a fast way.
- // Take a look RegMeta::DefineUserString to see how we set the flag.
- // The flag is persisited to assembly containing the string literals.
- // We restore the flag when we load strings from assembly (MDInternalRO::GetUserString.)
- //
- if (pStringData->GetIsOnlyLowChars())
- {
- strObj->SetHighCharState(STRING_STATE_FAST_OPS);
- }
}
GCPROTECT_END();