Skip to content

Commit abca8a1

Browse files
authored
[mono][wasm] Pin thrown exceptions during EH. (#69916)
Fixes #63749.
1 parent 3ec4cc7 commit abca8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/mono/mini/mini-exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3504,7 +3504,7 @@ mini_llvmonly_throw_corlib_exception (guint32 ex_token_index)
35043504
MonoException *ex;
35053505

35063506
ex = mono_exception_from_token (m_class_get_image (mono_defaults.exception_class), ex_token);
3507-
jit_tls->thrown_exc = mono_gchandle_new_internal ((MonoObject*)ex, FALSE);
3507+
jit_tls->thrown_exc = mono_gchandle_new_internal ((MonoObject*)ex, TRUE);
35083508

35093509
mini_llvmonly_throw_exception ((MonoObject*)ex);
35103510
}

0 commit comments

Comments
 (0)