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

Side by Side Diff: third_party/tcmalloc/chromium/src/base/atomicops-internals-arm-generic.h

Issue 9666033: Experiment for updating the tcmalloc chromium branch to r144 (gperftools 2.0). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2003, Google Inc. 1 // Copyright (c) 2003, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 // 32 //
33 // This file is an internal atomic implementation, use base/atomicops.h instead. 33 // This file is an internal atomic implementation, use base/atomicops.h instead.
34 // 34 //
35 // LinuxKernelCmpxchg and Barrier_AtomicIncrement are from Google Gears. 35 // LinuxKernelCmpxchg and Barrier_AtomicIncrement are from Google Gears.
36 36
37 #ifndef BASE_ATOMICOPS_INTERNALS_ARM_GENERIC_H_ 37 #ifndef BASE_ATOMICOPS_INTERNALS_ARM_GENERIC_H_
38 #define BASE_ATOMICOPS_INTERNALS_ARM_GENERIC_H_ 38 #define BASE_ATOMICOPS_INTERNALS_ARM_GENERIC_H_
39 39
40 #include <stdio.h> 40 #include <stdio.h>
41 #include <stdlib.h> 41 #include <stdlib.h>
42 #include "base/macros.h" // For COMPILE_ASSERT 42 #include "base/basictypes.h"
43 #include "base/port.h" // ATTRIBUTE_WEAK
44 43
45 typedef int32_t Atomic32; 44 typedef int32_t Atomic32;
46 45
47 namespace base { 46 namespace base {
48 namespace subtle { 47 namespace subtle {
49 48
50 typedef int64_t Atomic64; 49 typedef int64_t Atomic64;
51 50
52 // 0xffff0fc0 is the hard coded address of a function provided by 51 // 0xffff0fc0 is the hard coded address of a function provided by
53 // the kernel which implements an atomic compare-exchange. On older 52 // the kernel which implements an atomic compare-exchange. On older
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 Atomic64 old_value, 226 Atomic64 old_value,
228 Atomic64 new_value) { 227 Atomic64 new_value) {
229 NotImplementedFatalError("Atomic64 Release_CompareAndSwap"); 228 NotImplementedFatalError("Atomic64 Release_CompareAndSwap");
230 return 0; 229 return 0;
231 } 230 }
232 231
233 } // namespace base::subtle 232 } // namespace base::subtle
234 } // namespace base 233 } // namespace base
235 234
236 #endif // BASE_ATOMICOPS_INTERNALS_ARM_GENERIC_H_ 235 #endif // BASE_ATOMICOPS_INTERNALS_ARM_GENERIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698