Skip to content
  • levin@chromium.org's avatar
    Add some dynamic annotations to JavaScriptCore/wtf · fa5e6724
    levin@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=53747
    
    Patch by Timur Iskhodzhanov <timurrrr@google.com> on 2011-03-30
    Reviewed by Alexey Proskuryakov.
    
    By using these annotations we can improve the precision of finding
    WebKit errors using dynamic analysis tools like ThreadSanitizer and Valgrind.
    These annotations don't affect the compiled binaries unless USE(DYNAMIC_ANNOTATIONS) is "1".
    
    These files don't add new functionality, so don't need extra tests.
    
    Source/JavaScriptCore:
    
    * GNUmakefile.am:
    * JavaScriptCore.gypi:
    * JavaScriptCore.vcproj/WTF/WTF.vcproj:
    * JavaScriptCore.xcodeproj/project.pbxproj:
    * wtf/CMakeLists.txt:
    * wtf/DynamicAnnotations.cpp: Added.
    (WTFAnnotateBenignRaceSized):
    (WTFAnnotateHappensBefore):
    (WTFAnnotateHappensAfter):
    * wtf/DynamicAnnotations.h: Added.
    * wtf/ThreadSafeRefCounted.h:
    (WTF::ThreadSafeRefCountedBase::derefBase):
    * wtf/text/StringStatics.cpp:
    (WTF::StringImpl::empty):
    
    Source/JavaScriptGlue:
    
    * ForwardingHeaders/wtf/DynamicAnnotations.h: Added.
    
    Source/WebCore:
    
    * ForwardingHeaders/wtf/DynamicAnnotations.h: Added.
    
    Tools:
    
    * DumpRenderTree/ForwardingHeaders/wtf/DynamicAnnotations.h: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fa5e6724