[Webkit-unassigned] [Bug 117922] [Qt][WK2] need API for clearMemoryCaches like WK1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 24 20:21:35 PDT 2013


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


Sam Weinig <sam at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #205351|review?                     |review-
               Flag|                            |




--- Comment #5 from Sam Weinig <sam at webkit.org>  2013-06-24 20:23:30 PST ---
(From update of attachment 205351)
View in context: https://bugs.webkit.org/attachment.cgi?id=205351&action=review

> Source/WebKit2/WebProcess/WebProcess.cpp:756
> +#if !PLATFORM(MAC)
> +    // Drop JIT compiled code from ExecutableAllocator.
> +    WebCore::gcController().discardAllCompiledCode();
> +    // Garbage Collect to release the references of CachedResource from dead objects.
> +    WebCore::gcController().garbageCollectNow();
> +
> +    WTF::releaseFastMallocFreeMemory();
> +#endif

These are not caches and thus should not be here.  It is also generally a bad idea to force a GC like this.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list