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

Issue 816773005: Copy-on-write class table for concurrent reading. (Closed)

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

Description

Copy-on-write class table for concurrent reading. Make ClassTable::At thread safe by keeping old copies of the class table. They can be safely deallocated during the stop-the-world phase of GC. This avoids making a copy for every sweeper task, and is the first step towards removing the fake Isolate workaround. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=43048

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -14 lines) Patch
M runtime/vm/class_table.h View 1 2 3 4 chunks +10 lines, -2 lines 0 comments Download
M runtime/vm/class_table.cc View 1 2 8 chunks +32 lines, -12 lines 2 comments Download
M runtime/vm/pages.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
koda
5 years, 11 months ago (2015-01-12 19:17:47 UTC) #1
koda
Note that this uses MallocGrowableArray, which is currently under review: https://codereview.chromium.org/850473002/
5 years, 11 months ago (2015-01-12 19:19:29 UTC) #2
Ivan Posva
LGTM -ip https://codereview.chromium.org/816773005/diff/60001/runtime/vm/class_table.cc File runtime/vm/class_table.cc (right): https://codereview.chromium.org/816773005/diff/60001/runtime/vm/class_table.cc#newcode20 runtime/vm/class_table.cc:20: old_tables_(new MallocGrowableArray<RawClass**>()), Wondering why you decided on ...
5 years, 11 months ago (2015-01-20 22:46:45 UTC) #3
koda
https://codereview.chromium.org/816773005/diff/60001/runtime/vm/class_table.cc File runtime/vm/class_table.cc (right): https://codereview.chromium.org/816773005/diff/60001/runtime/vm/class_table.cc#newcode20 runtime/vm/class_table.cc:20: old_tables_(new MallocGrowableArray<RawClass**>()), On 2015/01/20 22:46:45, Ivan Posva wrote: > ...
5 years, 11 months ago (2015-01-21 14:36:09 UTC) #4
koda
5 years, 11 months ago (2015-01-21 18:13:17 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as r43048 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698