Skip to content
  • ggaren@apple.com's avatar
    2011-01-22 Geoffrey Garen <ggaren@apple.com> · 7fc55f20
    ggaren@apple.com authored
            Reviewed by Dan Bernstein.
    
            ASSERT running run-webkit-tests --threaded.
            https://bugs.webkit.org/show_bug.cgi?id=52971
            
            SunSpider and v8 report no change.
    
            * runtime/ConservativeSet.cpp:
            (JSC::ConservativeSet::grow):
            (JSC::ConservativeSet::add):
            * runtime/ConservativeSet.h: Tweaked the inline capacity to 128, and
            the growth policy to 2X, to make SunSpider and v8 happy.
            (JSC::ConservativeSet::ConservativeSet):
            (JSC::ConservativeSet::~ConservativeSet):
            (JSC::ConservativeSet::mark): Use OSAllocator directly, instead of malloc.
            Malloc is forbidden during a multi-threaded mark phase because it can
            cause deadlock.
    2011-01-22  Geoffrey Garen  <ggaren@apple.com>
    
            Reviewed by Dan Bernstein.
    
            Beefed up --threaded mode to catch even more kinds of errors.
            https://bugs.webkit.org/show_bug.cgi?id=52971
    
            * DumpRenderTree/pthreads/JavaScriptThreadingPthreads.cpp: Use a shared
            context group to force JSC to mark multiple threads. (This used to be
            the default, but it changed in SnowLeopard.)
            (runJavaScriptThread): Do more locking and unlocking, and more allocation,
            to give threading mistakes more chances to show themselves.
            (startJavaScriptThreads):
            (stopJavaScriptThreads):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7fc55f20