[Webkit-unassigned] [Bug 158142] Bogus uses of regexp matching should realize that they will OOM before they start swapping

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 19:22:45 PDT 2016


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

Filip Pizlo <fpizlo at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|webkit-unassigned at lists.web |fpizlo at apple.com
                   |kit.org                     |

--- Comment #1 from Filip Pizlo <fpizlo at apple.com> ---
Created attachment 279936
  --> https://bugs.webkit.org/attachment.cgi?id=279936&action=review
it does something

The intuition is that the individual regexp matches are not really observable, so if we detect trouble, we can just do a dry run to see how bad things get before we start allocating tons of memory.

On my test case (from jsfunfuzz), this reduces the runtime by >10x and reduces memory usage by ~8x and eliminates swapping. Hooray.

-- 
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/20160527/67c11169/attachment.html>


More information about the webkit-unassigned mailing list