Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Issue 14348026: Drain StoreBufferBlock into store buffer instead of iterating over it directly. (Closed)

Created:
7 years, 8 months ago by Vyacheslav Egorov (Google)
Modified:
7 years, 8 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Drain StoreBufferBlock into store buffer instead of iterating over it directly. This will deduplicate its entries. StoreBufferBlock might be contain the same large object dozens of times and without deduplication this will severely degrade GC performance by revisiting the same large object for every time it is recorded in the StoreBufferBlock. BUG=dart:10048 Committed: https://code.google.com/p/dart/source/detail?r=21766

Patch Set 1 #

Patch Set 2 : remove casts #

Patch Set 3 : do not reset block inside ProcessBlock #

Total comments: 6

Patch Set 4 : unify draining #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -23 lines) Patch
M runtime/vm/scavenger.cc View 1 2 3 2 chunks +9 lines, -10 lines 0 comments Download
M runtime/vm/store_buffer.h View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/store_buffer.cc View 1 2 3 2 chunks +40 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Vyacheslav Egorov (Google)
Please take a look.
7 years, 8 months ago (2013-04-19 16:47:01 UTC) #1
siva
LGTM with some comments. https://codereview.chromium.org/14348026/diff/5001/runtime/vm/scavenger.cc File runtime/vm/scavenger.cc (right): https://codereview.chromium.org/14348026/diff/5001/runtime/vm/scavenger.cc#newcode397 runtime/vm/scavenger.cc:397: isolate->store_buffer()->ProcessBlock(block); Why is it not ...
7 years, 8 months ago (2013-04-19 18:27:41 UTC) #2
Vyacheslav Egorov (Google)
Thanks for the review Siva! Can you please take another look? Unfortunately I could not ...
7 years, 8 months ago (2013-04-19 19:40:20 UTC) #3
siva
lgtm
7 years, 8 months ago (2013-04-19 20:01:08 UTC) #4
Vyacheslav Egorov (Google)
7 years, 8 months ago (2013-04-19 20:15:23 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 manually as r21766 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698