Changeset 126123 in webkit


Ignore:
Timestamp:
Aug 20, 2012 7:47:21 PM (12 years ago)
Author:
haraken@chromium.org
Message:

Rename collectGarbageIfNecessary() to hintForCollectGarbage()
https://bugs.webkit.org/show_bug.cgi?id=94455

Reviewed by Adam Barth.

This is a follow-up patch for r126098.

collectGarbage() always collects garbage. collectGarbageIfNecessary() just sends
an idle notification to V8, which is just a hint for V8 to trigger GC.
To clarify the difference, this patch renames collectGarbageIfNecessary()
to hintForCollectGarbage().

No tests. No change in behavior.

  • bindings/v8/ScriptController.cpp:

(WebCore::ScriptController::clearForClose):
(WebCore::ScriptController::clearForNavigation):

  • bindings/v8/V8GCController.cpp:

(WebCore::V8GCController::hintForCollectGarbage):

  • bindings/v8/V8GCController.h:

(V8GCController):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r126122 r126123  
     12012-08-20  Kentaro Hara  <haraken@chromium.org>
     2
     3        Rename collectGarbageIfNecessary() to hintForCollectGarbage()
     4        https://bugs.webkit.org/show_bug.cgi?id=94455
     5
     6        Reviewed by Adam Barth.
     7
     8        This is a follow-up patch for r126098.
     9
     10        collectGarbage() always collects garbage. collectGarbageIfNecessary() just sends
     11        an idle notification to V8, which is just a hint for V8 to trigger GC.
     12        To clarify the difference, this patch renames collectGarbageIfNecessary()
     13        to hintForCollectGarbage().
     14
     15        No tests. No change in behavior.
     16
     17        * bindings/v8/ScriptController.cpp:
     18        (WebCore::ScriptController::clearForClose):
     19        (WebCore::ScriptController::clearForNavigation):
     20        * bindings/v8/V8GCController.cpp:
     21        (WebCore::V8GCController::hintForCollectGarbage):
     22        * bindings/v8/V8GCController.h:
     23        (V8GCController):
     24
    1252012-08-20  Alexandre Elias  <aelias@google.com>
    226
  • trunk/Source/WebCore/bindings/v8/ScriptController.cpp

    r126109 r126123  
    166166{
    167167    resetIsolatedWorlds();
    168     V8GCController::collectGarbageIfNecessary();
     168    V8GCController::hintForCollectGarbage();
    169169    windowShell()->clearForClose();
    170170}
     
    173173{
    174174    resetIsolatedWorlds();
    175     V8GCController::collectGarbageIfNecessary();
     175    V8GCController::hintForCollectGarbage();
    176176    windowShell()->clearForNavigation();
    177177}
  • trunk/Source/WebCore/bindings/v8/V8GCController.cpp

    r126098 r126123  
    521521}
    522522
    523 void V8GCController::collectGarbageIfNecessary()
     523void V8GCController::hintForCollectGarbage()
    524524{
    525525    V8PerIsolateData* data = V8PerIsolateData::current();
  • trunk/Source/WebCore/bindings/v8/V8GCController.h

    r126098 r126123  
    7777
    7878        static void checkMemoryUsage();
    79         static void collectGarbageIfNecessary();
     79        static void hintForCollectGarbage();
    8080        static void collectGarbage();
    8181
Note: See TracChangeset for help on using the changeset viewer.