Fix exception in PreStubWorker call chain - update
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 27 Jan 2016 11:20:38 +0000 (12:20 +0100)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 27 Jan 2016 11:20:38 +0000 (12:20 +0100)
commite98058c6f333f0a919e562179d66db659b96d4de
tree8068ed98f1367040ded8e39767f22f43c010d039
parent5f5a76a3acb994a1d007d8ee00a2ae709afb790b
Fix exception in PreStubWorker call chain - update

This change fixes one case that the previous fix was missing. This is a case when
the exception in the PreStubWorker call chain is thrown by native code, for example
during jitting the target managed method. In this case, the DispatchManagedException
is called in the first pass, so we need to do the same change as in the previous
fix for the first pass as well.
Since we now have the first managed frame context available in the
DispatchManagedException for the first pass too, I have modified the
UnwindManagedExceptionPass1 to get it as a parameter so that it doesn't
need to do the unwinding to that frame again.
src/vm/exceptionhandling.cpp