HomePhabricator

Call DeleteCurrentProcess before we replace the old process.

Authored by jingham on Dec 17 2018, 5:49 PM.

Description

Call DeleteCurrentProcess before we replace the old process.

We need to ensure that Finalize gets called before we start
to destroy the old Process or the weak_ptr->shared_ptr link
from Threads to Target gets broken before the threads are
destroyed.

rdar://problem/43586979

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

llvm-svn: 349435

Details

Committed
jinghamDec 17 2018, 5:49 PM
Differential Revision
D55631: Delay replacing the process till after we've finalized it
Parents
rGf45747028690: [Support] Fix GNU/kFreeBSD build
Branches
Unknown
Tags
Unknown