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

Issue 488943002: - Stop-the-world sweep uses pre-locked free list access. (Closed)

Created:
6 years, 4 months ago by Ivan Posva
Modified:
6 years, 4 months ago
Reviewers:
koda, kasperl
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Stop-the-world sweep uses pre-locked free list access. Committed: https://code.google.com/p/dart/source/detail?r=39399

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -26 lines) Patch
M runtime/vm/gc_sweeper.cc View 1 chunk +1 line, -1 line 2 comments Download
M runtime/vm/pages.cc View 1 chunk +33 lines, -25 lines 3 comments Download

Messages

Total messages: 6 (0 generated)
Ivan Posva
6 years, 4 months ago (2014-08-20 07:04:40 UTC) #1
Ivan Posva
Committed patchset #1 manually as r39399 (presubmit successful).
6 years, 4 months ago (2014-08-20 07:11:22 UTC) #2
kasperl
LGTM.
6 years, 4 months ago (2014-08-20 08:05:18 UTC) #3
koda
lgtm if you update gc_sweeper.h https://codereview.chromium.org/488943002/diff/1/runtime/vm/gc_sweeper.cc File runtime/vm/gc_sweeper.cc (right): https://codereview.chromium.org/488943002/diff/1/runtime/vm/gc_sweeper.cc#newcode48 runtime/vm/gc_sweeper.cc:48: freelist->FreeLocked(current, obj_size); SweepPage now ...
6 years, 4 months ago (2014-08-20 13:52:22 UTC) #4
Ivan Posva
https://codereview.chromium.org/488943002/diff/1/runtime/vm/gc_sweeper.cc File runtime/vm/gc_sweeper.cc (right): https://codereview.chromium.org/488943002/diff/1/runtime/vm/gc_sweeper.cc#newcode48 runtime/vm/gc_sweeper.cc:48: freelist->FreeLocked(current, obj_size); On 2014/08/20 13:52:22, koda wrote: > SweepPage ...
6 years, 4 months ago (2014-08-20 14:10:20 UTC) #5
koda
6 years, 4 months ago (2014-08-20 16:11:19 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/488943002/diff/1/runtime/vm/pages.cc
File runtime/vm/pages.cc (right):

https://codereview.chromium.org/488943002/diff/1/runtime/vm/pages.cc#newcode608
runtime/vm/pages.cc:608: }
On 2014/08/20 14:10:20, Ivan Posva wrote:
> On 2014/08/20 13:52:22, koda wrote:
> > For a large scope like this, it might help readability to comment that locks
> are
> > released here.
> 
> In my experience commenting here is counter-productive. The whole point about
> these stack objects is that they are automatically released and that you
reduce
> clutter in your code. If you have returns/loop exits in the middle of these
> blocks then the comment is also incorrect. Unlocking will not block, so it is
> also unnecessary from a performance/timing perspective.

In any case, keeping method bodies within a reasonable size is a way to minimize
the issue. I think this one could benefit from some abstraction in a future CL.

Powered by Google App Engine
This is Rietveld 408576698