Skip to content

Commit

Permalink
Add code to use Unity GC.
Browse files Browse the repository at this point in the history
  • Loading branch information
joncham committed Jan 10, 2022
1 parent 439b35f commit ccf355c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coreclr/vm/mono/mono_coreclr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@ void SetupDomainPaths(MonoObject *alcObject)

extern "C" EXPORT_API MonoDomain* mono_jit_init_version(const char *file, const char* runtime_version)
{
#if defined(UNITYGC)
_putenv_s("ComPlus_GCName", "unitygc.dll");
SetEnvironmentVariableW(L"ComPlus_GCName", L"unitygc.dll");
#endif
g_gc_handles_lock.Init(CrstMonoHandles);
g_add_internal_lock.Init(CrstMonoICalls);

Expand Down

0 comments on commit ccf355c

Please sign in to comment.