| commit | dad86f5931453ff3d14ba5adb93855ee780298b2 | [log] [tgz] |
|---|---|---|
| author | Lang Hames <lhames@apple.com> | Mon Mar 31 13:08:02 2025 +1100 |
| committer | Lang Hames <lhames@apple.com> | Mon Mar 31 14:08:42 2025 +1100 |
| tree | 5f55b5c3dcd42fa40eae624b1c327b7f8e96809d | |
| parent | 65734de9b93bef5b3211298b4fcc5dc79d18d31e [diff] |
[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.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.