HomePhabricator

Fixed memory use-after-free problem.

Description

Fixed memory use-after-free problem.

Bug reported in https://bugs.llvm.org/show_bug.cgi?id=42269.
Freeing of the contention group (CG) stucture by master thread looks wrong,
because workers can leave the CG later on. Intead the freeing
is now done by the last thread leaving the CG.

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

Details

Committed
achurbanovJun 26 2019, 11:11 AM
Differential Revision
D63599: Fixed memory use-after-free problem.
Parents
rL364455: Revert [InstCombine] change 'tmp' variable names; NFC
Branches
Unknown
Tags
Unknown