HomeFreeBSD

Pull in r322041 from upstream lld trunk (by Rui Ueyama):

Description

Pull in r322041 from upstream lld trunk (by Rui Ueyama):

Do not use parallelForEach to call maybeCompress().

Currently LLVM's paralellForEach has a problem with reentracy.
That caused https://bugs.llvm.org/show_bug.cgi?id=35788 (lld somtimes
hangs while linking Ruby 2.4) because maybeCompress calls writeTo
which uses paralellForEach.

This patch is to avoid using paralellForEach to call maybeCompress to
workaround the issue.

This should fix potential hangs when linking parts of ruby24.

Details

Provenance
dimAuthored on
Parents
rS327732: Pull in r321986 from upstream lld trunk (by James Henderson):
Branches
Unknown
Tags
Unknown