<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - MemoryPressureHandler shouldn't know how to release WebCore memory"
   href="https://bugs.webkit.org/show_bug.cgi?id=160497#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - MemoryPressureHandler shouldn't know how to release WebCore memory"
   href="https://bugs.webkit.org/show_bug.cgi?id=160497">bug 160497</a>
              from <span class="vcard"><a class="email" href="mailto:akling&#64;apple.com" title="Andreas Kling &lt;akling&#64;apple.com&gt;"> <span class="fn">Andreas Kling</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=285219&amp;action=diff" name="attach_285219" title="WIP patch">attachment 285219</a> <a href="attachment.cgi?id=285219&amp;action=edit" title="WIP patch">[details]</a></span>
WIP patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=285219&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=285219&amp;action=review</a>

This is quite nice :)

<span class="quote">&gt; Source/WebKit/mac/WebView/WebView.mm:1127
&gt; +        notify_register_dispatch(&quot;com.apple.WebKit.fullGC&quot;, &amp;dummy, dispatch_get_main_queue(), ^(int) {
&gt; +            GCController::singleton().garbageCollectNow();
&gt; +        });
&gt; +        notify_register_dispatch(&quot;com.apple.WebKit.deleteAllCode&quot;, &amp;dummy, dispatch_get_main_queue(), ^(int) {
&gt; +            GCController::singleton().deleteAllCode();
&gt; +            GCController::singleton().garbageCollectNow();
&gt; +        });</span >

This code is duplicated in both WebKit1 and WebKit2. If a process uses both, it will hook 2 separate callbacks to each notification name, effectively making the callbacks execute twice.</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>