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

Issue 1839123002: Enable export lookup by two threads (mutator and background compiler) by carying a copy of exports_… (Closed)

Created:
4 years, 8 months ago by srdjan
Modified:
4 years, 8 months ago
Reviewers:
siva, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Enable export lookup by two threads (mutator and background compiler) by carying a copy of exports_ in exports2_. BUG= R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/7ed2b851a9098fe7f4b238b3fbac1550866b1092

Patch Set 1 #

Patch Set 2 : sync #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -4 lines) Patch
M runtime/vm/object.h View 1 chunk +1 line, -0 lines 1 comment Download
M runtime/vm/object.cc View 5 chunks +22 lines, -4 lines 0 comments Download
M runtime/vm/raw_object.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
srdjan
4 years, 8 months ago (2016-03-29 16:27:31 UTC) #2
hausner
LGTM. For later reference: we discussed another idea: storing a special sentinel into the exports_ ...
4 years, 8 months ago (2016-03-29 17:48:50 UTC) #3
srdjan
Committed patchset #2 (id:20001) manually as 7ed2b851a9098fe7f4b238b3fbac1550866b1092 (presubmit successful).
4 years, 8 months ago (2016-03-29 17:57:54 UTC) #5
hausner
PS https://codereview.chromium.org/1839123002/diff/20001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/1839123002/diff/20001/runtime/vm/object.h#newcode3557 runtime/vm/object.h:3557: RawArray* exports2() const { return raw_ptr()->exports_; } Siva ...
4 years, 8 months ago (2016-03-29 19:15:23 UTC) #6
siva
DBC, how does this solution scale if we decide to open the compiler task queue ...
4 years, 8 months ago (2016-03-29 19:17:08 UTC) #7
srdjan
4 years, 8 months ago (2016-03-29 19:38:21 UTC) #8
Message was sent while issue was closed.
On 2016/03/29 19:17:08, siva wrote:
> DBC, how does this solution scale if we decide to open the compiler task queue
> to the thread pool ?

This does not scale for more than two threads. I understand this is not an
immediate goal.

Powered by Google App Engine
This is Rietveld 408576698