Index: runtime/vm/atomic_linux.h |
diff --git a/runtime/vm/atomic_linux.h b/runtime/vm/atomic_linux.h |
index 622574e38255404d8b50952fc5a27a3cd19e2b59..dc57f2d7a1eeda2040ca4843ad2d510ebffe7140 100644 |
--- a/runtime/vm/atomic_linux.h |
+++ b/runtime/vm/atomic_linux.h |
@@ -21,8 +21,8 @@ inline uintptr_t AtomicOperations::FetchAndIncrement(uintptr_t* p) { |
} |
-inline intptr_t AtomicOperations::FetchAndAdd(intptr_t* p, intptr_t delta) { |
- return __sync_fetch_and_add(p, delta); |
+inline uintptr_t AtomicOperations::FetchAndDecrement(uintptr_t* p) { |
+ return __sync_fetch_and_sub(p, 1); |
} |