Fix crash on 'make run-test' in mcs/errors
[mono.git] / mono / metadata / ChangeLog
index 143594ceab5d7a3340f07a8d005aaa45478b2811..cb76576d79362c9c99ca18e85cdd7d192c14dd64 100644 (file)
@@ -1,3 +1,147 @@
+2007-09-19  Raja R Harinath  <harinath@gmail.com>
+
+       Fix crash on 'make run-test' in mcs/errors
+       * metadata.c (type_in_image): New.  Carve out of ginst_in_image.
+       Avoid more potential allocations in mono_class_from_mono_type.
+       (ginst_in_image): Update to changes.
+       (gclass_in_image): Rearrange slightly.
+
+2007-09-18  Zoltan Varga  <vargaz@gmail.com>
+
+       * class.c (mono_class_init): Move the code that sets up class->methods to 
+       mono_class_setup_methods () for inflated generic classes too. Ditto for properties.
+
+       * metadata.c (mono_metadata_get_inflated_signature): New function to return a
+       canonical instance of an inflated generic signature.
+       (mono_type_create_from_typespec): Remove an invalid free.
+
+       * loader.c (mono_method_get_signature_full): Use mono_metadata_get_inflated_signature.  
+
+2007-09-18  Marek Habersack  <mhabersack@novell.com>
+
+       * domain-internals.h: added a declaration of the
+       mono_assembly_load_full_nosearch internal function.
+
+       * assembly.c (mono_assembly_load_with_partial_name): use
+       mono_try_assembly_resolve return value properly.
+       (mono_assembly_load_full_nosearch): copied the function body from
+       mono_assembly_load_full, without the code to invoke assembly
+       search hooks.
+       (mono_assembly_load_full): calls the above new function and if the
+       assembly is not resolved, invokes the search hooks.
+
+       * appdomain.c (mono_runtime_init): restore the global postload
+       assembly search handlers.
+
+2007-09-18  Zoltan Varga  <vargaz@gmail.com>
+
+       * class.c (mono_class_init): Make sure class->methods and class->properties
+       are never NULL in the generics case.
+
+       * metadata.c (free_generic_class): Enable this again, skip the dynamic case.
+
+2007-09-17  Zoltan Varga  <vargaz@gmail.com>
+
+       * metadata.c (free_generic_class): Disable some code to fix the build.
+
+       * domain.c (mono_cleanup): Fix a crash introduced by a previous patch.
+
+       * marshal.c (mono_marshal_get_xappdomain_dispatch): Allocate a piece of data
+       from the image mempool.
+
+       * metadata.c (free_generic_class): Free more data from the inflated class.
+
+       * class.c (mono_class_from_generic_parameter): Allocate memory from the mempool.
+
+       * metadata.c (mono_metadata_parse_generic_param): Allocate memory from the image
+       mempool.
+       (mono_type_create_from_typespec): Ditto.
+
+       * domain.c (get_runtimes_from_exe): Add an out parameter to return the opened
+       MonoImage to the caller.
+       (mono_init_internal): Save the opened image in a global variable.
+       (mono_cleanup): Close the image opened in get_runtimes_from_exe.
+
+       * reflection.c (resolve_object): Fix a leak.
+
+       * metadata.c: Fix the freeing of data in the generics caches.
+       
+       * metadata.c (free_generic_inst): Comment this out to fix the build.
+       (free_generic_class): Ditto.
+
+       * metadata.c: Free cached generic methods, instantinations and classes when
+       they are removed from the caches.
+       (mono_metadata_free_type): Free the type itself.
+
+       * class.c: Free the result of mono_class_inflate_generic_type () in a few
+       places.
+
+Mon Sep 17 16:14:07 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+       * boehm-gc.c: restrict managed allocs to __thread supporting
+       architectures.
+
+2007-09-16  Zoltan Varga  <vargaz@gmail.com>
+
+       * class.c (mono_class_inflate_generic_type): Add a comment describing memory ownership.
+       (mono_generic_class_get_class): Fix a leak.
+
+       * metadata.c (do_mono_metadata_parse_type): Remove an unneccesary call to
+       mono_metadata_free_type ().
+       (mono_metadata_inflate_generic_inst): Fix a leak.
+
+2007-09-14  Zoltan Varga  <vargaz@gmail.com>
+
+       * mono-debug.c (free_header_data): Fix a leak missed earlier.
+
+       * metadata.c (mono_metadata_parse_array_full): Allocate memory from the image
+       mempool.
+
+       * mono-debug.c (mono_debug_close_image): Fix call to 
+       g_hash_table_remove ().
+
+Fri Sep 14 19:36:37 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+       * icall-def.h: redirect all the string ctor to the managed
+       CreateString () methods.
+       * string-icalls.c, string-icalls.h: removed dead code for string
+       ctors and icalls.
+
+2007-09-14  Zoltan Varga  <vargaz@gmail.com>
+
+       * mono-debug.c: Fix memory leaks.
+
+2007-09-14  Jonathan Chambers <joncham@gmail.com>
+
+       * threads-types.h: Implement mono_hazard_pointer_set and 
+       mono_hazard_pointer_clear macros using do/while(0) to fix
+       compilation with MSVC.
+       
+       Code is contributed under MIT/X11 license.
+
+2007-09-14  Zoltan Varga  <vargaz@gmail.com>
+
+       * gc.c (ves_icall_System_GCHandle_GetAddrOfPinnedObject): Use a return value of
+       -2 to communicate to managed code that the handle is not pinned. Fixes #82848.
+
+Fri Sep 14 14:04:31 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+       * icall-def.h, string-icalls.c: get rid of old, no longer used, string
+       icalls.
+
+Fri Sep 14 11:41:31 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+       * boehm-gc.c, gc-internal.h, object.c: allow strings to be
+       managed-code allocated as well.
+
+2007-09-13  Zoltan Varga  <vargaz@gmail.com>
+
+       * class.c (mono_class_is_assignable_from): Add support for generic variance.
+
+Thu Sep 13 11:55:55 CEST 2007 Paolo Molaro <lupus@ximian.com>
+
+       * boehm-gc.c: fixed the build after the AOT changes.
+
 2007-09-13  Zoltan Varga  <vargaz@gmail.com>
 
        * wrapper-types.h: Add an ALLOC wrapper type.