Add missing handle function enter/return macros (#21405)
commit95229aaa2ec642449aea4eba44fc717ca74786ab
authorJoshua Peterson <joshuap@unity3d.com>
Mon, 24 Jan 2022 14:16:03 +0000 (24 09:16 -0500)
committerGitHub <noreply@github.com>
Mon, 24 Jan 2022 14:16:03 +0000 (24 09:16 -0500)
treede925a953d07b40ad371672cd0592f62c6ce9e81
parentaa2e05a8d4b9e8cd16a76704a73419bab5dce0c3
Add missing handle function enter/return macros (#21405)

The mono_field_static_get_value method uses a handle, but did not set up
enter/exit macros properly, so this handle was leaked.

Some code in Unity calls this embedding API method pretty often, which
can lead to the mark stack overflowing in the GC code.
mono/metadata/object.c