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

Issue 2517473002: Fix tsan failure (Closed)

Created:
4 years, 1 month ago by siva
Modified:
4 years ago
Reviewers:
rmacnak, Cutch
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix tsan failure We have a racy read of the object header in the stack frame walker called from the profiler (in this case the gc marker is running at the same time). It is appropriate to avoid this even though we think the access is safe as the objects are in old space and never forwarded and only the mark bits are manipulated while marking BUG= R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/159a5ab3667b95a74d2be06d880bb75d74a895df

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address code review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -118 lines) Patch
M runtime/observatory/tests/service/get_allocation_samples_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/platform/assert.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/os_thread_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/os_thread_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/os_thread_macos.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/profiler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/profiler.cc View 1 9 chunks +69 lines, -98 lines 0 comments Download
M runtime/vm/profiler_test.cc View 37 chunks +89 lines, -13 lines 0 comments Download
M runtime/vm/stack_frame.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
siva
4 years, 1 month ago (2016-11-18 17:28:40 UTC) #2
Cutch
LGTM wC https://codereview.chromium.org/2517473002/diff/1/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2517473002/diff/1/runtime/vm/profiler.cc#newcode771 runtime/vm/profiler.cc:771: AtomicOperations::IncrementInt64By(&counters->stack_walker_dart_exit, 1); these two branches could be ...
4 years, 1 month ago (2016-11-18 17:59:08 UTC) #3
siva
https://codereview.chromium.org/2517473002/diff/1/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2517473002/diff/1/runtime/vm/profiler.cc#newcode771 runtime/vm/profiler.cc:771: AtomicOperations::IncrementInt64By(&counters->stack_walker_dart_exit, 1); On 2016/11/18 17:59:08, Cutch wrote: > these ...
4 years, 1 month ago (2016-11-18 22:08:47 UTC) #4
siva
4 years, 1 month ago (2016-11-18 22:09:08 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
159a5ab3667b95a74d2be06d880bb75d74a895df (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698