projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[arm64] Add sgen support.
[mono.git]
/
mono
/
metadata
/
reflection.c
diff --git
a/mono/metadata/reflection.c
b/mono/metadata/reflection.c
index 5b8936655406f3cb2591a912ca9df5a6084c4428..627604406fceefe18db221ba5fa335ab50bcb0e6 100644
(file)
--- a/
mono/metadata/reflection.c
+++ b/
mono/metadata/reflection.c
@@
-5091,7
+5091,7
@@
create_dynamic_mono_image (MonoDynamicAssembly *assembly, char *assembly_name, c
#else
image = g_new0 (MonoDynamicImage, 1);
#endif
#else
image = g_new0 (MonoDynamicImage, 1);
#endif
-
+
mono_profiler_module_event (&image->image, MONO_PROFILE_START_LOAD);
/*g_print ("created image %p\n", image);*/
mono_profiler_module_event (&image->image, MONO_PROFILE_START_LOAD);
/*g_print ("created image %p\n", image);*/
@@
-5256,6
+5256,17
@@
mono_dynamic_image_free (MonoDynamicImage *image)
}
}
}
}
+void
+mono_dynamic_image_free_image (MonoDynamicImage *image)
+{
+ /* See create_dynamic_mono_image () */
+#if HAVE_BOEHM_GC
+ /* Allocated using GC_MALLOC */
+#else
+ g_free (image);
+#endif
+}
+
#ifndef DISABLE_REFLECTION_EMIT
/*
#ifndef DISABLE_REFLECTION_EMIT
/*