aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@apple.com>2025-03-31 13:08:02 +1100
committerLang Hames <lhames@apple.com>2025-03-31 14:08:42 +1100
commitdad86f5931453ff3d14ba5adb93855ee780298b2 (patch)
tree5f55b5c3dcd42fa40eae624b1c327b7f8e96809d /clang/lib/CodeGen/CodeGenModule.cpp
parent65734de9b93bef5b3211298b4fcc5dc79d18d31e (diff)
downloadllvm-dad86f5931453ff3d14ba5adb93855ee780298b2.zip
llvm-dad86f5931453ff3d14ba5adb93855ee780298b2.tar.gz
llvm-dad86f5931453ff3d14ba5adb93855ee780298b2.tar.bz2
[ORC] MapperJITLinkMemoryManager should deinitialize on abandon, not deallocate.
The JITLinkMemoryManager::InFlightAlloc::abandon method should only abandon memory for the current allocation, not any other allocations. In MapperJITLinkMemoryManager this corresponds to the deinitialize operation, not the deallocate operation (which releases whole slabs of memory that may be shared by many allocations). No testcase: This was spotted by inspection. The failing program was linking concurrently when one linker instance raised an error. Through the call to abandon an entire underlying slab was deallocated, resulting in segfaults in other concurrent links that were sharing that slab.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions