Merge pull request #2802 from BrzVlad/feature-evacuation-opt2
[mono.git] / mono / profiler / mono-profiler-aot.c
index 0aa878ab1166c56e00b62afedf2d00f4efe7d90f..4cf48bbd1b2491a54e3155c2c793b1934d5bb441 100644 (file)
@@ -9,6 +9,7 @@
  * The AOT compiler can load these files during compilation.
  * Currently, only the order in which methods were compiled is saved, 
  * allowing more efficient function ordering in the AOT files.
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
  */
 
 #include <config.h>
@@ -124,7 +125,7 @@ prof_jit_leave (MonoProfiler *prof, MonoMethod *method, int result)
        MonoImage *image = mono_class_get_image (mono_method_get_class (method));
        PerImageData *data;
 
-       data = g_hash_table_lookup (prof->images, image);
+       data = (PerImageData *)g_hash_table_lookup (prof->images, image);
        if (!data) {
                data = g_new0 (PerImageData, 1);
                g_hash_table_insert (prof->images, image, data);
@@ -145,7 +146,7 @@ mono_profiler_startup (const char *desc)
        prof = g_new0 (MonoProfiler, 1);
        prof->images = g_hash_table_new (NULL, NULL);
 
-       mono_profiler_install (prof, MONO_PROFILER_VERSION, prof_shutdown);
+       mono_profiler_install (prof, prof_shutdown);
        
        mono_profiler_install_jit_compile (prof_jit_enter, prof_jit_leave);