| Index: runtime/vm/atomic_android.h
|
| diff --git a/runtime/vm/atomic_android.h b/runtime/vm/atomic_android.h
|
| index 8d01ae75a0dfbbe796f205bd21d201cc0f7e50b2..48f7f372fd0b2b4799137679cfad07f58b570106 100644
|
| --- a/runtime/vm/atomic_android.h
|
| +++ b/runtime/vm/atomic_android.h
|
| @@ -21,11 +21,23 @@ inline uintptr_t AtomicOperations::FetchAndIncrement(uintptr_t* p) {
|
| }
|
|
|
|
|
| +inline uintptr_t AtomicOperations::FetchAndIncrementBy(intptr_t* p,
|
| + intptr_t value) {
|
| + return __sync_fetch_and_add(p, value);
|
| +}
|
| +
|
| +
|
| inline uintptr_t AtomicOperations::FetchAndDecrement(uintptr_t* p) {
|
| return __sync_fetch_and_sub(p, 1);
|
| }
|
|
|
|
|
| +inline uintptr_t AtomicOperations::FetchAndDecrementBy(intptr_t* p,
|
| + intptr_t value) {
|
| + return __sync_fetch_and_sub(p, value);
|
| +}
|
| +
|
| +
|
| #if !defined(USING_SIMULATOR)
|
| inline uword AtomicOperations::CompareAndSwapWord(uword* ptr,
|
| uword old_value,
|
|
|