[Webkit-unassigned] [Bug 212562] New: Consider a Thread Specific Cache for AssemblerBuffers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 29 21:37:06 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=212562
Bug ID: 212562
Summary: Consider a Thread Specific Cache for AssemblerBuffers
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: msaboff at apple.com
When JIT compiling, we create AssemblerBuffers to store the generated code before linking and copying to executable memory. Those buffers start out with a built in capacity of 128 bytes. Every time we need to grow, we realloc() which is usually a malloc() followed by a copy. This causes malloc churn, possible cache locality issues and other performance hits. If we keep a thread local cache, it should allow JIT worker threads to reuse a prior buffer with little or no realloc()'s.
--
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/20200530/880adc5e/attachment.htm>
More information about the webkit-unassigned
mailing list