HomePhabricator

Fixed memory use-after-free problem.

Authored by AndreyChurbanov on Jun 26 2019, 11:11 AM.

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

llvm-svn: 364456

Details

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