static gsize aot_code_low_addr = (gssize)-1;
static gsize aot_code_high_addr = 0;
+static GHashTable *aot_jit_icall_hash;
+
static void
init_plt (MonoAotModule *info);
use_aot_cache = TRUE;
}
+void
+mono_aot_cleanup (void)
+{
+ if (aot_jit_icall_hash)
+ g_hash_table_destroy (aot_jit_icall_hash);
+ if (aot_modules)
+ g_hash_table_destroy (aot_modules);
+}
+
static gboolean
decode_cached_class_info (MonoAotModule *module, MonoCachedClassInfo *info, guint8 *buf, guint8 **endbuf)
{
#endif
}
-static GHashTable *aot_jit_icall_hash;
-
/*
* mono_aot_register_jit_icall:
*
/* AOT */
void mono_aot_init (void) MONO_INTERNAL;
+void mono_aot_cleanup (void) MONO_INTERNAL;
gpointer mono_aot_get_method (MonoDomain *domain,
MonoMethod *method) MONO_INTERNAL;
gpointer mono_aot_get_method_from_token (MonoDomain *domain, MonoImage *image, guint32 token) MONO_INTERNAL;