Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sgen] Don't trigger collections during allocation of thread objects (m…
…ono/mono#17970) Allocation of thread objects usese the mono_object_new_mature API. These objects are allocated before the thread is finished attaching to the runtime. This means that a collection can happen on an unattached thread as well as all its callbacks, which is a counter-intuitive behavior. On android this is problematic because at the end of the SGen collection we need to call the java collection, which needs to have the thread attached. This could probably be fixed instead from the Xamarin.Android side, but this approach seems simpler and saner. Fixes mono/mono#17878 Commit migrated from mono/mono@640ffa7
- Loading branch information