[runtime] Fix MonoError lifecycle in do_try_exec_main (#3145)
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Fri, 10 Jun 2016 18:59:53 +0000 (14:59 -0400)
committerZoltan Varga <vargaz@gmail.com>
Fri, 10 Jun 2016 18:59:53 +0000 (14:59 -0400)
commit78e5ac0f8f5fd8193200c025c594bb91e2012afa
tree431d563c7d69ad517acf67362d6d4b5d6fb550ac
parentaef549e364e3d7b1c8959900a99852fec39bc3a2
[runtime] Fix MonoError lifecycle in do_try_exec_main (#3145)

The do_try_exec_main function is always called in contexts where any
exception from doing the invoke is going to be stored in the exc outarg.
That means any MonoError will be handled locally by do_try_exec_main.
So we don't need a MonoError argument, we just need an inner_error.
mono/metadata/object-internals.h
mono/metadata/object.c
mono/mini/driver.c