2007-04-06 Andreas Faerber <andreas.faerber@web.de>
[mono.git] / mono / metadata / ChangeLog
index 44b1eaa7271f52860050761110203a073a6ebba5..8f3c0656377d8ab52397b6dd135cd000b2970864 100644 (file)
@@ -1,3 +1,280 @@
+2007-04-07  Zoltan Varga  <vargaz@gmail.com>
+
+       * threads.c (start_wrapper): Call push_appdomain_ref () earlier to fix races where
+       the thread is aborted early.
+
+2007-04-05  Dick Porter  <dick@ximian.com>
+
+       * file-io.c (ves_icall_System_IO_MonoIO_GetFileSystemEntries): use
+       FindFirstFile()/FindNextFile() to find entries.  This lets the
+       io-layer versions use MONO_IOMAP compatibility helpers.  Fixes bug
+       81038.
+
+       * appdomain.c (MONO_CORLIB_VERSION): Increment, as the usage of
+       the parameters of
+       ves_icall_System_IO_MonoIO_GetFileSystemEntries() has changed.
+
+2007-04-04  Martin Baulig  <martin@ximian.com>
+
+       * debug-helpers.c
+       (mono_method_desc_full_match): Add support for nested classes.
+
+2007-04-02  Zoltan Varga  <vargaz@gmail.com>
+
+       * marshal.c (cominterop_get_managed_wrapper_adjusted): Fix warnings.
+
+2007-04-01  Zoltan Varga  <vargaz@gmail.com>
+
+       * threads.c (abort_appdomain_thread): Avoid handle leakage if we are
+       waiting for too many threads.
+
+2007-03-28  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * environment.c: Fix return value check on uname so we can get the 
+       executing version on Solaris operating systems.
+
+2007-03-28  Jb Evain  <jbevain@gmail.com>
+
+       * class.c (mono_type_get_name_recurse): Complete the
+       fix for the creation of assembly qualified names for
+       pointer types. Fixes #81208.
+
+2007-03-27  Dick Porter  <dick@ximian.com>
+
+       * appdomain.c (MONO_CORLIB_VERSION): Increment, as the signature
+       of ves_icall_System_Threading_Mutex_ReleaseMutex_internal() has
+       changed.
+
+       * threads.c
+       (ves_icall_System_Threading_Mutex_ReleaseMutex_internal): Return
+       the value of ReleaseMutex().
+
+2007-03-27  Dick Porter  <dick@ximian.com>
+
+       * socket-io.c (ipaddress_to_struct_in_addr): IPAddress is stored
+       in little-endian order, not network endian, so must be converted
+       to host endian here.  Fixes bug 80593.
+
+2007-03-22  Jb Evain  <jbevain@gmail.com>
+
+       * class.c (mono_type_get_name_recurse): Fix the creation of assembly
+       qualified names for pointer types. Fixes #81208.
+
+2007-03-21  Jonathan Chambers  <joncham@gmail.com>
+
+       * marshal.c: Add support for PreserveSigAttribute. 
+       
+       Code is contributed under MIT/X11 license.
+
+2007-03-14  Zoltan Varga  <vargaz@gmail.com>
+
+       * process.c: Fix endianness issues. Fixes #81126.
+
+       * reflection.c (mono_reflection_create_dynamic_method): Fix the last change so
+       multiple circular calls made from the same DynamicMethod work. Fixes #81141.
+
+       * image.c (mono_image_lookup_resource): Make this work on big-endian
+       machines.Change API contract so the caller needs to free the return value.
+       
+       * process.c (process_get_fileversion): Adapt to mono_image_lookup_resource ()
+       API change.
+       
+2007-03-14  Martin Baulig  <martin@ximian.com>
+
+       * debug-helpers.c (mono_type_get_desc): In `MONO_TYPE_ARRAY', use
+       mono_type_get_desc() as well.
+
+2007-03-13  Jonathan Chambers  <joncham@gmail.com>
+
+       * icall.c:  Fix environ access in VS.  
+       
+2007-03-13  Alp Toker  <alp@atoker.com>
+
+       * icall.c (ves_icall_MonoType_GetElementType): For enums, return null
+       rather than the underlying type. Based on a patch by Ben Maurer. Fixes
+       #63841.
+
+2007-03-12  Zoltan Varga  <vargaz@gmail.com>
+
+       * reflection.c (mono_reflection_create_dynamic_method): Add support for 
+       circular references among dynamic methods. Fixes #81091.
+
+       * object-internals.h (MonoReflectionDynamicMethod): Add 'referenced_by' field.
+
+2007-03-09  Martin Baulig  <martin@ximian.com>
+
+       * reflection.c (encode_constant): Add support for MONO_TYPE_GENERICINST.
+
+2007-03-09  Jonathan Chambers  <joncham@gmail.com>
+
+       * appdomain.c:  Fix shadow copy on Windows. Use g_snprintf instead
+       of snprintf as it doesn't exist on Win32 (VS build); also for uniformity.  
+       
+       Code is contributed under MIT/X11 license.
+        
+2007-03-09  Gert Driesen  <drieseng@users.souceforge.net>
+
+       * loader.c: Reapply patch for bug #79424.
+
+2007-03-06  Zoltan Varga  <vargaz@gmail.com>
+
+       * metadata.c (mono_type_to_unmanaged): Only convert object to
+       MARSHAL_CONV_SAFEHANDLE on the 2.0 profile.
+
+Tue Mar 6 15:39:48 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * class-internals.h, class.c, metadata.c, reflection.c: removed unused
+       (and incorrectly set) is_reference field from MonoGenericInst.
+
+2007-03-06  Zoltan Varga  <vargaz@gmail.com>
+
+       * assembly.c (mono_assembly_load_from_full): Call mono_assemblies_unlock ()
+       a little earlier.
+
+       * icall.c (ves_icall_type_Equals): Rename this to ves_icall_System_Type_EqualsInternal.
+
+       * icall-def.h: Rename Type:Equals to Type:EqualsInternal.
+
+2007-03-05  Miguel de Icaza  <miguel@novell.com>
+
+       * file-io.c (ves_icall_System_IO_MonoIO_Open): Use the new
+       FileOptions.1 value to mean "temporary", map that to
+       FILE_ATTRIBUTE_TEMPORARY and use that to signal 600 permissions.
+
+       Fixes 80688
+
+2007-03-03  Marek Habersack  <mhabersack@novell.com>
+
+       * appdomain.c: implement MS .Net style shadow copying. Copies of
+       the assemblies are made in a subdirectory of the dynamic base
+       directory, the assembly names are preserved.
+       Copy .mdb and .config files along with the assemblies being shadowed.
+
+2007-02-28  Zoltan Varga  <vargaz@gmail.com>
+
+       * marshal.c (emit_object_to_ptr_conv): Emit valid IL for handling HandleRefs.
+       (emit_marshal_handleref): Ditto.
+
+       * profiler.c: Applied patch from Tor Lillqvist (tml@novell.com) to fix output
+       on Visual C++. Fixes #80671.
+
+Wed Feb 28 16:53:40 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * boehm-gc.c, null-gc.c, object.h, object.c: sgen gc fixes
+       for clone operations.
+
+2007-02-28  Zoltan Varga  <vargaz@gmail.com>
+
+       * marshal.c: Fix warnings.
+
+Fri Feb 23 15:06:57 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * loader.c: allow case-insensitive matching of the dll name
+       in dllmap handling when prefixed with "i:".
+
+2007-02-20  Jonathan Chambers  <joncham@gmail.com>
+
+       * threads.c: Fix #ifdef for dummy_apc function for VS.
+
+Tue Feb 20 11:59:42 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * threads.c: don't throw in MemoryBarrier (), use lock/unlock.
+
+2007-02-19  Massimiliano Mantione  <massi@ximian.com>
+       * class.c (mono_class_setup_vtable_general): Fix bug 75903,
+       giving precedence to the methods with a fully qualified name
+       (InterfaceName.MethodName) when building the interface sections
+       of the vtable.
+
+2007-02-16  Dick Porter  <dick@ximian.com>
+
+       * threadpool.c (append_job): Fix fast-path array handling, so it's
+       less likely the array will grow exponentially when the load is
+       heavy.
+
+Fri Feb 16 19:17:30 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * metadata-internals.h, loader.c: fix dllmap lookup order
+       for non-function maps, too, and prepare for fallback code.
+
+2007-02-12  Robert Jordan  <robertj@gmx.net>
+
+       * marshal.c, marshal.h, icall-def.h: rename mono_marshal_realloc
+       to ves_icall_System_Runtime_InteropServices_Marshal_ReAllocHGlobal
+       and use GlobalReAlloc on WIN32 to be in sync with GlobalAlloc,
+       GlobalFree. Fixes a part of bug #77075.
+
+Mon Feb 12 21:10:07 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * loader.c: implemented typedef parent in field memberref.
+
+2007-02-11  Jonathan Chambers  <joncham@gmail.com>
+
+       * marshal.c: Fix warnings and remember to call Release on
+       IUnknown of RCW.
+       
+       Code is contributed under MIT/X11 license.
+
+2007-02-10  Miguel de Icaza  <miguel@novell.com>
+
+       * class-internals.h: Add MonoHandleRef definition, and
+       handleref_class to mono_defaults. 
+
+       * metadata.c (mono_type_to_unmanaged): If we find HandleRefs in a
+       structure, use new conversion MONO_MARSHAL_CONV_HANDLEREF.
+
+       * marshal.c (emit_ptr_to_object_conv): Add support for HandleRefs
+       (do nothing on this stage)
+       (emit_object_to_ptr_conv): Extract the handle from the HandleRef.  
+       (emit_marshal_handleref): New method, used for argument handling
+       of HandleRefs. 
+
+2007-02-08  Jonathan Chambers  <joncham@gmail.com>
+
+       * class.c (mono_class_setup_parent): Lazily init com types.
+       * domain.c (mono_init_internal, mono_init_com_types): Lazily 
+       init com types.
+       * object.c (mono_remote_class_vtable): Lazily init com types.
+       * class-internals.h: Add iunknown and idispatch to MonoDefaults.
+       * object-internals.h: Add MonoComInteropProxy and MonoReflectionGuidAttribute.
+       * domain-internals.h: Expose mono_init_com_types.
+       * icall-def.h: Add icalls for ComInteropProxy, __ComObject, and Marshal.
+       * marshal.c: Add mutex for cominterop use. Init locals for wrapper methods.
+       Add support for COM Callable Wrapper marshalling.
+       * marshal.h: Add icall definitions.
+       * gc.c: Handle freeing of CCWs in finalizer code.
+       
+       Code is contributed under MIT/X11 license.
+
+Thu Feb 8 12:46:18 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c: changed all the signature encoding code to use
+       a variable-sized buffer.
+
+Wed Feb 7 20:37:23 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * marshal.c: locking fixes: never take the loader lock
+       or other runtime locks when holding the marshal lock
+       (fixes bug#80664).
+
+Wed Feb 7 18:49:10 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * marshal.c: make the delegate function pointer mapping
+       work for the moving GC.
+
+Mon Jan 29 11:30:46 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * marshal.c: fix from Robert Jordan (robertj@gmx.net)
+       for bug #80618.
+
+Fri Jan 26 12:49:23 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * image.h, loader.c, metadata-internals.h: use mono-dl instead of
+       gmodule.
+
+Fri Jan 26 12:00:45 CET 2007 Paolo Molaro <lupus@ximian.com>
+
+       * threadpool.c: made the code moving-GC safe.
 
 Thu Jan 25 20:31:41 CET 2007 Paolo Molaro <lupus@ximian.com>