[all-commits] [llvm/llvm-project] c4e135: [ORC] Fix transfer to unknown ResourceTrackers (#1...
Jonas Hahnfeld via All-commits
all-commits at lists.llvm.org
Wed Oct 30 05:56:49 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c4e135ec04a2bef5d5a5a69dfbb069a15dbf2f5e
https://github.com/llvm/llvm-project/commit/c4e135ec04a2bef5d5a5a69dfbb069a15dbf2f5e
Author: Jonas Hahnfeld <jonas.hahnfeld at cern.ch>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
M llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
M llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp
Log Message:
-----------
[ORC] Fix transfer to unknown ResourceTrackers (#114063)
When transferring resources, the destination tracker key may not be in
the internal map, invalidating iterators and value references. The added
test creates such situation and would fail before with "Finalized
allocation was not deallocated."
For good measure, fix the same pattern in RTDyldObjectLinkingLayer
which is harder to test because it "only" results in memory managers
being deleted in the wrong order.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list