Changeset 188401 in webkit


Ignore:
Timestamp:
Aug 13, 2015 2:06:46 PM (9 years ago)
Author:
ggaren@apple.com
Message:

Periodic code deletion should delete RegExp code
https://bugs.webkit.org/show_bug.cgi?id=147990

Reviewed by Filip Pizlo.

The RegExp code cache was created for the sake of simple loops that
re-created the same RegExps. It's reasonable to delete it periodically.

  • heap/Heap.cpp:

(JSC::Heap::deleteOldCode):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r188397 r188401  
     12015-08-13  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Periodic code deletion should delete RegExp code
     4        https://bugs.webkit.org/show_bug.cgi?id=147990
     5
     6        Reviewed by Filip Pizlo.
     7
     8        The RegExp code cache was created for the sake of simple loops that
     9        re-created the same RegExps. It's reasonable to delete it periodically.
     10
     11        * heap/Heap.cpp:
     12        (JSC::Heap::deleteOldCode):
     13
    1142015-08-13  Geoffrey Garen  <ggaren@apple.com>
    215
  • trunk/Source/JavaScriptCore/heap/Heap.cpp

    r188394 r188401  
    4444#include "JSVirtualMachineInternal.h"
    4545#include "RecursiveAllocationScope.h"
     46#include "RegExpCache.h"
    4647#include "Tracing.h"
    4748#include "TypeProfilerLog.h"
     
    11441145    GCPHASE(DeleteOldCode);
    11451146    if (gcStartTime - m_lastCodeDiscardTime > minute) {
     1147        m_vm->regExpCache()->deleteAllCode();
    11461148        deleteAllCompiledCode();
    11471149        m_lastCodeDiscardTime = WTF::monotonicallyIncreasingTime();
Note: See TracChangeset for help on using the changeset viewer.