Skip to content

Commit

Permalink
Avoid thread local access in non-error case. (#9494)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykrell committed Jul 12, 2018
1 parent 06f977a commit 493153f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mono/metadata/exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,9 @@ mono_error_raise_exception_deprecated (MonoError *target_error)
gboolean
mono_error_set_pending_exception (MonoError *error)
{
if (is_ok (error))
return FALSE;

HANDLE_FUNCTION_ENTER ();

MonoExceptionHandle ex = mono_error_convert_to_exception_handle (error);
Expand Down

0 comments on commit 493153f

Please sign in to comment.