[ORC] Make sure RPC channel-send is called in blocking calls and responses.
authorLang Hames <lhames@gmail.com>
Fri, 6 Sep 2019 19:21:59 +0000 (19:21 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 6 Sep 2019 19:21:59 +0000 (19:21 +0000)
commitc1105111b39384b959edee9c91ae543d57a5a795
tree86f75e254baa5aef8f9ddfbaba349ff0098f1700
parent335676ee62167c021c17b90489b49c1015116556
[ORC] Make sure RPC channel-send is called in blocking calls and responses.

ORC-RPC batches calls by default, and the channel's send method must be called
to transfer any buffered calls to the remote. The call to send was missing on
responses and blocking calls in the SingleThreadedRPCEndpoint. This patch adds
the necessary calls and modifies the RPC unit test to check for them.

llvm-svn: 371245
llvm/include/llvm/ExecutionEngine/Orc/RPCUtils.h
llvm/unittests/ExecutionEngine/Orc/QueueChannel.h
llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp