[all-commits] [llvm/llvm-project] a31af3: Reapply [Orc] Properly deallocate mapped memory in...

Anubhab Ghosh via All-commits all-commits at lists.llvm.org
Sat Aug 13 00:40:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a31af32183856ad6c3f24f5b0e89e1366180a780
      https://github.com/llvm/llvm-project/commit/a31af32183856ad6c3f24f5b0e89e1366180a780
  Author: Anubhab Ghosh <anubhabghosh.me at gmail.com>
  Date:   2022-08-13 (Sat, 13 Aug 2022)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/Orc/MemoryMapper.h
    M llvm/lib/ExecutionEngine/Orc/MapperJITLinkMemoryManager.cpp
    M llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
    M llvm/unittests/ExecutionEngine/Orc/MapperJITLinkMemoryManagerTest.cpp

  Log Message:
  -----------
  Reapply [Orc] Properly deallocate mapped memory in MapperJITLinkMemoryManager

When memory is deallocated from MapperJITLinkMemoryManager deinitialize
actions are run through mapper and in case of InProcessMapper, memory
protections of the region are reset to read/write as they were previously
changed and can be reused in future.

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




More information about the All-commits mailing list