[Webkit-unassigned] [Bug 172738] New: Implementors of memoryCost() need to be thread-safe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 30 16:01:13 PDT 2017


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

            Bug ID: 172738
           Summary: Implementors of memoryCost() need to be thread-safe
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

JSC calls visitChildren(JSCell* cell, SlotVisitor& visitor) on its GC threads, yet I don't expect that any implementers of visitChildren() or memoryCost() are thread-safe. For example, AudioBuffer::memoryCost() loops over channels with no lock, HTMLCollection::memoryCost() does a bunch of math on map sizes, HTMLCanvasElement::memoryCost() consults the image buffer, which races with image buffer assignment etc.

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


More information about the webkit-unassigned mailing list