Title: [145085] trunk/Source/WebKit/qt
- Revision
- 145085
- Author
- commit-qu...@webkit.org
- Date
- 2013-03-07 09:11:57 -0800 (Thu, 07 Mar 2013)
Log Message
[Qt] QWebSettings::clearMemoryCaches should clear JS garbage
https://bugs.webkit.org/show_bug.cgi?id=111094
Patch by Arunprasad Rajkumar <arunpras...@nds.com> on 2013-03-07
Reviewed by Jocelyn Turcotte.
* Api/qwebsettings.cpp:
(QWebSettings::clearMemoryCaches):
Modified Paths
Diff
Modified: trunk/Source/WebKit/qt/Api/qwebsettings.cpp (145084 => 145085)
--- trunk/Source/WebKit/qt/Api/qwebsettings.cpp 2013-03-07 16:58:23 UTC (rev 145084)
+++ trunk/Source/WebKit/qt/Api/qwebsettings.cpp 2013-03-07 17:11:57 UTC (rev 145085)
@@ -27,6 +27,7 @@
#include "DatabaseManager.h"
#include "FileSystem.h"
#include "FontCache.h"
+#include "GCController.h"
#include "IconDatabase.h"
#include "Image.h"
#if ENABLE(ICONDATABASE)
@@ -813,7 +814,7 @@
}
/*!
- Frees up as much memory as possible by cleaning all memory caches such
+ Frees up as much memory as possible by calling the _javascript_ garbage collector and cleaning all memory caches such
as page, object and font cache.
\since 4.6
@@ -839,6 +840,11 @@
// Empty the Cross-Origin Preflight cache
WebCore::CrossOriginPreflightResultCache::shared().empty();
+
+ // Drop JIT compiled code from ExecutableAllocator.
+ WebCore::gcController().discardAllCompiledCode();
+ // Garbage Collect to release the references of CachedResource from dead objects.
+ WebCore::gcController().garbageCollectNow();
}
/*!
Modified: trunk/Source/WebKit/qt/ChangeLog (145084 => 145085)
--- trunk/Source/WebKit/qt/ChangeLog 2013-03-07 16:58:23 UTC (rev 145084)
+++ trunk/Source/WebKit/qt/ChangeLog 2013-03-07 17:11:57 UTC (rev 145085)
@@ -1,3 +1,13 @@
+2013-03-07 Arunprasad Rajkumar <arunpras...@nds.com>
+
+ [Qt] QWebSettings::clearMemoryCaches should clear JS garbage
+ https://bugs.webkit.org/show_bug.cgi?id=111094
+
+ Reviewed by Jocelyn Turcotte.
+
+ * Api/qwebsettings.cpp:
+ (QWebSettings::clearMemoryCaches):
+
2013-03-06 Benjamin Poulain <benja...@webkit.org>
WebKitTestRunner needs layoutTestController.elementDoesAutoCompleteForElementWithId
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes