Skip to content

Commit eafd0ce

Browse files
authored
Merge pull request #1753 from Unity-Technologies/unity-main-avoid-gc-transitions
Avoid GC transitions when they are not needed.
2 parents 8e3a01f + 420b6db commit eafd0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/metadata/marshal-ilgen.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ gc_safe_transition_builder_init (GCSafeTransitionBuilder *builder, MonoMethodBui
19081908
#ifndef DISABLE_COM
19091909
builder->coop_cominterop_fnptr = -1;
19101910
#endif
1911-
#if defined (TARGET_WASM)
1911+
#if defined (TARGET_WASM) || !(defined(ENABLE_HYBRID_SUSPEND) || defined(ENABLE_COOP_SUSPEND))
19121912
return FALSE;
19131913
#else
19141914
return TRUE;

0 commit comments

Comments
 (0)