[sgen] Fix allocator creation when running with jit disabled.
authorVlad Brezae <brezaevlad@gmail.com>
Fri, 1 May 2015 19:27:15 +0000 (12:27 -0700)
committerVlad Brezae <brezaevlad@gmail.com>
Fri, 10 Jul 2015 18:43:42 +0000 (11:43 -0700)
We don't allocate the method header when not jitting.

mono/metadata/sgen-mono.c

index b142d97108bd52ed6c852ec32b77eee0533d460b..2a390ec4873260123987a543baa2bcc7bce5ee47 100644 (file)
@@ -1381,7 +1381,9 @@ create_allocator (int atype, gboolean slowpath)
 
        res = mono_mb_create_method (mb, csig, 8);
        mono_mb_free (mb);
+#ifndef DISABLE_JIT
        mono_method_get_header (res)->init_locals = FALSE;
+#endif
 
        info = mono_image_alloc0 (mono_defaults.corlib, sizeof (AllocatorWrapperInfo));
        info->gc_name = "sgen";