Fix partition_alloc build issues with libstdc++.
Two minor and pretty generic issues are exposed when building the code with libstdc++ instead of bundled libcxx. 1. Code in thread_cache.h uses std::atomic but fails to include required header file. 2. Code in partition_alloc_constants.h uses std::max_align_t which is defined in cstddef, not its C version stddef.h. In both cases libcxx basically pulls in required headers indirectly. Bug: 957519 Change-Id: Idcee3e7abfab94cb40e1b95c636b97cf9c766b75 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2440436Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Piotr Tworek <ptworek@vewd.com> Cr-Commit-Position: refs/heads/master@{#812598}
Showing
Please register or sign in to comment