[all-commits] [llvm/llvm-project] 3fe311: [lldb] Add Policy infrastructure (#195762)

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Wed May 6 13:29:16 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fe311f215d0577a36b7d1084f622eb866e3292a
      https://github.com/llvm/llvm-project/commit/3fe311f215d0577a36b7d1084f622eb866e3292a
  Author: Med Ismail Bennani <ismail at bennani.ma>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    A lldb/include/lldb/Target/Policy.h
    M lldb/source/Target/CMakeLists.txt
    A lldb/source/Target/Policy.cpp
    M lldb/unittests/Target/CMakeLists.txt
    A lldb/unittests/Target/PolicyTest.cpp

  Log Message:
  -----------
  [lldb] Add Policy infrastructure (#195762)

Add a generic thread-local policy stack and a Policy struct that
describes what view of the process a thread should see (private reality
vs public illusion) and what operations it is allowed to perform.

This is the infrastructure for replacing ad-hoc host thread identity
checks (CurrentThreadIsPrivateStateThread, IsOnThread, etc.) with a
unified, composable mechanism. No behavioral changes yet -- adoption
will follow in subsequent patches.

rdar://176223894

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list