[Mono-dev] Assembly.GetType() leaks with generic types
Rodrigo Kumpera
kumpera at gmail.com
Tue Sep 4 15:00:00 EDT 2007
Hi Juraj,
I've posted a patch in the bug report.
Cheers,
Rodrigo
On 9/4/07, Juraj Skripsky <js at hotfeet.ch> wrote:
>
> This is bug http://bugzilla.ximian.com/show_bug.cgi?id=82695. I'm
> posting it here because it never made it to the list (mono-bugs).
> Bugzilla doesn't like me :-(.
>
>
> Test Case:
> ==========
>
> using System;
> using System.Reflection;
>
> namespace TestApp {
> public class Test<T> {}
>
> class Program {
> static void Main(string[] args) {
> Assembly assembly = typeof(Program).Assembly;
>
> int runs = int.Parse(args[0]);
> for(int i = 0; i < runs; i++) {
> assembly.GetType (
> "TestApp.Test`1[[System.Object, mscorlib, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089]]",
> true
> );
> }
> }
> }
> }
>
> Run "mono test.exe 2000000" and watch the mono process grow to over 300MB.
> I'm using Mono from SVN.
>
>
> - Juraj
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070904/b37756ae/attachment.html
More information about the Mono-devel-list
mailing list