DescriptionAlways make a copy of a string when adding it to StringsStorage
Otherwise the string passed as const char* may be disposed and we will end up with a dangling pointer.
Also changed StringsStorage::GetCopy so that a copy is not created if the string is already in the cache.
BUG=None
R=alph@chromium.org, svenpanne@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=17260
Patch Set 1 #
Total comments: 2
Patch Set 2 : Added empty line #
Messages
Total messages: 6 (0 generated)
|