[Mono-devel-list] MONO_PARSE_PARAM in metadata.c???

Okehee Goh okehee at gmail.com
Tue Jun 28 19:21:04 EDT 2005


There is a function 
mono_metadata_parse_type_full() at metadata.c.
It include the following part:

	/* FIXME: remove the != MONO_PARSE_PARAM condition, this accounts for
	 * almost 10k (about 2/3rds) of all MonoType's we create.
	 */
	if (mode != MONO_PARSE_PARAM && !type->num_mods) {
      .....
       }

 It says we can save some memory if remove "mode != MONO_PARSE_PARAM". 
But seems that after we remove this, we got mono crash  though we
could save some memory.
 The Mono error message is that "cannot decode IL which is all 0x0000,
when XmlReader.Close() is being JITted".

Do anybody know what's role of "mode != MONO_PARSE_PARAM" ? or what is
MONO_PARSE_PARAM for?
Or any way to prevent the crash without that? 

Thanks a lot..

Regards,



More information about the Mono-devel-list mailing list