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

Side by Side Diff: base/allocator/allocator_shim.h

Issue 10391178: 1. Enable large object pointer offset check in release build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_H_ 5 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_H_
6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_H_ 6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_H_
7 7
8 namespace base { 8 namespace base {
9 namespace allocator { 9 namespace allocator {
10 10
11 // Resets the environment variable CHROME_ALLOCATOR to specify the choice to 11 // Resets the environment variable CHROME_ALLOCATOR to specify the choice to
12 // be used by subprocesses. Priority is given to the current value of 12 // be used by subprocesses. Priority is given to the current value of
13 // CHROME_ALLOCATOR_2 (if specified), then CHROME_ALLOCATOR (if specified), and 13 // CHROME_ALLOCATOR_2 (if specified), then CHROME_ALLOCATOR (if specified), and
14 // then a default value (typically set to TCMALLOC). 14 // then a default value (typically set to TCMALLOC).
15 void SetupSubprocessAllocator(); 15 void SetupSubprocessAllocator();
16 16
17 void* TCMallocDoMallocForTest(size_t size);
jar (doing other things) 2012/05/17 01:36:41 nit: probably TcmallocDoMallocForTest()
kaiwang 2012/05/19 00:12:27 Did some code search, it appears TCMalloc appears
jar (doing other things) 2012/05/21 18:44:10 ok On 2012/05/19 00:12:27, kaiwang wrote:
18 void TCMallocDoFreeForTest(void* ptr);
19
17 } // namespace allocator. 20 } // namespace allocator.
18 } // namespace base. 21 } // namespace base.
19 22
20 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_H_ 23 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698