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

Issue 16001009: [MIPS] Fix memory barriers for atomic operations. (Closed)

Created:
7 years, 6 months ago by paul.l...
Modified:
7 years, 6 months ago
Reviewers:
chris.dearman, Mark Mentovai, petarj, douglas.leung, dusmil, Dmitry Vyukov, digit1
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[MIPS] Fix memory barriers for atomic operations. Add barriers using MIPS 'sync' instructions as needed for SMP systems. BUG=246947 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204697

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix ordering of barriers per reviews. #

Total comments: 2

Patch Set 3 : Minor cleanup. #

Total comments: 2

Patch Set 4 : Remove no longer used macro. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -12 lines) Patch
M base/atomicops_internals_mips_gcc.h View 1 2 3 4 chunks +5 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
paul.l...
PTAL at this initial CL. The comments and definitions in atomicops.h for Acquire_CompareAndSwap() and Release_CompareAndSwap() ...
7 years, 6 months ago (2013-06-06 04:32:26 UTC) #1
Dmitry Vyukov
https://codereview.chromium.org/16001009/diff/1/base/atomicops_internals_mips_gcc.h File base/atomicops_internals_mips_gcc.h (right): https://codereview.chromium.org/16001009/diff/1/base/atomicops_internals_mips_gcc.h#newcode108 base/atomicops_internals_mips_gcc.h:108: MemoryBarrier(); It must be the other way around: For ...
7 years, 6 months ago (2013-06-06 08:14:44 UTC) #2
dusmil
That's right, it should be in different order.
7 years, 6 months ago (2013-06-06 13:35:15 UTC) #3
paul.l...
Fixed barrier ordering. https://codereview.chromium.org/16001009/diff/1/base/atomicops_internals_mips_gcc.h File base/atomicops_internals_mips_gcc.h (right): https://codereview.chromium.org/16001009/diff/1/base/atomicops_internals_mips_gcc.h#newcode108 base/atomicops_internals_mips_gcc.h:108: MemoryBarrier(); Done. Thanks for the review!
7 years, 6 months ago (2013-06-06 17:07:03 UTC) #4
Dmitry Vyukov
LGTM https://codereview.chromium.org/16001009/diff/6001/base/atomicops_internals_mips_gcc.h File base/atomicops_internals_mips_gcc.h (right): https://codereview.chromium.org/16001009/diff/6001/base/atomicops_internals_mips_gcc.h#newcode117 base/atomicops_internals_mips_gcc.h:117: Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); now this ...
7 years, 6 months ago (2013-06-06 17:45:10 UTC) #5
paul.l...
Thanks Dmitry for the reviews. Adding David and Mark as reviewers. Should I add any ...
7 years, 6 months ago (2013-06-06 21:02:11 UTC) #6
Mark Mentovai
LGTM
7 years, 6 months ago (2013-06-06 21:49:03 UTC) #7
Mark Mentovai
https://codereview.chromium.org/16001009/diff/11001/base/atomicops_internals_mips_gcc.h File base/atomicops_internals_mips_gcc.h (right): https://codereview.chromium.org/16001009/diff/11001/base/atomicops_internals_mips_gcc.h#newcode12 base/atomicops_internals_mips_gcc.h:12: #define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" : : : "memory") Please ...
7 years, 6 months ago (2013-06-06 21:50:19 UTC) #8
paul.l...
Done. Thanks for the review. https://codereview.chromium.org/16001009/diff/11001/base/atomicops_internals_mips_gcc.h File base/atomicops_internals_mips_gcc.h (right): https://codereview.chromium.org/16001009/diff/11001/base/atomicops_internals_mips_gcc.h#newcode12 base/atomicops_internals_mips_gcc.h:12: #define ATOMICOPS_COMPILER_BARRIER() __asm__ __volatile__("" ...
7 years, 6 months ago (2013-06-06 21:57:51 UTC) #9
Mark Mentovai
LGTM. You don’t need any more reviews.
7 years, 6 months ago (2013-06-06 22:00:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/paul.lind@imgtec.com/16001009/17001
7 years, 6 months ago (2013-06-06 22:05:57 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-06-07 02:31:17 UTC) #12
Message was sent while issue was closed.
Change committed as 204697

Powered by Google App Engine
This is Rietveld 408576698