Changeset 91401 in webkit for trunk/Source/JavaScriptCore/API


Ignore:
Timestamp:
Jul 20, 2011, 2:07:41 PM (14 years ago)
Author:
[email protected]
Message:

Don't throw away code when JSGarbageCollect API is called
https://bugs.webkit.org/show_bug.cgi?id=64894

Reviewed by Sam Weinig.

Just call collectAllGarbage. That will clean up all unneeded
code without causing any pathological recompilation problems.

  • API/JSBase.cpp:

(JSGarbageCollect):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSBase.cpp

    r90415 r91401  
    9898
    9999    JSGlobalData& globalData = exec->globalData();
    100     if (!globalData.heap.isBusy()) {
    101         // releaseExecutableMemory forces a full GC
    102         globalData.releaseExecutableMemory();
    103     }
     100    if (!globalData.heap.isBusy())
     101        globalData.heap.collectAllGarbage();
    104102
    105103    // FIXME: Perhaps we should trigger a second mark and sweep
Note: See TracChangeset for help on using the changeset viewer.