Update .DEPS.git
[chromium-blink-merge.git] / base / allocator / allocator_shim.h
blobe10fa8d85582ab8e05552c3594d1fb1c590fbfff
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_H_
6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_H_
8 namespace base {
9 namespace allocator {
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
13 // CHROME_ALLOCATOR_2 (if specified), then CHROME_ALLOCATOR (if specified), and
14 // then a default value (typically set to TCMALLOC).
15 void SetupSubprocessAllocator();
17 // Expose some of tcmalloc functions for test.
18 void* TCMallocDoMallocForTest(size_t size);
19 void TCMallocDoFreeForTest(void* ptr);
20 size_t ExcludeSpaceForMarkForTest(size_t size);
22 } // namespace allocator.
23 } // namespace base.
25 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_H_