Title: [136895] trunk/Source/_javascript_Core
Revision
136895
Author
[email protected]
Date
2012-12-06 14:36:12 -0800 (Thu, 06 Dec 2012)

Log Message

Tell heap that we've released all the compiled code.

Reviewed by Geoff Garen.

When we discard compiled code, inform the heap that we've
released an entire object graph.  This informs the heap that
it might want to perform a GC soon.

* runtime/JSGlobalData.cpp:
(JSC::JSGlobalData::discardAllCode):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (136894 => 136895)


--- trunk/Source/_javascript_Core/ChangeLog	2012-12-06 22:33:57 UTC (rev 136894)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-12-06 22:36:12 UTC (rev 136895)
@@ -1,3 +1,16 @@
+2012-12-06  Oliver Hunt  <[email protected]>
+
+        Tell heap that we've released all the compiled code.
+
+        Reviewed by Geoff Garen.
+
+        When we discard compiled code, inform the heap that we've
+        released an entire object graph.  This informs the heap that
+        it might want to perform a GC soon.
+
+        * runtime/JSGlobalData.cpp:
+        (JSC::JSGlobalData::discardAllCode):
+
 2012-12-06  Laszlo Gombos  <[email protected]>
 
         [EFL] Remove ENABLE_GLIB_SUPPORT CMake variable

Modified: trunk/Source/_javascript_Core/runtime/JSGlobalData.cpp (136894 => 136895)


--- trunk/Source/_javascript_Core/runtime/JSGlobalData.cpp	2012-12-06 22:33:57 UTC (rev 136894)
+++ trunk/Source/_javascript_Core/runtime/JSGlobalData.cpp	2012-12-06 22:36:12 UTC (rev 136895)
@@ -435,6 +435,7 @@
 {
     m_codeCache->clear();
     heap.deleteAllCompiledCode();
+    heap.reportAbandonedObjectGraph();
 }
 
 void JSGlobalData::dumpSampleData(ExecState* exec)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to