Bug 67304

Summary: Web Inspector: [Chromium] Perform a more effective JS GC
Product: WebKit Reporter: Mikhail Naganov <mnaganov>
Component: Web Inspector (Deprecated)Assignee: Mikhail Naganov <mnaganov>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, apavlov, bweinstein, japhet, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 71821    
Attachments:
Description Flags
Patch
mnaganov: commit-queue-
Comments addressed
pfeldman: review+, mnaganov: commit-queue-
LowMemoryNotification instead of IdleNotification pfeldman: review-, pfeldman: commit-queue-

Mikhail Naganov
Reported 2011-08-31 11:15:50 PDT
We shouldn't require user to push the "GC" button several times.
Attachments
Patch (1.82 KB, patch)
2011-08-31 11:17 PDT, Mikhail Naganov
mnaganov: commit-queue-
Comments addressed (1.81 KB, patch)
2011-09-01 04:39 PDT, Mikhail Naganov
pfeldman: review+
mnaganov: commit-queue-
LowMemoryNotification instead of IdleNotification (870 bytes, patch)
2011-11-08 08:00 PST, Ulan Degenbaev
pfeldman: review-
pfeldman: commit-queue-
Mikhail Naganov
Comment 1 2011-08-31 11:17:57 PDT
Pavel Feldman
Comment 2 2011-08-31 22:42:06 PDT
Comment on attachment 105799 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=105799&action=review > Source/WebCore/bindings/v8/ScriptProfiler.cpp:65 > + while (!v8::V8::IdleNotification()) { should be { }. I'd like somebody from v8 team to bless this change before I rubber stamp it.
Mikhail Naganov
Comment 3 2011-09-01 04:39:27 PDT
Created attachment 105941 [details] Comments addressed Fixed braces. I've found this code in Chromium's ChromeRenderProcessObserver::OnPurgeMemory. I've discussed it with Slava from the V8 team, and we have agreed that this approach is more effective because it actually does several rounds of GC, clears compilation caches and other stuff that will be left intact after a single MC GC round.
Mikhail Naganov
Comment 4 2011-09-01 11:39:52 PDT
Manually committed http://trac.webkit.org/changeset/94322 2011-08-31 Mikhail Naganov <mnaganov@chromium.org> Web Inspector: [Chromium] Perform a more effective JS GC https://bugs.webkit.org/show_bug.cgi?id=67304 Reviewed by Pavel Feldman. * bindings/v8/ScriptProfiler.cpp: (WebCore::ScriptProfiler::collectGarbage):
Ulan Degenbaev
Comment 5 2011-11-08 08:00:08 PST
Created attachment 114070 [details] LowMemoryNotification instead of IdleNotification The new GC fixes the LowMemoryNofication, so now there is no need to repeatedly call the IdleNotification.
Pavel Feldman
Comment 6 2011-11-08 08:01:44 PST
Comment on attachment 114070 [details] LowMemoryNotification instead of IdleNotification Please file a separate bug for each patch. Use webkit.org/new-inspector-bug as a template.
Mikhail Naganov
Comment 7 2011-11-08 08:26:53 PST
I'd also wait for several days before committing this change to make sure that the new V8 version sticks in Chromium, as it has been already rolled out several times due to performance regressions on bots.
Note You need to log in before you can comment on or make changes to this bug.