OLD | NEW |
1 This document describes how malloc / new calls are routed in the various Chrome | 1 This document describes how malloc / new calls are routed in the various Chrome |
2 platforms. | 2 platforms. |
3 | 3 |
4 Bare in mind that the chromium codebase does not always just use `malloc()`. | 4 Bare in mind that the chromium codebase does not always just use `malloc()`. |
5 Some examples: | 5 Some examples: |
6 - Large parts of the renderer (Blink) use two home-brewed allocators, | 6 - Large parts of the renderer (Blink) use two home-brewed allocators, |
7 PartitionAlloc and BlinkGC (Oilpan). | 7 PartitionAlloc and BlinkGC (Oilpan). |
8 - Some subsystems, such as the V8 JavaScript engine, handle memory management | 8 - Some subsystems, such as the V8 JavaScript engine, handle memory management |
9 autonomously. | 9 autonomously. |
10 - Various parts of the codebase use abstractions such as `SharedMemory` or | 10 - Various parts of the codebase use abstractions such as `SharedMemory` or |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 related functions from it using the visual studio library tool. Once removed, | 182 related functions from it using the visual studio library tool. Once removed, |
183 we can now link against the library and provide custom versions of the | 183 we can now link against the library and provide custom versions of the |
184 allocator related functionality. | 184 allocator related functionality. |
185 See the script `preb_libc.py` in this folder. | 185 See the script `preb_libc.py` in this folder. |
186 | 186 |
187 Related links | 187 Related links |
188 ------------- | 188 ------------- |
189 - [Unified allocator shim doc - Feb 2016][url-allocator-shim] | 189 - [Unified allocator shim doc - Feb 2016][url-allocator-shim] |
190 - [Allocator cleanup doc - Jan 2016][url-allocator-cleanup] | 190 - [Allocator cleanup doc - Jan 2016][url-allocator-cleanup] |
191 - [Proposal to use PartitionAlloc as default allocator](https://crbug.com/339604
) | 191 - [Proposal to use PartitionAlloc as default allocator](https://crbug.com/339604
) |
192 - [Memory-Infra: Tools to profile memory usage in Chrome](components/tracing/doc
s/memory_infra.md) | 192 - [Memory-Infra: Tools to profile memory usage in Chrome](/docs/memory-infra/REA
DME.md) |
193 | 193 |
194 [url-allocator-cleanup]: https://docs.google.com/document/d/1V77Kgp_4tfaaWPEZVxN
evoD02wXiatnAv7Ssgr0hmjg/edit?usp=sharing | 194 [url-allocator-cleanup]: https://docs.google.com/document/d/1V77Kgp_4tfaaWPEZVxN
evoD02wXiatnAv7Ssgr0hmjg/edit?usp=sharing |
195 [url-memory-infra-heap-profiler]: components/tracing/docs/heap_profiler.md | 195 [url-memory-infra-heap-profiler]: /docs/memory-infra/heap_profiler.md |
196 [url-allocator-shim]: https://docs.google.com/document/d/1yKlO1AO4XjpDad9rjcBOI1
5EKdAGsuGO_IeZy0g0kxo/edit?usp=sharing | 196 [url-allocator-shim]: https://docs.google.com/document/d/1yKlO1AO4XjpDad9rjcBOI1
5EKdAGsuGO_IeZy0g0kxo/edit?usp=sharing |
OLD | NEW |