Changeset 126123 in webkit
- Timestamp:
- Aug 20, 2012 7:47:21 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r126122 r126123 1 2012-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 1 25 2012-08-20 Alexandre Elias <aelias@google.com> 2 26 -
trunk/Source/WebCore/bindings/v8/ScriptController.cpp
r126109 r126123 166 166 { 167 167 resetIsolatedWorlds(); 168 V8GCController:: collectGarbageIfNecessary();168 V8GCController::hintForCollectGarbage(); 169 169 windowShell()->clearForClose(); 170 170 } … … 173 173 { 174 174 resetIsolatedWorlds(); 175 V8GCController:: collectGarbageIfNecessary();175 V8GCController::hintForCollectGarbage(); 176 176 windowShell()->clearForNavigation(); 177 177 } -
trunk/Source/WebCore/bindings/v8/V8GCController.cpp
r126098 r126123 521 521 } 522 522 523 void V8GCController:: collectGarbageIfNecessary()523 void V8GCController::hintForCollectGarbage() 524 524 { 525 525 V8PerIsolateData* data = V8PerIsolateData::current(); -
trunk/Source/WebCore/bindings/v8/V8GCController.h
r126098 r126123 77 77 78 78 static void checkMemoryUsage(); 79 static void collectGarbageIfNecessary();79 static void hintForCollectGarbage(); 80 80 static void collectGarbage(); 81 81
Note: See TracChangeset
for help on using the changeset viewer.