[mono] Enter GC Unsafe mode in some string allocation functions (#19262)
commitf0784b26ddbc745416c91c34ca0564b7ae3b5869
authormonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 20 Mar 2020 03:57:43 +0000 (19 23:57 -0400)
committerGitHub <noreply@github.com>
Fri, 20 Mar 2020 03:57:43 +0000 (19 23:57 -0400)
tree530cc5716622a9f739022e7e954321227b104d8d
parentd90665a422e9f8d015585b3ca381d74faa033cc4
[mono] Enter GC Unsafe mode in some string allocation functions (#19262)

All these functions are MONO_RT_EXTERNAL_ONLY and they all allocate managed
objects.

Fixes a deadlock if an embedder calls the function and it needs to take the GC
lock to do a collection.

Co-authored-by: lambdageek <lambdageek@users.noreply.github.com>
mono/metadata/object.c