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

Issue 177493002: Introduce SynchronizedScope to allow heap access from compiler thread. (Closed)

Created:
6 years, 10 months ago by Yang
Modified:
5 years ago
CC:
v8-dev
Visibility:
Public.

Description

Introduce SynchronizedScope to allow heap access from compiler thread. R=mstarzinger@chromium.org

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -39 lines) Patch
M src/compiler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/execution.h View 2 chunks +4 lines, -1 line 0 comments Download
M src/execution.cc View 2 chunks +23 lines, -1 line 0 comments Download
M src/log.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/log.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/optimizing-compiler-thread.h View 8 chunks +39 lines, -8 lines 0 comments Download
M src/optimizing-compiler-thread.cc View 1 10 chunks +90 lines, -29 lines 0 comments Download
M tools/profviz/composer.js View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Yang
6 years, 10 months ago (2014-02-24 10:28:27 UTC) #1
Yang
On 2014/02/24 10:28:27, Yang wrote: ping.
6 years, 9 months ago (2014-03-20 12:36:31 UTC) #2
Hannes Payer (out of office)
drive-by comment... https://codereview.chromium.org/177493002/diff/1/src/optimizing-compiler-thread.cc File src/optimizing-compiler-thread.cc (right): https://codereview.chromium.org/177493002/diff/1/src/optimizing-compiler-thread.cc#newcode200 src/optimizing-compiler-thread.cc:200: NoBarrier_Store(&loop_switch_, static_cast<AtomicWord>(loop_switch)); loop_switch_ is accessed with NoBarrier ...
6 years, 9 months ago (2014-03-21 12:44:31 UTC) #3
Yang
uploaded new patchset https://codereview.chromium.org/177493002/diff/1/src/optimizing-compiler-thread.cc File src/optimizing-compiler-thread.cc (right): https://codereview.chromium.org/177493002/diff/1/src/optimizing-compiler-thread.cc#newcode200 src/optimizing-compiler-thread.cc:200: NoBarrier_Store(&loop_switch_, static_cast<AtomicWord>(loop_switch)); On 2014/03/21 12:44:31, Hannes ...
6 years, 9 months ago (2014-03-21 13:01:06 UTC) #4
Michael Starzinger
The implementation is looking OK and I couldn't spot any bugs in the lockstep synchronization. ...
6 years, 9 months ago (2014-03-24 09:21:31 UTC) #5
Yang
6 years, 9 months ago (2014-03-24 09:28:28 UTC) #6
On 2014/03/24 09:21:31, Michael Starzinger wrote:
> The implementation is looking OK and I couldn't spot any bugs in the lockstep
> synchronization. However we are talking about a synchronization mechanism that
> involves four semaphores, one mutex and one atomic variable. This is
impossible
> to audit. That poses two concrete concerns about this CL:
> 
> - In the current form there are neither use-cases nor test-cases for this CL.
> How did you test it? Is there a concrete use-case you had in mind for this
> mechanism?
> 
> - How will all of this work once we move to a system that is based on a job
> queue (the thing that Jochen is working on)?

Those are indeed real concerns. I tested this by adding the SynchronizedScope in
a part of the optimizing phase. However, I wasn't able to construct a test case
that would reflect that without intrusively change production code.

I'm not sure how the job queue system is going to handle flushing and stopping,
so I can't tell how well it would fit.

I'm perfectly happy with postponing this until we have to use it at some point.

Powered by Google App Engine
This is Rietveld 408576698