[gc] Make mono_gc_init_finalizer_thread a public API
authorAleksey Kliger <alklig@microsoft.com>
Wed, 18 Mar 2020 20:38:52 +0000 (16:38 -0400)
committerAleksey Kliger <aleksey@lambdageek.org>
Tue, 24 Mar 2020 01:10:19 +0000 (21:10 -0400)
commitf8f4419d3fff935d348f63bf508750877f1798db
tree87925932b0ef38232c0dbae214851db38d85216e
parent92290b154d1d053352c7662e449d33bbf9081e2c
[gc] Make mono_gc_init_finalizer_thread a public API

It was already used by Xamarin.iOS but wasn't in a public header and required
compiling with --disable-visibility-hidden in order to dlsym the symbol.

If --with-lazy-gc-thread-creation is used, embedders must call this function to
create the finalizer therad.  Otherwise the function does nothing and the
runtime will create the finalizer thread automatically.
src/mono/mono/metadata/gc.c
src/mono/mono/metadata/mono-gc.h