2009-07-30 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / metadata / metadata-internals.h
index 9d5fb128907fde8268cda3e64347de6e087fff50..e27ffc770a1a527888ae2215d7dc4d2c3d9ea6ce 100644 (file)
@@ -181,7 +181,7 @@ struct _MonoImage {
        /*
         * Indexes namespaces to hash tables that map class name to typedef token.
         */
-       GHashTable *name_cache;
+       GHashTable *name_cache;  /*protected by the image lock*/
 
        /*
         * Indexed by MonoClass
@@ -218,8 +218,7 @@ struct _MonoImage {
        GHashTable *synchronized_cache;
        GHashTable *unbox_wrapper_cache;
        GHashTable *cominterop_invoke_cache;
-       GHashTable *cominterop_wrapper_cache;
-       GHashTable *static_rgctx_invoke_cache; /* LOCKING: marshal lock */
+       GHashTable *cominterop_wrapper_cache; /* LOCKING: marshal lock */
        GHashTable *thunk_invoke_cache;
 
        /*
@@ -343,6 +342,7 @@ struct _MonoDynamicImage {
        MonoDynamicStream tstream;
        MonoDynamicStream guid;
        MonoDynamicTable tables [MONO_TABLE_NUM];
+       MonoClass *wrappers_type; /*wrappers are bound to this type instead of <Module>*/
 };
 
 /* Contains information about assembly binding */
@@ -553,6 +553,8 @@ gboolean mono_image_load_pe_data (MonoImage *image) MONO_INTERNAL;
 
 gboolean mono_image_load_cli_data (MonoImage *image) MONO_INTERNAL;
 
+void mono_image_load_names (MonoImage *image) MONO_INTERNAL;
+
 MonoImage *mono_image_open_raw (const char *fname, MonoImageOpenStatus *status) MONO_INTERNAL;
 
 #endif /* __MONO_METADATA_INTERNALS_H__ */