| Index: third_party/tcmalloc/vendor/src/windows/google/tcmalloc.h
|
| diff --git a/third_party/tcmalloc/vendor/src/base/spinlock_win32-inl.h b/third_party/tcmalloc/vendor/src/windows/google/tcmalloc.h
|
| similarity index 78%
|
| copy from third_party/tcmalloc/vendor/src/base/spinlock_win32-inl.h
|
| copy to third_party/tcmalloc/vendor/src/windows/google/tcmalloc.h
|
| index ee23541c3e7040f21b65ed2c9e973ab15f6993c5..c7db6319426c4bce05d4186a38412d3aca4492c2 100644
|
| --- a/third_party/tcmalloc/vendor/src/base/spinlock_win32-inl.h
|
| +++ b/third_party/tcmalloc/vendor/src/windows/google/tcmalloc.h
|
| @@ -1,4 +1,4 @@
|
| -/* Copyright (c) 2009, Google Inc.
|
| +/* Copyright (c) 2003, Google Inc.
|
| * All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| @@ -26,28 +26,9 @@
|
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| - *
|
| - * ---
|
| - * This file is a Win32-specific part of spinlock_internal.cc
|
| */
|
|
|
| -
|
| -#include <windows.h>
|
| -
|
| -namespace base {
|
| -namespace internal {
|
| -
|
| -void SpinLockDelay(volatile Atomic32 *w, int32 value, int loop) {
|
| - if (loop == 0) {
|
| - } else if (loop == 1) {
|
| - Sleep(0);
|
| - } else {
|
| - Sleep(1);
|
| - }
|
| -}
|
| -
|
| -void SpinLockWake(volatile Atomic32 *w, bool all) {
|
| -}
|
| -
|
| -} // namespace internal
|
| -} // namespace base
|
| +/* The code has moved to gperftools/. Use that include-directory for
|
| + * new code.
|
| + */
|
| +#include <gperftools/tcmalloc.h>
|
|
|