[arm64] Add sgen support.
[mono.git] / mono / metadata / reflection.c
index 5b8936655406f3cb2591a912ca9df5a6084c4428..627604406fceefe18db221ba5fa335ab50bcb0e6 100644 (file)
@@ -5091,7 +5091,7 @@ create_dynamic_mono_image (MonoDynamicAssembly *assembly, char *assembly_name, c
 #else
        image = g_new0 (MonoDynamicImage, 1);
 #endif
-       
+
        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
 
 /*