RESOLVED FIXED 142589
Refactored the JSC::Heap extra cost API for clarity and to make some known bugs more obvious
https://bugs.webkit.org/show_bug.cgi?id=142589
Summary Refactored the JSC::Heap extra cost API for clarity and to make some known bu...
Geoffrey Garen
Reported 2015-03-11 12:45:07 PDT
Refactored the JSC::Heap extra cost API for clarity and to make some known bugs more obvious
Attachments
Patch (33.46 KB, patch)
2015-03-11 13:03 PDT, Geoffrey Garen
no flags
Patch (34.08 KB, patch)
2015-03-11 14:17 PDT, Geoffrey Garen
kling: review+
Geoffrey Garen
Comment 1 2015-03-11 13:03:07 PDT
Mark Hahnenberg
Comment 2 2015-03-11 13:22:55 PDT
Comment on attachment 248443 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248443&action=review Is there a bugzilla bug filed somewhere for fixing all of these broken instances? Might be worth it to paste the link next to the FIXME. > Source/WebCore/ChangeLog:11 > + canvas, which is the causde of https://bugs.webkit.org/show_bug.cgi?id=142457. s/causde/cause
Mark Hahnenberg
Comment 3 2015-03-11 13:27:39 PDT
Comment on attachment 248443 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248443&action=review > Source/JavaScriptCore/heap/SlotVisitorInlines.h:257 > + heap()->reportExtraMemoryVisited(owner, size); Not to prematurely optimize, but I wonder if it might make sense to keep private counters in each of the SlotVisitors and then to add them all up at the end of the collection (kind of like we do with other counters)? This could reduce contention during parallel collections that have to report great numbers of DOM elements with extra cost.
Geoffrey Garen
Comment 4 2015-03-11 14:16:30 PDT
Comment on attachment 248443 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248443&action=review >> Source/JavaScriptCore/heap/SlotVisitorInlines.h:257 >> + heap()->reportExtraMemoryVisited(owner, size); > > Not to prematurely optimize, but I wonder if it might make sense to keep private counters in each of the SlotVisitors and then to add them all up at the end of the collection (kind of like we do with other counters)? This could reduce contention during parallel collections that have to report great numbers of DOM elements with extra cost. Seems like a good idea. Probably makes the code a little simpler, too. Probably best as a separate patch, since this patch hopes to only rename and document things. >> Source/WebCore/ChangeLog:11 >> + canvas, which is the causde of https://bugs.webkit.org/show_bug.cgi?id=142457. > > s/causde/cause Fixed.
Geoffrey Garen
Comment 5 2015-03-11 14:16:47 PDT
> Is there a bugzilla bug filed somewhere for fixing all of these broken > instances? Might be worth it to paste the link next to the FIXME. Bokay.
Geoffrey Garen
Comment 6 2015-03-11 14:17:21 PDT
Andreas Kling
Comment 7 2015-03-11 14:28:35 PDT
Comment on attachment 248446 [details] Patch r=me
Geoffrey Garen
Comment 8 2015-03-11 14:30:24 PDT
Note You need to log in before you can comment on or make changes to this bug.