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

Unified Diff: third_party/tcmalloc/chromium/src/base/spinlock_win32-inl.h

Issue 9311003: Update the tcmalloc chromium branch to r144 (gperftools 2.0), and merge chromium-specific changes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebasec Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/chromium/src/base/spinlock_win32-inl.h
diff --git a/third_party/tcmalloc/chromium/src/base/spinlock_win32-inl.h b/third_party/tcmalloc/chromium/src/base/spinlock_win32-inl.h
index ee23541c3e7040f21b65ed2c9e973ab15f6993c5..9e77311c86a0c91687704284fe37107baeb2229b 100644
--- a/third_party/tcmalloc/chromium/src/base/spinlock_win32-inl.h
+++ b/third_party/tcmalloc/chromium/src/base/spinlock_win32-inl.h
@@ -42,6 +42,13 @@ void SpinLockDelay(volatile Atomic32 *w, int32 value, int loop) {
} else if (loop == 1) {
Sleep(0);
} else {
+ // TODO(dmikurube): Re-enable the commented-out code.
+ // We commented out the following line and used the old code "Sleep(1)"
+ // since base/atomicops-internals-windows.h doesn't support 64-bit
+ // operations.
+ //
+ // Commended-out code:
+ // Sleep(base::internal::SuggestedDelayNS(loop) / 1000000);
Sleep(1);
}
}
« no previous file with comments | « third_party/tcmalloc/chromium/src/base/spinlock_posix-inl.h ('k') | third_party/tcmalloc/chromium/src/base/stl_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698