[Webkit-unassigned] [Bug 147110] Possible fix for JSC api test failures in debug mode after r187020.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 20 11:57:26 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147110

--- Comment #9 from peavo at outlook.com ---
Is this a possible scenario for the assert?

A thread not created with WTF::createThread() calls WTF::currentThread(), and then exits.
Next a thread created with WTF::createThread reuses the pthread_t handle, and then asserts.

For example, I see that JavaScriptCore\API\tests\testapi.mm is creating a thread using just pthread_create:

    @autoreleasepool {
        JSContext *context = [[JSContext alloc] init];

        pthread_t threadID;
        pthread_create(&threadID, NULL, &threadMain, (__bridge void*)context);
        pthread_join(threadID, nullptr);
        JSSynchronousGarbageCollectForDebugging([context JSGlobalContextRef]);

        checkResult(@"Did not crash after entering the VM from another thread", true);
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150720/ac0ea7fe/attachment.html>


More information about the webkit-unassigned mailing list