* monograph.c (print_method): Don't use method->info, as this will
be removed soon.
svn path=/trunk/mono/; revision=40362
+2005-02-09 Ben Maurer <bmaurer@ximian.com>
+
+ * monograph.c (print_method): Don't use method->info, as this will
+ be removed soon.
+
2005-02-03 Zoltan Varga <vargaz@freemail.hu>
* monograph.c: Fix warnings.
const MonoOpcode *opcode;
MonoMethodHeader *header;
GHashTable *hash;
+ static GHashTable *visited = NULL;
const unsigned char *ip;
int i;
if (depth++ > max_depth)
return;
- if (method->info) /* avoid recursion */
+
+ if (! visited)
+ visited = g_hash_table_new (NULL, NULL);
+
+ if (g_hash_table_lookup (visited, method))
return;
- method->info = method;
+
+ g_hash_table_insert (visited, method, method);
if (method->iflags & (METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL | METHOD_IMPL_ATTRIBUTE_RUNTIME))
return;