[all-commits] [llvm/llvm-project] 3601ee: [libcxxabi] Make InitByteGlobalMutex check GetThre...

DanielMcIntosh via All-commits all-commits at lists.llvm.org
Wed Jan 12 14:30:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3601ee6cfd7faa7468edca45495234e0116c0a4e
      https://github.com/llvm/llvm-project/commit/3601ee6cfd7faa7468edca45495234e0116c0a4e
  Author: Daniel McIntosh <Daniel.McIntosh at ibm.com>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M libcxxabi/src/cxa_guard_impl.h
    M libcxxabi/test/guard_test_basic.pass.cpp

  Log Message:
  -----------
  [libcxxabi] Make InitByteGlobalMutex check GetThreadID instead of PlatformThreadID

By relying on PlatformSupportsThreadID, InitByteGlobalMutex disregards
the GetThreadID template argument, rendering it useless.

This is the 2nd of 5 changes to overhaul cxa_guard.
See D108343 for what the final result will be.

Depends on D109539

Reviewed By: ldionne, #libc_abi

Differential Revision: https://reviews.llvm.org/D110088




More information about the All-commits mailing list