[all-commits] [llvm/llvm-project] b95b90: [LLDB] Use shared_ptr for m_current_private_state_...

Anshul Nigham via All-commits all-commits at lists.llvm.org
Wed Mar 25 18:42:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b95b902bb7dd8875efe75a6955a8a4b4c7063d25
      https://github.com/llvm/llvm-project/commit/b95b902bb7dd8875efe75a6955a8a4b4c7063d25
  Author: Anshul Nigham <nigham at google.com>
  Date:   2026-03-25 (Wed, 25 Mar 2026)

  Changed paths:
    M lldb/include/lldb/Target/Process.h
    M lldb/source/Target/Process.cpp
    M lldb/source/Target/ProcessTrace.cpp

  Log Message:
  -----------
  [LLDB] Use shared_ptr for m_current_private_state_thread (#188542)

Avoids manual memory management.

Uses `shared_ptr` instead of `unique_ptr` because we store references to
the current thread in a backup variable.

Simplifies the private thread `is_secondary` semantics by providing a
backup storage for the current thread instead of a boolean value with a
contract to manage the backup separately.



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