[threading] embedded mono hangs (mono/mono#16907)
authorThays Grazia <thaystg@gmail.com>
Wed, 25 Sep 2019 20:12:33 +0000 (17:12 -0300)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2019 20:12:33 +0000 (17:12 -0300)
commit1085a394a4093baf33a5be6fcf2494cd2eb2fa8c
tree3e0d9c3f570fb009f59bc694f1cb6ebae0ed32b2
parent50254fc7e38c45c3f1a11c43a58629be575f4a50
[threading] embedded mono hangs (mono/mono#16907)

* [threading] embedded mono hangs

When embedded mono is executing a C++ code, it didn't start to execute a C# code, we don't need to suspend the thread to run GC.
Fixes mono/mono#16192
Fixes mono/mono#14725

* Changing what was discussed with Aleksey during our 1on1

* Changing what was suggested by Aleksey

* Separating mono_init_version that is being used on tests from the embedded ones

Commit migrated from https://github.com/mono/mono/commit/5b108b5726ec196f4b61d30f406919ce70211754
src/mono/mono/mini/driver.c
src/mono/mono/mini/jit.h
src/mono/mono/unit-tests/test-mono-callspec.c
src/mono/mono/unit-tests/test-mono-string.c
src/mono/mono/utils/mono-threads-api.h