Bug 137813

Summary: JSC::BlockAllocator::blockFreeingThreadMain() , too many thread be hang up.
Product: WebKit Reporter: YauzZ <yauzz.scu>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: fpizlo, ggaren
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: iPhone / iPad   
OS: iOS 7.0   
Attachments:
Description Flags
crashlytics log none

Description YauzZ 2014-10-17 02:15:41 PDT
Created attachment 240007 [details]
crashlytics log

hi,

my app have a crash in crashlytics.com. the reason is the -[ASIHTTPRequest runPACScript:] , but too many JSC thread be hang up before the crash. finally as the memory too low , the system abort.

i search bug in webkit.org, example :
    https://bugs.webkit.org/show_bug.cgi?id=98084
    https://bugs.webkit.org/show_bug.cgi?id=90622

it refer to the free block in gc , especially follow code is not perfect. 

void BlockAllocator::blockFreeingThreadMain()
{
    while (!m_blockFreeingThreadShouldQuit) {
        // Generally wait for one second before scavenging free blocks. This
        // may return early, particularly when we're being asked to quit.
        waitForRelativeTime(1.0);
        if (m_blockFreeingThreadShouldQuit)
            break;


so can you verify this question is the bug in jsc? and how to fix it ?