[Mono-bugs] [Bug 77596][Nor] Changed - get rid of global generics caches in metadata.c

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 20 11:56:08 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by lupus at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77596

--- shadow/77596	2006-02-20 09:12:57.000000000 -0500
+++ shadow/77596.tmp.23239	2006-02-20 11:56:08.000000000 -0500
@@ -48,6 +48,15 @@
 ------- Additional Comments From vargaz at gmail.com  2006-02-20 09:12 -------
 Also, the generic instances could be cached in the image where the
 definition is. This is needed because we would like to implement 
 unloading of assemblies in the future, so all data related to the
 assembly should be kept with the assembly, and not in global tables.
 
+
+------- Additional Comments From lupus at ximian.com  2006-02-20 11:56 -------
+Generic instantiations of generic classes and methods may reference
+classes from multiple assemblies.
+In these cases it's likely better to have a global cache
+and a function that walks it and removes instantiations that reference
+an assembly when it is going to be unloaded.
+Anyway, yes, the generics code is a bit of a mess and needs a big
+audit, both in the interface and the implementation.


More information about the mono-bugs mailing list