Index: third_party/tcmalloc/chromium/src/base/spinlock_posix-inl.h |
diff --git a/third_party/tcmalloc/chromium/src/base/spinlock_posix-inl.h b/third_party/tcmalloc/chromium/src/base/spinlock_posix-inl.h |
index d188ebd4483f496fea7264d63d60a32cd3ff9c20..e1d43b7db29fb7076d7d4b2012ea309bc05c7fdc 100644 |
--- a/third_party/tcmalloc/chromium/src/base/spinlock_posix-inl.h |
+++ b/third_party/tcmalloc/chromium/src/base/spinlock_posix-inl.h |
@@ -49,7 +49,7 @@ void SpinLockDelay(volatile Atomic32 *w, int32 value, int loop) { |
} else { |
struct timespec tm; |
tm.tv_sec = 0; |
- tm.tv_nsec = 1000000; |
+ tm.tv_nsec = base::internal::SuggestedDelayNS(loop); |
nanosleep(&tm, NULL); |
} |
errno = save_errno; |