[Orc] Improve deintialize and shutdown logic
authorAnubhab Ghosh <anubhabghosh.me@gmail.com>
Sat, 20 Aug 2022 20:19:34 +0000 (01:49 +0530)
committerAnubhab Ghosh <anubhabghosh.me@gmail.com>
Sun, 21 Aug 2022 11:06:37 +0000 (16:36 +0530)
commite309f5ebc0d7b9e5b057030643d9042acd5edaec
tree6fb2d982ac41b81f49fbfba6d1555e933af14db7
parent0ecfee0b9eafd75627f37e2c460818bf41b39996
[Orc] Improve deintialize and shutdown logic

When deinitializing, the allocation needs to be removed from the
allocation list of its associated reservation so that remaining
allocations can be deinitialized when releasing the reservation.

Differential Revision: https://reviews.llvm.org/D132313
llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp