diff options
author | Tarek Mahmoud Sayed <tarekms@microsoft.com> | 2016-05-19 16:09:03 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-05-19 16:09:03 -0700 |
commit | 9e00c86e744d1db8737b5e52ac7111b1aab82e8c (patch) | |
tree | 3f7f7ef7fe4828f819501a41235de649929fbfc9 /src/vm/stringliteralmap.cpp | |
parent | 1205aa01a485a49c4856e1637b1f7e87d12cd30a (diff) | |
download | coreclr-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.cpp | 10 |
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(); |