]> granicus.if.org Git - llvm/commit
[ORC] Re-enable the Error/Expected unit tests that were disabled in r300177.
authorLang Hames <lhames@gmail.com>
Fri, 14 Apr 2017 00:06:12 +0000 (00:06 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 14 Apr 2017 00:06:12 +0000 (00:06 +0000)
commitcf5b18b7008098fcbd241853a05892ca1c275801
treedd05cb24e0f585b4d7c8d5cfdd338b5bf9e2124a
parentfefad770b8bdec8afeba5d52f387bb14673e9c77
[ORC] Re-enable the Error/Expected unit tests that were disabled in r300177.

The tests were failing due to an occasional deadlock in SerializationTraits
for Error: Both serializers and deserializers were protected by a single
mutex and in the unit test (where both ends of the RPC are in the same
process) one side might obtain the mutex, then block waiting for input,
leaving the other side of the connection unable to obtain the mutex to
write the data the first side was waiting for. Splitting the mutex into
two (one for serialization, one for deserialization) appears to have fixed the
issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300286 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/RPCSerialization.h
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp