[ELF] Serialize deleteFallThruJmpInsn to fix concurrency issue
authorFangrui Song <i@maskray.me>
Mon, 27 Dec 2021 07:26:13 +0000 (23:26 -0800)
committerFangrui Song <i@maskray.me>
Mon, 27 Dec 2021 07:26:13 +0000 (23:26 -0800)
commitb07292f77a1e82c27fd98105d69f351ef41ac29f
tree03a65f6d9db26475381c394c7bc4dce2499443db
parent315554e873a583a4b9297e72256f87ff13539993
[ELF] Serialize deleteFallThruJmpInsn to fix concurrency issue

New deleteFallThruJmpInsn calls `make<JumpInstrMod>` which cannot be called
concurrently. Losing parallelism is unfortunate but we can think of a better
approach if parallelism here justifies itself.
lld/ELF/Writer.cpp