2004-02-02 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / metadata / ChangeLog
index db6767db3f7c45f269aa5ee47d36cb5903f97392..b10c39482168bf21496505279732ee199c710886 100644 (file)
@@ -1,3 +1,230 @@
+2004-02-02  Zoltan Varga  <vargaz@freemail.hu>
+
+       * gc.c threads.c: Make the finalizer thread a normal managed thread so
+       the finalizer code can use thread functionality.
+
+       * threads.c: Make some functions more robust.
+
+       * loader.c (mono_lookup_pinvoke_call): Another attempt at fixing #22532.
+
+       * metadata.h: Add new marshalling conventions.
+
+       * marshal.c (mono_marshal_get_native_wrapper): Add support for unicode
+       stringbuilder marshalling. Fixes #53700.
+
+       * reflection.h (MonoReflectionTypeBuilder): Add 'permissions' field.
+
+       * reflection.c (mono_image_get_type_info): Save declarative security
+       info.
+
+       * reflection.c (mono_image_get_field_info): Handle uninitialized 
+       unmanaged fields as well.
+
+       * appdomain.c: Bump corlib version.
+
+2004-02-01  Martin Baulig  <martin@ximian.com>
+
+       * loader.c (method_from_methodspec): Use `ginst->mtype_argc/v' for
+       method type arguments.  
+
+2004-01-30  Duncan Mak  <duncan@ximian.com>
+
+       * marshal.h: Add prototype for
+       "ves_icall_System_Runtime_InteropServices_Marshal_AllocCoTaskMem"
+       and
+       "ves_icall_System_Runtime_InteropServices_Marshal_FreeCoTaskMem" to
+       fix the build.
+
+2004-01-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * marshal.c (ves_icall_System_Runtime_InteropServices_Marshal_AllocCoTaskMem): New icall.
+       (ves_icall_System_Runtime_InteropServices_Marshal_FreeCoTaskMem): New icall.
+
+2004-01-29  Zoltan Varga  <vargaz@freemail.hu>
+
+       * marshal.c (mono_marshal_get_native_wrapper): Add support for
+       custom marshalling of valuetypes.
+
+       * marshal.c: Fix some warnings.
+
+2004-01-29  Martin Baulig  <martin@ximian.com>
+
+       * class.h (MonoGenericInst): Added `mtype_argc' and `mtype_argv'
+       for generic method parameters.
+
+       * reflection.c (method_encode_methodspec): Write the uninflated
+       signature into the methodspec table.
+       (mono_reflection_inflate_method_or_ctor): Ensure `res->declaring'
+       is always the uninflated method.
+       (reflection_methodbuilder_to_mono_method): Copy the generic
+       parameters from the MethodBuilder into `header->gen_params'.
+
+2004-01-29  Zoltan Varga  <vargaz@freemail.hu>
+
+       * class.c (mono_class_from_generic_parameter): Fix warning.
+
+2004-01-27  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_class_from_generic_parameter): Don't create
+       `klass->methods' here.  
+
+2004-01-26  Zoltan Varga  <vargaz@freemail.hu>
+
+       * loader.c (mono_lookup_pinvoke_call): Disable trimming of .dll
+       extension since it does not work with libraries named lib<FOO>.dll.so.
+
+2004-01-25  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_class_inflate_generic_type): Added support for
+       MONO_TYPE_GENERICINST.
+
+       * reflection.c (mono_reflection_inflate_method_or_ctor): Also
+       inflate methods on open constructed types.      
+
+2004-01-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * object.c: fire ProcessExit event in the root AppDomain after running
+       Main. Fixes bug #53299.
+
+Fri Jan 23 21:27:40 CET 2004 Paolo Molaro <lupus@ximian.com>
+
+       * socket-io.c: include the new socket-wrappers.h header.
+       Use the wrappers instead of the unix socket functions to make the code
+       more clear.
+
+2004-01-23  Zoltan Varga  <vargaz@freemail.hu>
+
+       * profiler.c (merge_methods): Fix merging of profile info. Fixes #53010.
+
+       * loader.c (mono_lookup_pinvoke_call): Strip .dll from library names.
+       Fixes #22532.
+
+2004-01-22  Zoltan Varga  <vargaz@freemail.hu>
+
+       * reflection.c (mono_image_create_pefile): Handle the case when the
+       entry point is not a MethodBuilder.
+
+       * reflection.h (MonoReflectionAssemblyBuilder): Change 'entry_point'
+       field to ReflectionMethod since it is not allways a builder.
+
+       * reflection.c (type_get_fully_qualified_name): New helper function to
+       return the fully qualified name of a type.
+
+       * reflection.c (encode_marshal_blob): Always emit the fully qualified
+       type name for custom marshallers.
+
+       * reflection.c (mono_marshal_spec_from_builder): Ditto.
+
+       * class.c (mono_class_setup_vtable): If a parent class already 
+       implements an interface, use the implementing methods from that class.
+       Fixes #53148.
+
+2004-01-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * threadpool.c: just return instead of ExitThread to allow for thread
+       clean up earlier.
+
+2004-01-21  Zoltan Varga  <vargaz@freemail.hu>
+
+       * icall.c (ves_icall_System_Reflection_Module_Close): Prevent assertion
+       when closing resource modules.
+
+       * reflection.c (mono_image_create_pefile): Handle the case when the
+       entry point is not a MethodBuilder.
+
+       * reflection.h (MonoReflectionAssemblyBuilder): Change 'entry_point'
+       field to ReflectionMethod since it is not allways a builder.
+
+2004-01-20  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * marshal.c (mono_marshal_get_managed_wrapper): 
+       mono_marshal_alloc takes native int so CONV_I
+       the arg for 64bits.
+
+2004-01-20  Zoltan Varga  <vargaz@freemail.hu>
+
+       * reflection.c (fixup_cattrs): New function to fixup the methoddef
+       tokens in the cattr table. Fixes #53108.
+
+2004-01-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * loader.c: don't trim ".dll" before looking up in the config file.
+       Don't leak orig_scope. Reopened bug #22532 in the meanwhile.
+
+2004-01-19  Zoltan Varga  <vargaz@freemail.hu>
+
+       * icall.c (ves_icall_System_Reflection_Assembly_GetManifestResourceInternal): 
+       Return the module which contains the resource as well.
+       (ves_icall_System_Reflection_Module_Close): New icall.
+
+       * appdomain.c: Bump corlib version number.
+
+       * image.c (mono_image_addref): New public function.
+
+       * assembly.c: Call mono_image_addref.
+
+       * reflection.c (mono_module_get_object): Increase reference count of 
+       the image.
+
+       * loader.c (mono_lookup_pinvoke_call): Strip .dll from library names.
+       Fixes #22532.
+
+       * exception.h exception.c loader.h loader.c icall.c marshal.h marshal.c:
+       Applied patch from Bernie Solomon  <bernard@ugsolutions.com>. Throw
+       proper exceptions on DllImport problems.
+
+Mon Jan 19 17:50:27 CET 2004 Paolo Molaro <lupus@ximian.com>
+
+       * class.c, metadata.c: eliminate CSIZE macro.
+
+2004-01-19  Lluis Sanchez Gual  <lluis@ximian.com>
+
+       * icall.c: Added ves_icall_type_IsInstanceOf internal call.
+       * object.h: Added async_callback field in MonoAsyncResult.
+       * marshal.c: In mono_delegate_begin_invoke, set the value of async_callback.
+       * verify.c: Added async_callback in MonoAsyncResult layout.
+
+2004-01-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * reflection.c (mono_reflection_get_custom_attrs): Add support
+       for Modules.
+
+2004-01-16  Zoltan Varga  <vargaz@freemail.hu>
+
+       * marshal.c (mono_string_builder_to_utf8): Fix stringbuilder 
+       marshalling.
+       (mono_marshal_method_from_wrapper): Add null pointer check.
+
+2004-01-16  Martin Baulig  <martin@ximian.com>
+
+       * debug-mono-symfile.h: Set version number to 36 and reflect
+       latest symbol writer changes.
+
+2004-01-16  Zoltan Varga  <vargaz@freemail.hu>
+
+       * class.c (mono_bounded_array_class_get): Set 'bounded' to FALSE for
+       multi-dimensional arrays.
+       (mono_class_is_assignable_from): Check vectors<->one dim. arrays.
+       (mono_class_from_mono_type): Use bounded_array_class_get.
+       
+       * class.c (mono_bounded_array_class_get): New function which takes
+       a 'bounded' bool argument to distinguish vectors from one dimensional
+       arrays.
+
+       * icall.c (ves_icall_System_Array_CreateInstanceImpl): Call 
+       bounded_array_class_get if the array has bounds.
+
+       * icall.c (ves_icall_System_Reflection_Assembly_InternalGetType): 
+       Search modules loaded using AssemblyBuilder:AddModule as well.
+
+2004-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * appdomain.c: increased corlib version.
+       * filewatcher.c: removed g_print.
+       * icall.c:
+       (get_property_info): only allocate what is actually requested.
+       (ves_icall_Type_GetInterfaces): free the bitset in case of early error.
+
 2004-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * Makefile.am: added filewatcher.[ch]