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

Side by Side Diff: third_party/tcmalloc/chromium/src/base/vdso_support.cc

Issue 9310021: [NOT TO COMMIT!] Merge Chromium-specific changes in tcmalloc thru. the original gperftools r136. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed some build inhibitor. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2008, Google Inc. 1 // Copyright (c) 2008, 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 22 matching lines...) Expand all
33 // Allow dynamic symbol lookup in the kernel VDSO page. 33 // Allow dynamic symbol lookup in the kernel VDSO page.
34 // 34 //
35 // VDSOSupport -- a class representing kernel VDSO (if present). 35 // VDSOSupport -- a class representing kernel VDSO (if present).
36 // 36 //
37 37
38 #include "base/vdso_support.h" 38 #include "base/vdso_support.h"
39 39
40 #ifdef HAVE_VDSO_SUPPORT // defined in vdso_support.h 40 #ifdef HAVE_VDSO_SUPPORT // defined in vdso_support.h
41 41
42 #include <fcntl.h> 42 #include <fcntl.h>
43 #include <stddef.h> // for ptrdiff_t 43 #include <stddef.h> // for std::ptrdiff_t
44 44
45 #include "base/atomicops.h" // for MemoryBarrier 45 #include "base/atomicops.h" // for MemoryBarrier
46 #include "base/logging.h"
46 #include "base/linux_syscall_support.h" 47 #include "base/linux_syscall_support.h"
47 #include "base/logging.h"
48 #include "base/dynamic_annotations.h" 48 #include "base/dynamic_annotations.h"
49 #include "base/basictypes.h" // for COMPILE_ASSERT 49 #include "base/basictypes.h" // for COMPILE_ASSERT
50 50
51 using base::subtle::MemoryBarrier; 51 using base::subtle::MemoryBarrier;
52 52
53 #ifndef AT_SYSINFO_EHDR 53 #ifndef AT_SYSINFO_EHDR
54 #define AT_SYSINFO_EHDR 33 54 #define AT_SYSINFO_EHDR 33
55 #endif 55 #endif
56 56
57 namespace base { 57 namespace base {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // ensure it here, with a global constructor of our own. This 180 // ensure it here, with a global constructor of our own. This
181 // is an allowed exception to the normal rule against non-trivial 181 // is an allowed exception to the normal rule against non-trivial
182 // global constructors. 182 // global constructors.
183 static class VDSOInitHelper { 183 static class VDSOInitHelper {
184 public: 184 public:
185 VDSOInitHelper() { VDSOSupport::Init(); } 185 VDSOInitHelper() { VDSOSupport::Init(); }
186 } vdso_init_helper; 186 } vdso_init_helper;
187 } 187 }
188 188
189 #endif // HAVE_VDSO_SUPPORT 189 #endif // HAVE_VDSO_SUPPORT
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/base/sysinfo.cc ('k') | third_party/tcmalloc/chromium/src/central_freelist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698