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

Issue 2852047: Fix concurrent access to VMState::current_state_. (Closed)

Created:
10 years, 5 months ago by mnaganov (inactive)
Modified:
9 years, 7 months ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev
Visibility:
Public.

Description

Fix concurrent access to VMState::current_state_. The main fix is for current_state() and external_callback() accessors. I also applied memory access ordering on current_state_ modification, mainly to reflect the fact that it is being shared among VM and profiler sampler threads. BUG=361 Committed: http://code.google.com/p/v8/source/detail?r=5035

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M src/vm-state.h View 2 chunks +6 lines, -4 lines 0 comments Download
M src/vm-state.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/vm-state-inl.h View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
mnaganov (inactive)
10 years, 5 months ago (2010-07-07 13:06:00 UTC) #1
Vitaly Repeshko
LGTM but we might need to add some annotations to make ThreadSanitizer happy.
10 years, 5 months ago (2010-07-07 15:40:53 UTC) #2
mnaganov (inactive)
10 years, 5 months ago (2010-07-07 16:16:22 UTC) #3
On 2010/07/07 15:40:53, Vitaly wrote:
> LGTM but we might need to add some annotations to make ThreadSanitizer happy.

Annotations require depending on 'dynamic_annotations' package. It is included
in Chromium, but not in V8.

Powered by Google App Engine
This is Rietveld 408576698