<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@apple.com" title="Andreas Kling <akling@apple.com>"> <span class="fn">Andreas Kling</span></a>
</span></b>
<pre>Comment on <span class=""><a href="attachment.cgi?id=285219&action=diff" name="attach_285219" title="WIP patch">attachment 285219</a> <a href="attachment.cgi?id=285219&action=edit" title="WIP patch">[details]</a></span>
WIP patch
View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=285219&action=review">https://bugs.webkit.org/attachment.cgi?id=285219&action=review</a>
This is quite nice :)
<span class="quote">> Source/WebKit/mac/WebView/WebView.mm:1127
> + notify_register_dispatch("com.apple.WebKit.fullGC", &dummy, dispatch_get_main_queue(), ^(int) {
> + GCController::singleton().garbageCollectNow();
> + });
> + notify_register_dispatch("com.apple.WebKit.deleteAllCode", &dummy, dispatch_get_main_queue(), ^(int) {
> + GCController::singleton().deleteAllCode();
> + GCController::singleton().garbageCollectNow();
> + });</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>