[all-commits] [llvm/llvm-project] f2f3b1: [lldb] Do not deallocate memory after exec

Alex via All-commits all-commits at lists.llvm.org
Wed Jan 11 12:34:32 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2f3b1a87ad294433986683864f75575c3a81779
      https://github.com/llvm/llvm-project/commit/f2f3b1a87ad294433986683864f75575c3a81779
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

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

  Log Message:
  -----------
  [lldb] Do not deallocate memory after exec

After an exec has occured, resources used to manage the state of a
Process are cleaned up. One such resource is the AllocatedMemoryCache
which keeps track of memory allocations made in the process for things
like expression evaluation. After an exec is performed, the allocated
memory regions in the process are gone, so it does not make sense to try
to deallocate those regions.

rdar://103188106

Differential Revision: https://reviews.llvm.org/D140249




More information about the All-commits mailing list