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

Issue 206373005: Add Arm64 atomicops to base. (Closed)

Created:
6 years, 9 months ago by rmcilroy
Modified:
6 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, (unused - use chromium), Ted C, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@a64_gyp
Visibility:
Public.

Description

Add Arm64 atomicops to base. These are taken from the implementation in v8/src/atomicops_internals_a64_gcc.h BUG=354405 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258985

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : Use MemoryBarrier() where appropriate #

Total comments: 4

Patch Set 4 : Change constraints to +Q #

Patch Set 5 : Add todo comments. #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -1 line) Patch
M base/atomicops.h View 1 chunk +3 lines, -1 line 0 comments Download
A base/atomicops_internals_arm64_gcc.h View 1 2 3 4 5 1 chunk +360 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
rmcilroy
This is taken and adapted from the V8 atomicops. PTAL.
6 years, 9 months ago (2014-03-20 16:40:00 UTC) #1
Mark Mentovai
LGTM for base OWNERS review, but I haven’t closely scrutinized the actual ARM assembler code ...
6 years, 9 months ago (2014-03-20 16:52:21 UTC) #2
Nico
This is the first time I'm looking at arm64 code. Most of it makes sense ...
6 years, 9 months ago (2014-03-20 17:35:01 UTC) #3
Rodolph Perfetta
> Rodolph: After looking through docs a bit, it sounds like "ish" roughly means > ...
6 years, 9 months ago (2014-03-20 18:27:34 UTC) #4
rmcilroy
https://codereview.chromium.org/206373005/diff/1/base/atomicops_internals_arm64_gcc.h File base/atomicops_internals_arm64_gcc.h (right): https://codereview.chromium.org/206373005/diff/1/base/atomicops_internals_arm64_gcc.h#newcode109 base/atomicops_internals_arm64_gcc.h:109: : "memory" On 2014/03/20 17:35:01, Nico (on GMT time ...
6 years, 9 months ago (2014-03-20 18:38:42 UTC) #5
Nico
lgtm
6 years, 9 months ago (2014-03-20 18:42:09 UTC) #6
JF
https://codereview.chromium.org/206373005/diff/40001/base/atomicops_internals_arm64_gcc.h File base/atomicops_internals_arm64_gcc.h (right): https://codereview.chromium.org/206373005/diff/40001/base/atomicops_internals_arm64_gcc.h#newcode42 base/atomicops_internals_arm64_gcc.h:42: : [ptr]"r" (ptr), Shouldn't ptr always be "m"?
6 years, 9 months ago (2014-03-20 21:55:50 UTC) #7
Rodolph Perfetta (ARM)
On 2014/03/20 16:40:00, rmcilroy wrote: > This is taken and adapted from the V8 atomicops. ...
6 years, 9 months ago (2014-03-21 15:04:45 UTC) #8
rmcilroy
https://codereview.chromium.org/206373005/diff/40001/base/atomicops_internals_arm64_gcc.h File base/atomicops_internals_arm64_gcc.h (right): https://codereview.chromium.org/206373005/diff/40001/base/atomicops_internals_arm64_gcc.h#newcode42 base/atomicops_internals_arm64_gcc.h:42: : [ptr]"r" (ptr), On 2014/03/20 21:55:50, JF wrote: > ...
6 years, 9 months ago (2014-03-21 15:27:19 UTC) #9
JF
I'm also wondering why the acquire/release versions of the exclusive load/store instructions aren't used? I'm ...
6 years, 9 months ago (2014-03-21 16:08:51 UTC) #10
Rodolph Perfetta (ARM)
On 2014/03/21 16:08:51, JF wrote: > I'm also wondering why the acquire/release versions of the ...
6 years, 9 months ago (2014-03-21 17:27:53 UTC) #11
JF
Below, and update on inline asm memory references. Roland is further asking why the GCC ...
6 years, 9 months ago (2014-03-21 17:57:37 UTC) #12
rmcilroy
I'd like to land this to at least get Arm64 building - could we have ...
6 years, 9 months ago (2014-03-24 15:19:24 UTC) #13
JF
On 2014/03/24 15:19:24, rmcilroy wrote: > I'd like to land this to at least get ...
6 years, 9 months ago (2014-03-24 15:54:04 UTC) #14
rmcilroy
The CQ bit was checked by rmcilroy@chromium.org
6 years, 9 months ago (2014-03-24 16:28:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/206373005/100001
6 years, 9 months ago (2014-03-24 16:28:06 UTC) #16
commit-bot: I haz the power
Change committed as 258985
6 years, 9 months ago (2014-03-24 18:52:40 UTC) #17
Alexandre Rames
On 2014/03/24 18:52:40, I haz the power (commit-bot) wrote: > Change committed as 258985 I ...
6 years, 9 months ago (2014-03-25 17:06:43 UTC) #18
rmcilroy
On 2014/03/25 17:06:43, Alexandre Rames wrote: > On 2014/03/24 18:52:40, I haz the power (commit-bot) ...
6 years, 9 months ago (2014-03-25 17:11:50 UTC) #19
Alexandre Rames
6 years, 9 months ago (2014-03-25 17:35:29 UTC) #20
Message was sent while issue was closed.
On 2014/03/25 17:11:50, rmcilroy wrote:
> On 2014/03/25 17:06:43, Alexandre Rames wrote:
> > On 2014/03/24 18:52:40, I haz the power (commit-bot) wrote:
> > > Change committed as 258985
> > 
> > 
> > I have reworked these for v8. The patch should be uploaded for review soon.
> > There are fixes for the CompareAndSwap which should perform a barrier even
> when
> > the swap does not occur.
> > There are also improvements like improved constraints (including the "+Q",
but
> > also using "I"), removed non-required clrex, etc.
> > 
> > Alexandre
> 
> Thanks Alexandre.  Did you look into the use of acquire / release exclusive
load
> / stores as discussed up by JF?

I haven't done this one yet, but plan to do so in this patch.

Powered by Google App Engine
This is Rietveld 408576698