• eseidel's avatar
    2007-10-24 Eric Seidel <eric@webkit.org> · c504bad6
    eseidel authored
            Reviewed by Maciej.
            
            Stop checking isOutOfMemory after every allocation, instead let the collector
            notify all ExecStates if we ever hit this rare condition.
            
            SunSpider claims this was a 2.2% speedup.
    
            * kjs/collector.cpp:
            (KJS::Collector::collect):
            (KJS::Collector::reportOutOfMemoryToAllInterpreters):
            * kjs/collector.h:
            * kjs/nodes.cpp:
            (KJS::TryNode::execute):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c504bad6
out-of-memory-expected.txt 98 Bytes