commit | 5d6908ca72393fc76cf19768b9f1952867c8564b | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Fri Jan 06 06:22:31 2017 +0000 |
committer | Lang Hames <lhames@gmail.com> | Fri Jan 06 06:22:31 2017 +0000 |
tree | acb2e8f7ec5055fdcb42ec9eacf53ed35d004d05 | |
parent | cf9bb41b9b041ae24b4eeec4b58970deb7b451c8 [diff] |
[Orc][RPC] Fix an obvious locking-order bug in RawByteChannel::startSendMessage. The lock needs to be acquired before the data is sent, not afterwards. This think-o slipped in during the refactor in r286620, but went unnoticed as the resulting bug only manifests in multi-threaded clients (of which there are none in-tree). No unit test as the bug depends on thread scheduling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291216 91177308-0d34-0410-b5e6-96231b3b80d8