commit | d9e3d22a24be439e91c8af394f3f58c64ae048c7 | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Thu Jan 11 19:20:40 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 11 19:20:40 2018 |
tree | 95048a8fd61d7147573e5aa2c34851e1018229dc | |
parent | 9b2c266d5882c89c65a1095d9e5d68e435ede1f3 [diff] |
Include tcmalloc's config before tcmalloc.h Certain things in tcmalloc.h depend on tcmalloc's config.h file, for instance whether struct mallinfo exist or not. Depending on how the functions are used, it may or may not work correctly without including config.h, but to be safe, always include it. This was an issue in jumbo builds if base/process/memory_linux.cc and base/allocator/allocator_shim_default_dispatch_to_tcmalloc.cc were compiled in the same translation unit. The wrong includes from memory_linux.cc caused the other file to fail to compile. Bug: 775547 Change-Id: Iab9b8172281c55b8cbfbc8c21a79f95d2bae5847 Reviewed-on: https://chromium-review.googlesource.com/860646 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#528704}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .