2009-12-15 Mark Probst <mark.probst@gmail.com>
commit5b16e28208b4b0d19c186652f4c4de8d5cd9048c
authorMark Probst <mark.probst@gmail.com>
Mon, 14 Dec 2009 23:52:55 +0000 (14 23:52 -0000)
committerMark Probst <mark.probst@gmail.com>
Mon, 14 Dec 2009 23:52:55 +0000 (14 23:52 -0000)
treeb641e2600d8783e5b0d8104decd7372eee82b87d
parentcd70db557eb416f01a8cc44718d905020497463f
2009-12-15  Mark Probst  <mark.probst@gmail.com>

        * class.c (mono_generic_class_get_class): Allocate the generic
        class via malloc again, so that it can be freed when any one of
        the images of its constituent types is closed.

        * metadata.c: When closing an image, don't free generic insts and
        generic classes right away, but put them into a list for later
        freeing.

        * image.c, metadata-internals.h: Store the free list and in the
        second pass of closing an image, free it.

svn path=/trunk/mono/; revision=148438
mono/metadata/ChangeLog
mono/metadata/class.c
mono/metadata/image.c
mono/metadata/metadata-internals.h
mono/metadata/metadata.c