Changeset 192775 in webkit


Ignore:
Timestamp:
Nov 27, 2015 12:37:44 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Do not use the WebCore garbage collector timer
https://bugs.webkit.org/show_bug.cgi?id=151623

Reviewed by Martin Robinson.

Now that garbage collector timers have been implemented in
JavaScriptCore for glib, we don't need to use another Timer in WebCore.

  • bindings/js/GCController.cpp:

(WebCore::GCController::garbageCollectSoon):
(WebCore::GCController::garbageCollectNowIfNotDoneRecently):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r192772 r192775  
     12015-11-27  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Do not use the WebCore garbage collector timer
     4        https://bugs.webkit.org/show_bug.cgi?id=151623
     5
     6        Reviewed by Martin Robinson.
     7
     8        Now that garbage collector timers have been implemented in
     9        JavaScriptCore for glib, we don't need to use another Timer in WebCore.
     10
     11        * bindings/js/GCController.cpp:
     12        (WebCore::GCController::garbageCollectSoon):
     13        (WebCore::GCController::garbageCollectNowIfNotDoneRecently):
     14
    1152015-11-18  Andy Estes  <aestes@apple.com>
    216
  • trunk/Source/WebCore/bindings/js/GCController.cpp

    r188394 r192775  
    5858void GCController::garbageCollectSoon()
    5959{
    60     // We only use reportAbandonedObjectGraph on systems with CoreFoundation
    61     // since it uses a run-loop-based timer that is currently only available on
    62     // systems with CoreFoundation. If and when the notion of a run loop is pushed
    63     // down into WTF so that more platforms can take advantage of it, we will be
    64     // able to use reportAbandonedObjectGraph on more platforms.
    65 #if USE(CF)
     60    // We only use reportAbandonedObjectGraph for systems for which there's an implementation
     61    // of the garbage collector timers in JavaScriptCore. We wouldn't need this if JavaScriptCore
     62    // used a timer implementation from WTF like RunLoop::Timer.
     63#if USE(CF) || USE(GLIB)
    6664    JSLockHolder lock(JSDOMWindow::commonVM());
    6765    JSDOMWindow::commonVM().heap.reportAbandonedObjectGraph();
     
    9391void GCController::garbageCollectNowIfNotDoneRecently()
    9492{
    95 #if USE(CF)
     93#if USE(CF) || USE(GLIB)
    9694    JSLockHolder lock(JSDOMWindow::commonVM());
    9795    if (!JSDOMWindow::commonVM().heap.isBusy())
Note: See TracChangeset for help on using the changeset viewer.