commit | 0f3aa05f1f1e6ed911ac89869a0b00eda93c4c88 | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Mon Feb 18 14:47:21 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Feb 18 14:47:21 2019 |
tree | c95ceb90f27cd77edb12ea5cd54c050a2265285d | |
parent | b9b02e0537eac358b8facb9802e16adce590f0ea [diff] |
Revert "[heap profiler] Make use of thread_local instead of base::TLS" This reverts commit 684f41852a1ac8403b6c2447db684a3ee4002619. Reason for revert: It broke the ios-simulator-cronet builder: https://ci.chromium.org/p/chromium/builders/luci.chromium.try/ios-simulator-cronet The ios-simulator-cronet compiler says: ../../base/sampling_heap_profiler/poisson_allocation_sampler.cc:101:1: error: thread-local storage is not supported for the current target thread_local bool g_internal_reentry_guard; ^ ../../base/sampling_heap_profiler/poisson_allocation_sampler.cc:104:1: error: thread-local storage is not supported for the current target thread_local intptr_t g_accumulated_bytes_tls; ^ ../../base/sampling_heap_profiler/poisson_allocation_sampler.cc:113:1: error: thread-local storage is not supported for the current target thread_local bool g_sampling_interval_initialized_tls; ^ 3 errors generated. This blocks CLs that trigger that builder, including https://chromium-review.googlesource.com/c/chromium/src/+/1475156 https://chromium-review.googlesource.com/c/chromium/src/+/1430089 Original change's description: > [heap profiler] Make use of thread_local instead of base::TLS > > The C++ thread_local is slightly faster while making the code clear. > Besides that calls to TlsGetValue on Windows may alter the result of > GetLastError, thus changing behavior of the underlying code. > > BUG=920440 > > Change-Id: Ic89632f4a54f35d58b93cdecfffc68fc1a94dac1 > Reviewed-on: https://chromium-review.googlesource.com/c/1461681 > Reviewed-by: Vlad Tsyrklevich <vtsyrklevich@chromium.org> > Reviewed-by: Erik Chen <erikchen@chromium.org> > Commit-Queue: Alexei Filippov <alph@chromium.org> > Cr-Commit-Position: refs/heads/master@{#632819} TBR=alph@chromium.org,erikchen@chromium.org,vtsyrklevich@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 920440 Change-Id: Iad4158b406c1b28d14382a8a711a0304c094389c Reviewed-on: https://chromium-review.googlesource.com/c/1477076 Reviewed-by: Daniel Bratell <bratell@opera.com> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#633092}
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 .