[all-commits] [llvm/llvm-project] f08376: [lldb] Optimized lldb-server memory usage (#100666)

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Fri Jul 26 08:12:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f083764ba1ca35016c929683c8a5d918b5048100
      https://github.com/llvm/llvm-project/commit/f083764ba1ca35016c929683c8a5d918b5048100
  Author: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

  Log Message:
  -----------
  [lldb] Optimized lldb-server memory usage (#100666)

MAX_PATH is definitely larger than 6 bytes we are expecting for this
message, and could be rather large depending on the target OS (4K for
some Linux OSs).

Since the buffer gets allocated on the stack we better be conservative
and allocate what we actually need.



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