[all-commits] [llvm/llvm-project] ad25bd: Change static buffer to be BSS instead of DATA in ...

Jason Molenda via All-commits all-commits at lists.llvm.org
Fri Jan 22 16:14:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad25bdcb8e4e9459886062d3855a5971af758731
      https://github.com/llvm/llvm-project/commit/ad25bdcb8e4e9459886062d3855a5971af758731
  Author: Jason Molenda <jason at molenda.com>
  Date:   2021-01-22 (Fri, 22 Jan 2021)

  Changed paths:
    M lldb/tools/debugserver/source/RNBRemote.cpp

  Log Message:
  -----------
  Change static buffer to be BSS instead of DATA in HandlePacket_qSpeedTest

Having this 4MB buffer with a compile-time initialized string forced it
into the DATA section and it took up 4MB of space in the binary, which
accounts for like 80% of debugserver's footprint on disk.  Change it to
BSS and strcpy in the initial value at runtime instead.

<rdar://problem/73503892>




More information about the All-commits mailing list