X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/4e4e5a6f2694187498445a6ac6f1634ce8141119..1df5f87f1309a8daa30dabdee855f48ae40d14ab:/wtf/text/StringStatics.cpp diff --git a/wtf/text/StringStatics.cpp b/wtf/text/StringStatics.cpp index 5ee2613..1881464 100644 --- a/wtf/text/StringStatics.cpp +++ b/wtf/text/StringStatics.cpp @@ -30,10 +30,11 @@ #endif #include "AtomicString.h" +#include "DynamicAnnotations.h" #include "StaticConstructors.h" #include "StringImpl.h" -namespace WebCore { +namespace WTF { StringImpl* StringImpl::empty() { @@ -46,6 +47,7 @@ StringImpl* StringImpl::empty() // PCRE goes away. static UChar emptyUCharData = 0; DEFINE_STATIC_LOCAL(StringImpl, emptyString, (&emptyUCharData, 0, ConstructStaticString)); + WTF_ANNOTATE_BENIGN_RACE(&emptyString, "Benign race on StringImpl::emptyString reference counter"); return &emptyString; }