[all-commits] [llvm/llvm-project] 689181: [lldb] Improve memory usage by freeing CTF types (...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Jul 31 09:48:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68918125c11648379b473d8b2d297872cea9f504
      https://github.com/llvm/llvm-project/commit/68918125c11648379b473d8b2d297872cea9f504
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2023-07-31 (Mon, 31 Jul 2023)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/CTF/CTFTypes.h
    M lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp
    M lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.h

  Log Message:
  -----------
  [lldb] Improve memory usage by freeing CTF types (NFC)

Improve memory usage by reducing the lifetime of CTF types. Once a CTF
type has been converted to a (complete) LLDB type, there's no need to
keep it in memory anymore. For most types, we can free them right after
creating the corresponding LLDB types. The only exception is record
types, which are only completed lazily.

Differential revision: https://reviews.llvm.org/D156606




More information about the All-commits mailing list