Fix monodis
authorAndi McClure <andi.mcclure@xamarin.com>
Mon, 27 Feb 2017 20:54:05 +0000 (15:54 -0500)
committerAndi McClure <andi.mcclure@xamarin.com>
Mon, 27 Feb 2017 20:54:05 +0000 (15:54 -0500)
monodis was not calling the mono_tls_init_runtime_keys function, which
was causing it to crash the first time it attempted to access the
current domain (ie almost immediately).

mono/dis/main.c

index d187f28780a3a5bf81e3271768e0f615cb56a0e2..599651b1368b78f6c6770ff5742d1c6d83495c81 100644 (file)
@@ -2027,6 +2027,7 @@ main (int argc, char *argv [])
 
        CHECKED_MONO_INIT ();
        mono_counters_init ();
+       mono_tls_init_runtime_keys ();
        memset (&ticallbacks, 0, sizeof (ticallbacks));
        ticallbacks.thread_state_init = thread_state_init;
 #ifndef HOST_WIN32