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

Issue 11348174: Prepare FreeList for parallel and concurrent sweeping. (Closed)

Created:
8 years, 1 month ago by Hannes Payer (out of office)
Modified:
8 years ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Prepare FreeList for parallel and concurrent sweeping. BUG= Committed: https://code.google.com/p/v8/source/detail?r=13198

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 16

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 2

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -127 lines) Patch
M src/spaces.h View 1 2 3 4 5 6 7 8 9 10 11 13 5 chunks +52 lines, -12 lines 0 comments Download
M src/spaces.cc View 1 2 3 4 5 6 7 8 9 10 11 13 12 chunks +150 lines, -115 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Hannes Payer (out of office)
8 years, 1 month ago (2012-11-21 08:46:26 UTC) #1
Michael Starzinger
Hmm, I am not completely sure what this changes is aiming at. Why do we ...
8 years, 1 month ago (2012-11-22 21:26:24 UTC) #2
Michael Starzinger
After discussing it offline I see the point of this CL, sorry for the initial ...
8 years ago (2012-11-27 13:51:52 UTC) #3
Hannes Payer (out of office)
https://codereview.chromium.org/11348174/diff/2001/src/spaces.cc File src/spaces.cc (right): https://codereview.chromium.org/11348174/diff/2001/src/spaces.cc#newcode2196 src/spaces.cc:2196: static intptr_t CountFreeListItemsInList(FreeListCategorie* categorie, On 2012/11/27 13:51:53, Michael Starzinger ...
8 years ago (2012-11-29 13:17:41 UTC) #4
Michael Starzinger
I like the new FreeListCategory class much more now. Just a few nits. The complexity ...
8 years ago (2012-11-29 14:31:20 UTC) #5
Hannes Payer (out of office)
https://codereview.chromium.org/11348174/diff/9/src/spaces.cc File src/spaces.cc (right): https://codereview.chromium.org/11348174/diff/9/src/spaces.cc#newcode1940 src/spaces.cc:1940: ConcatenateListsConcurrentAdd(FreeListCategory* category) { On 2012/11/29 14:31:20, Michael Starzinger wrote: ...
8 years ago (2012-11-29 15:55:02 UTC) #6
Hannes Payer (out of office)
8 years ago (2012-11-30 09:53:22 UTC) #7
Hannes Payer (out of office)
On 2012/11/30 09:53:22, Hannes Payer wrote: I removed the concurrent FreeList code. I propose to ...
8 years ago (2012-11-30 10:21:54 UTC) #8
Michael Starzinger
LGTM (if one comment is addressed). Yes, as a first step we should use locking ...
8 years ago (2012-12-11 10:50:41 UTC) #9
Hannes Payer (out of office)
8 years ago (2012-12-11 17:10:15 UTC) #10
Done.

https://codereview.chromium.org/11348174/diff/23001/src/spaces.cc
File src/spaces.cc (right):

https://codereview.chromium.org/11348174/diff/23001/src/spaces.cc#newcode1934
src/spaces.cc:1934: ScopedLock lock_source(category->mutex());
On 2012/12/11 10:50:41, Michael Starzinger wrote:
> This operation is grabbing two mutexes in sequence. This is just inviting a
> dead-lock. Since there is no code yet that uses this functionality it is hard
to
> tell whether there will be a dead-lock or not. Can we please just remove this
> concurrent function that is not used yet and land it together with the CL that
> actually uses it? This also goes in line with our policy to not keep dead code
> in the repository.

OK, I removed it. The code is not going to deadlock since source and target page
can never change roles in the sweeper algorithm.

Powered by Google App Engine
This is Rietveld 408576698