<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:fpizlo&#64;apple.com" title="Filip Pizlo &lt;fpizlo&#64;apple.com&gt;"> <span class="fn">Filip Pizlo</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bogus uses of regexp matching should realize that they will OOM before they start swapping"
   href="https://bugs.webkit.org/show_bug.cgi?id=158142">bug 158142</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>webkit-unassigned&#64;lists.webkit.org
           </td>
           <td>fpizlo&#64;apple.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bogus uses of regexp matching should realize that they will OOM before they start swapping"
   href="https://bugs.webkit.org/show_bug.cgi?id=158142#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bogus uses of regexp matching should realize that they will OOM before they start swapping"
   href="https://bugs.webkit.org/show_bug.cgi?id=158142">bug 158142</a>
              from <span class="vcard"><a class="email" href="mailto:fpizlo&#64;apple.com" title="Filip Pizlo &lt;fpizlo&#64;apple.com&gt;"> <span class="fn">Filip Pizlo</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=279936&amp;action=diff" name="attach_279936" title="it does something">attachment 279936</a> <a href="attachment.cgi?id=279936&amp;action=edit" title="it does something">[details]</a></span>
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 &gt;10x and reduces memory usage by ~8x and eliminates swapping. Hooray.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>