Skip to content

Commit

Permalink
Merge pull request #1753 from Unity-Technologies/unity-main-avoid-gc-…
Browse files Browse the repository at this point in the history
…transitions

Avoid GC transitions when they are not needed.
  • Loading branch information
joncham committed Apr 21, 2023
2 parents 8e3a01f + 420b6db commit eafd0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/metadata/marshal-ilgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ gc_safe_transition_builder_init (GCSafeTransitionBuilder *builder, MonoMethodBui
#ifndef DISABLE_COM
builder->coop_cominterop_fnptr = -1;
#endif
#if defined (TARGET_WASM)
#if defined (TARGET_WASM) || !(defined(ENABLE_HYBRID_SUSPEND) || defined(ENABLE_COOP_SUSPEND))
return FALSE;
#else
return TRUE;
Expand Down

0 comments on commit eafd0ce

Please sign in to comment.