VM::discardAllCode() should clear the RegExp cache.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 02:21:44 +0000 (02:21 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Mar 2014 02:21:44 +0000 (02:21 +0000)
<https://webkit.org/b/130144>

Reviewed by Michael Saboff.

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165593 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/VM.cpp

index d95b45757e53982c97a26d5c7b333f54dc8b5e1a..8b35f6378f83c7b7e6910bd42edb2afcc3839b6a 100644 (file)
@@ -1,3 +1,13 @@
+2014-03-13  Andreas Kling  <akling@apple.com>
+
+        VM::discardAllCode() should clear the RegExp cache.
+        <https://webkit.org/b/130144>
+
+        Reviewed by Michael Saboff.
+
+        * runtime/VM.cpp:
+        (JSC::VM::discardAllCode):
+
 2014-03-13  Andreas Kling  <akling@apple.com>
 
         Revert "Short-circuit JSGlobalObjectInspectorController when not inspecting."
index 353e90c0b05b9267cded0cabf137da48571e7543..6ab46543f2601aa6269ece3a5b07e66e9ca94252 100644 (file)
@@ -524,6 +524,7 @@ void VM::discardAllCode()
 {
     waitForCompilationsToComplete();
     m_codeCache->clear();
+    m_regExpCache->invalidateCode();
     heap.deleteAllCompiledCode();
     heap.deleteAllUnlinkedFunctionCode();
     heap.reportAbandonedObjectGraph();