commit | 2c78ea3621c5f5011d5b20945a2df39682fabf3a | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Fri Sep 28 01:41:29 2018 +0000 |
committer | Lang Hames <lhames@gmail.com> | Fri Sep 28 01:41:29 2018 +0000 |
tree | 73bb0eb33b2fca6e098a2107c2329c26146d56b9 | |
parent | bcbf6bc49321e57c83438fa9819cf31819f05319 [diff] |
[ORC] Lock ThreadSafeContext during module destruction in ThreadSafeModule's move constructor. This is basically the same fix as r343261, but applied to the move constructor: Failure to lock the context during module destruction can lead to data races if other threads are operating on the context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343286 91177308-0d34-0410-b5e6-96231b3b80d8