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

Issue 898123002: Fix race condition in Redirection global list using CAS. (Closed)

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

Description

Fix race condition in Redirection global list using CAS. Note that a simple Mutex cannot be used, since the profiler may interrupt the thread at any point, and also walks this list. Committed: https://code.google.com/p/dart/source/detail?r=43557

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
M runtime/vm/simulator_arm.cc View 1 1 chunk +12 lines, -3 lines 2 comments Download
M runtime/vm/simulator_arm64.cc View 1 1 chunk +11 lines, -1 line 0 comments Download
M runtime/vm/simulator_mips.cc View 1 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
koda
5 years, 10 months ago (2015-02-05 16:11:00 UTC) #1
koda
BTW, see the disassembly in the bug report to see what goes wrong without the ...
5 years, 10 months ago (2015-02-05 16:44:34 UTC) #2
koda
Updated CL with the other simulators as well (identical code). Siva: Since Ivan is unavailable, ...
5 years, 10 months ago (2015-02-06 00:24:38 UTC) #5
Cutch
LGTMwC https://codereview.chromium.org/898123002/diff/20001/runtime/vm/simulator_arm.cc File runtime/vm/simulator_arm.cc (right): https://codereview.chromium.org/898123002/diff/20001/runtime/vm/simulator_arm.cc#newcode819 runtime/vm/simulator_arm.cc:819: next_ = old_list; consider renaming "old_list" to "list_head".
5 years, 10 months ago (2015-02-06 00:47:10 UTC) #6
koda
Committed patchset #2 (id:20001) manually as r43557 (presubmit successful).
5 years, 10 months ago (2015-02-06 15:50:14 UTC) #7
koda
5 years, 10 months ago (2015-02-06 15:50:22 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/898123002/diff/20001/runtime/vm/simulator_arm.cc
File runtime/vm/simulator_arm.cc (right):

https://codereview.chromium.org/898123002/diff/20001/runtime/vm/simulator_arm...
runtime/vm/simulator_arm.cc:819: next_ = old_list;
On 2015/02/06 00:47:10, Cutch wrote:
> consider renaming "old_list" to "list_head".

Done.

Powered by Google App Engine
This is Rietveld 408576698