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

Issue 2425963002: Update implementation of atomics with latest Chromium version but use compiler builtin atomics (Closed)

Created:
4 years, 2 months ago by Hannes Payer (out of office)
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Update implementation of atomics with latest Chromium version but use compiler builtin atomics Ideally, we would use the standard library. However, when we are compiling against an older version of the standard library the atomic implementation may be slow. BUG= Committed: https://crrev.com/343c4ebdd13c086e732e57f0c834556f36473d97 Cr-Commit-Position: refs/heads/master@{#40488}

Patch Set 1 #

Patch Set 2 : include fixes #

Patch Set 3 : include #

Patch Set 4 : format #

Patch Set 5 : win format #

Patch Set 6 : format #

Patch Set 7 : write memory model for release cmpxchg #

Patch Set 8 : little nits #

Total comments: 7

Patch Set 9 : comments #

Patch Set 10 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -2484 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -9 lines 0 comments Download
M src/base/atomicops.h View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -27 lines 0 comments Download
D src/base/atomicops_internals_arm64_gcc.h View 1 chunk +0 lines, -317 lines 0 comments Download
D src/base/atomicops_internals_arm_gcc.h View 1 chunk +0 lines, -304 lines 0 comments Download
M src/base/atomicops_internals_atomicword_compat.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -10 lines 0 comments Download
D src/base/atomicops_internals_mac.h View 1 chunk +0 lines, -216 lines 0 comments Download
D src/base/atomicops_internals_mips64_gcc.h View 1 chunk +0 lines, -310 lines 0 comments Download
D src/base/atomicops_internals_mips_gcc.h View 1 chunk +0 lines, -161 lines 0 comments Download
A src/base/atomicops_internals_portable.h View 1 2 3 4 5 6 7 8 1 chunk +172 lines, -0 lines 0 comments Download
D src/base/atomicops_internals_ppc_gcc.h View 1 chunk +0 lines, -168 lines 0 comments Download
D src/base/atomicops_internals_s390_gcc.h View 1 chunk +0 lines, -152 lines 0 comments Download
D src/base/atomicops_internals_tsan.h View 1 chunk +0 lines, -363 lines 0 comments Download
D src/base/atomicops_internals_x86_gcc.h View 1 chunk +0 lines, -278 lines 0 comments Download
D src/base/atomicops_internals_x86_gcc.cc View 1 chunk +0 lines, -116 lines 0 comments Download
M src/base/atomicops_internals_x86_msvc.h View 1 2 3 4 5 6 7 8 7 chunks +8 lines, -33 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -10 lines 0 comments Download
M test/cctest/test-atomicops.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 55 (42 generated)
Hannes Payer (out of office)
4 years, 2 months ago (2016-10-20 08:26:16 UTC) #34
Michael Lippautz
lgtm from my side https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h File src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h#newcode46 src/base/atomicops_internals_portable.h:46: // assertion should detect this ...
4 years, 2 months ago (2016-10-20 10:28:24 UTC) #36
Jarin
https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h File src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h#newcode26 src/base/atomicops_internals_portable.h:26: // implemented as sequentially consistent fence followed by a ...
4 years, 2 months ago (2016-10-20 11:03:39 UTC) #38
ulan
lgtm!
4 years, 2 months ago (2016-10-20 12:09:56 UTC) #39
Michael Lippautz
https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h File src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h#newcode46 src/base/atomicops_internals_portable.h:46: // assertion should detect this issue, were it to ...
4 years, 2 months ago (2016-10-20 12:30:15 UTC) #40
Jarin
lgtm
4 years, 2 months ago (2016-10-20 12:59:25 UTC) #41
Hannes Payer (out of office)
https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h File src/base/atomicops_internals_portable.h (right): https://codereview.chromium.org/2425963002/diff/150001/src/base/atomicops_internals_portable.h#newcode26 src/base/atomicops_internals_portable.h:26: // implemented as sequentially consistent fence followed by a ...
4 years, 2 months ago (2016-10-20 17:48:02 UTC) #42
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/2425963002/170001
4 years, 2 months ago (2016-10-20 17:48:20 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/16504) v8_win_compile_dbg on master.tryserver.v8 (JOB_FAILED, ...
4 years, 2 months ago (2016-10-20 17:54:31 UTC) #47
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/2425963002/190001
4 years, 2 months ago (2016-10-21 06:38:23 UTC) #50
commit-bot: I haz the power
Committed patchset #10 (id:190001)
4 years, 2 months ago (2016-10-21 07:32:49 UTC) #52
Michael Achenbach
A revert of this CL (patchset #10 id:190001) has been created in https://chromiumcodereview.appspot.com/2438983002/ by machenbach@chromium.org. ...
4 years, 2 months ago (2016-10-21 08:09:34 UTC) #53
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:09:02 UTC) #55
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/343c4ebdd13c086e732e57f0c834556f36473d97
Cr-Commit-Position: refs/heads/master@{#40488}

Powered by Google App Engine
This is Rietveld 408576698