1dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen// Copyright (c) 2011 The Chromium Authors. All rights reserved. 2dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen// Use of this source code is governed by a BSD-style license that can be 3dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen// found in the LICENSE file. 4dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen 5dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen#ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_H_ 6dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen#define BASE_ALLOCATOR_ALLOCATOR_SHIM_H_ 7dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen 8dc0f95d653279beabeb9817299e2902918ba123eKristian Monsennamespace base { 9dc0f95d653279beabeb9817299e2902918ba123eKristian Monsennamespace allocator { 10dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen 11dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen// Resets the environment variable CHROME_ALLOCATOR to specify the choice to 12dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen// be used by subprocesses. Priority is given to the current value of 13dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen// CHROME_ALLOCATOR_2 (if specified), then CHROME_ALLOCATOR (if specified), and 14dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen// then a default value (typically set to TCMALLOC). 15dc0f95d653279beabeb9817299e2902918ba123eKristian Monsenvoid SetupSubprocessAllocator(); 16dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen 17dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen} // namespace base. 18dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen} // namespace allocator. 19dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen 20dc0f95d653279beabeb9817299e2902918ba123eKristian Monsen#endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_H_ 21