projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c16da1
)
[sgen] Fix allocator creation when running with jit disabled.
author
Vlad Brezae
<brezaevlad@gmail.com>
Fri, 1 May 2015 19:27:15 +0000
(12:27 -0700)
committer
Vlad 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
patch
|
blob
|
history
diff --git
a/mono/metadata/sgen-mono.c
b/mono/metadata/sgen-mono.c
index b142d97108bd52ed6c852ec32b77eee0533d460b..2a390ec4873260123987a543baa2bcc7bce5ee47 100644
(file)
--- a/
mono/metadata/sgen-mono.c
+++ b/
mono/metadata/sgen-mono.c
@@
-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";