• Alexander Khaustov's avatar
    Reland "remove ThreadLocalStorage::StaticSlot" · fd6d8025
    Alexander Khaustov authored
    This is a reland of 88a96c6e.
    
    Original change's description:
    > remove ThreadLocalStorage::StaticSlot
    >
    > in favor of the pattern with
    > NoDestructor<ThreadLocalStorage::Slot> as discussed on PS1 @
    > https://chromium-review.googlesource.com/c/chromium/src/+/881017/1
    >
    > StaticSlot has been subject to a possible initialization race:
    > CHECK_NE(slot_, kInvalidSlotValue) in StaticSlot::Initialize
    > could fail if another thread initialized it to kInvalidSlotValue
    >
    > Change-Id: Iefaa1dde6f85842d20561851a9a26ad5f3a20973
    > Reviewed-on: https://chromium-review.googlesource.com/881017
    > Reviewed-by: Erik Chen <erikchen@chromium.org>
    > Reviewed-by: Miriam Gershenson <mgersh@chromium.org>
    > Reviewed-by: Robert Sesek <rsesek@chromium.org>
    > Reviewed-by: Peter Kasting <pkasting@chromium.org>
    > Reviewed-by: Gabriel Charette <gab@chromium.org>
    > Commit-Queue: Gabriel Charette <gab@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#537009}
    
    TBR=gab@chromium.org (already reviewed by others in original CL)
    
    Change-Id: I5675a9fe38d09486489155f897d602c87e008bb4
    Reviewed-on: https://chromium-review.googlesource.com/924001
    Commit-Queue: Gabriel Charette <gab@chromium.org>
    Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#537681}
    fd6d8025
thread_local_storage.cc 13.7 KB