Initialize icalls before exceptions.
authorVincent Povirk <vincent@codeweavers.com>
Mon, 6 Jan 2014 18:48:51 +0000 (12:48 -0600)
committerVincent Povirk <vincent@codeweavers.com>
Mon, 6 Jan 2014 18:48:51 +0000 (12:48 -0600)
This commit licensed as MIT/X11.

mono/mini/mini.c

index 21f62e1757a68fd989fa651cee8c66350b042072..330ba411ca7e38cc8b7db8e04a1e2fee45afab5f 100644 (file)
@@ -7266,11 +7266,11 @@ mini_init (const char *filename, const char *runtime_version)
        /*Init arch tls information only after the metadata side is inited to make sure we see dynamic appdomain tls keys*/
        mono_arch_finish_init ();
 
+       mono_icall_init ();
+
        /* This must come after mono_init () in the aot-only case */
        mono_exceptions_init ();
 
-       mono_icall_init ();
-
        /* This should come after mono_init () too */
        mini_gc_init ();