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

Issue 2852983002: [simulator] Make reference redirection thread-safe. (Closed)

Created:
3 years, 7 months ago by neis
Modified:
3 years, 7 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[simulator] Make reference redirection thread-safe. In the simulators, the ExternalReference constructor rewrites external addresses, which involves mutating a linked list rooted in the isolate. We already construct external references concurrently (at least in Turbofan), but the list mutation was not thread-safe (though no crashes are known). This CL adds the necessary locking. BUG=v8:6048 Review-Url: https://codereview.chromium.org/2852983002 Cr-Commit-Position: refs/heads/master@{#45014} Committed: https://chromium.googlesource.com/v8/v8/+/34e7945647f6d2607a3d5446f483240b128e86c4

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M src/arm/simulator-arm.h View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/simulator-arm.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm64/simulator-arm64.h View 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/simulator-arm64.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/assembler.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/isolate.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/mips/simulator-mips.h View 1 chunk +1 line, -1 line 0 comments Download
M src/mips/simulator-mips.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/mips64/simulator-mips64.h View 1 chunk +1 line, -1 line 0 comments Download
M src/mips64/simulator-mips64.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ppc/simulator-ppc.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ppc/simulator-ppc.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/s390/simulator-s390.h View 1 chunk +1 line, -1 line 0 comments Download
M src/s390/simulator-s390.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
neis
PTAL.
3 years, 7 months ago (2017-05-01 17:30:18 UTC) #7
Jarin
lgtm, thanks!
3 years, 7 months ago (2017-05-02 09:06:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2852983002/1
3 years, 7 months ago (2017-05-02 09:08:32 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 09:11:54 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/34e7945647f6d2607a3d5446f483240b128...

Powered by Google App Engine
This is Rietveld 408576698