Changeset 145085 in webkit


Ignore:
Timestamp:
Mar 7, 2013 9:11:57 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] QWebSettings::clearMemoryCaches should clear JS garbage
https://bugs.webkit.org/show_bug.cgi?id=111094

Patch by Arunprasad Rajkumar <arunprasadr@nds.com> on 2013-03-07
Reviewed by Jocelyn Turcotte.

  • Api/qwebsettings.cpp:

(QWebSettings::clearMemoryCaches):

Location:
trunk/Source/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/Api/qwebsettings.cpp

    r144953 r145085  
    2828#include "FileSystem.h"
    2929#include "FontCache.h"
     30#include "GCController.h"
    3031#include "IconDatabase.h"
    3132#include "Image.h"
     
    814815
    815816/*!
    816     Frees up as much memory as possible by cleaning all memory caches such
     817    Frees up as much memory as possible by calling the JavaScript garbage collector and cleaning all memory caches such
    817818    as page, object and font cache.
    818819
     
    840841    // Empty the Cross-Origin Preflight cache
    841842    WebCore::CrossOriginPreflightResultCache::shared().empty();
     843
     844    // Drop JIT compiled code from ExecutableAllocator.
     845    WebCore::gcController().discardAllCompiledCode();
     846    // Garbage Collect to release the references of CachedResource from dead objects.
     847    WebCore::gcController().garbageCollectNow();
    842848}
    843849
  • trunk/Source/WebKit/qt/ChangeLog

    r145012 r145085  
     12013-03-07  Arunprasad Rajkumar  <arunprasadr@nds.com>
     2
     3        [Qt] QWebSettings::clearMemoryCaches should clear JS garbage
     4        https://bugs.webkit.org/show_bug.cgi?id=111094
     5
     6        Reviewed by Jocelyn Turcotte.
     7
     8        * Api/qwebsettings.cpp:
     9        (QWebSettings::clearMemoryCaches):
     10
    1112013-03-06  Benjamin Poulain  <benjamin@webkit.org>
    212
Note: See TracChangeset for help on using the changeset viewer.