[runtime] Refactor AsyncResult.Invoke internal call
authorLudovic Henry <ludovic@xamarin.com>
Mon, 3 Aug 2015 16:24:31 +0000 (12:24 -0400)
committerLudovic Henry <ludovic@xamarin.com>
Mon, 3 Aug 2015 16:24:45 +0000 (12:24 -0400)
commite4ce838cd3616876f4f59aa3702a52ab1f5bf2ca
tree6aeb75170f41bf7a50cea17961b50d7aebf15b5c
parent6e4b8c89aa76fc7cf354dd7c386f656bffa6b661
[runtime] Refactor AsyncResult.Invoke internal call

Instead of catching the exception and rethrowin it right away, we do not catch it. This simplifies the code, and will give us more insight into the underlying exception.

Also merge mono_async_result_invoke into ves_icall_System_Runtime_Remoting_Messaging_AsyncResult_Invoke as it is the only place we use it.
mono/metadata/object-internals.h
mono/metadata/object.c