Patch for bug #62532 implemention of a kqueue/kevent based FileSystemWatcher.
[mono.git] / mono / metadata / ChangeLog
index 5ccf20e86766f4c8045a6c3a04510d48f1e7d26f..76499be9aac77fdcfb1aba5ce777a03bf151119e 100644 (file)
@@ -1,3 +1,463 @@
+2004-08-06  Geoff Norton <gnorton@customerdna.com>
+       
+       * filewatcher.c: If HAVE_KQUEUE return mode 3 to use the new kqueue watcher
+
+2004-08-05  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * appdomain.c: Bumped MONO_CORLIB_VERSION to 23. Added new icall
+       ves_icall_System_AppDomain_getDomainByID to get an AppDomain by Id.
+       * domain-internals.h: icall declaration.
+       * icall.c: icall registration.
+       * object-internals.h: New fields in MonoAssembly for CAS.
+
+2004-08-05  Duncan Mak  <duncan@ximian.com>
+
+       * verify.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to
+       CEE_LDELEM_ANY.
+
+Thu Aug 5 17:11:44 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c: fix to deal with object[] arrays in custom ctors
+       (bug #62550).
+
+2004-08-05  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_class_array_element_size): Added support for
+       generic instances and correctly handle "recursive" types.
+
+2004-08-05  Zoltan Varga  <vargaz@freemail.hu>
+
+       * assembly.c: Fix warnings.
+
+2004-08-04  Martin Baulig  <martin@ximian.com>
+
+       * class.c
+       (mono_type_get_name_recurse): Added `gboolean include_arity'
+       argument specifying whether or not we should include the generic
+       arity in the type name.
+       (_mono_type_get_name): New static function.
+       (mono_class_setup_vtable): If we're a generic instance, don't
+       include the generic arity in the names of explicit method
+       implementations.        
+
+2004-08-03  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_type_get_name_recurse): Enclose the generic type
+       arguments in `<', '>'.
+
+Tue Aug 3 17:54:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * gc.c: make GC warning messages use the trace API, they are just
+       noise to most of the users.
+
+2004-08-03  Martin Baulig  <martin@ximian.com>
+
+       * debug-mono-symfile.c (read_string): Correctly read the string.
+
+2004-07-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * marshal.c (signature_dup_add_this): Fix bug in previous patch.
+       
+       * marshal.c (mono_marshal_get_icall_wrapper): Add support for vararg
+       icalls.
+       (mono_marshal_get_runtime_invoke): Correctly handle valuetype methods.
+
+2004-07-30  Martin Baulig  <martin@ximian.com>
+
+       * debug-mono-symfile.c, mono-debug.c, mono-debug-debugger.c:
+       Reflect latest symbol writer changes.   
+
+Fri Jul 30 16:49:05 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * object.c: always create an object if null is passed
+       to Invoke() where a valuetype is expected.
+
+2004-07-29  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * marshal.c (mono_marshal_init): make managed
+       signatures match native ones better for 64bits.
+
+2004-07-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * appdomain.c: hack to build correctly the private bin path on windows.
+       Fixes bug #61991.
+
+2004-07-28  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * assembly.c: Load mscorlib from the correct framework directory
+         (mono/<version>/mscorlib.dll).
+       * appdomain.h: Added prototypes for new functions.
+       * internals.h: Added some prototypes.
+       * domain.c: When initializing the runtime, get from the executable and
+         the configuration files the runtime version that the app supports.
+         Added support methods for reading app.exe.config. Added list of versions
+         supported by the JIT. Added two new methods: mono_init_from_assembly,
+         which initializes the runtime and determines the required version from
+         the provided exe file, and mono_init_version, which initializes
+         the runtime using the provided version.
+       * icall.c: Get machine.config from version-specific directory.
+       * reflection.c: When generating an image, embed the version number
+         of the current runtime.
+
+2004-07-28  Dick Porter  <dick@ximian.com>
+
+       * socket-io.c
+       (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal): Check
+       returned sockaddr size before creating the remote address object.
+       Patch by Nick Vaughan (dev@6wardlaw.freeserve.co.uk), fixes bug
+       61608.
+
+2004-07-28  Dick Porter  <dick@ximian.com>
+
+       * locales.c (string_invariant_compare_char): Fix invariant char
+       compares between upper and lower cases.  Fixes bug 61458.
+
+2004-07-27  Ben Maurer  <bmaurer@ximain.com>
+       
+       * marshal.c: actually cache stelem.ref wrappers.
+       
+Tue Jul 27 16:56:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * class.c, image.c, loader.c, cil-coff.h: lazily mmap the image 
+       sections and remove the mono_cli_rva_map () function.
+
+Tue Jul 27 15:58:19 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * debug-mono-symfile.c: fix one more endianess issue, from a patch
+       by Geoff Norton (<gnorton@customerdna.com>).
+
+Tue Jul 27 15:47:17 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * class.c: fix class loads for pointer types (typeof(int) !=
+       typeof(int*)).
+
+2004-07-27  Martin Baulig  <martin@ximian.com>
+
+       * debug-mono-symfile.c (mono_debug_open_mono_symbol_file): Support
+       reading the debugging information from an external ".mdb" file.
+
+2004-07-24  Martin Baulig  <martin@ximian.com>
+
+       * reflection.c (mono_image_get_type_info): Only write a class
+       layout entry if we actually have a size or a packing size.
+
+2004-07-21  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * reflection.c (type_get_fully_qualified_name): 
+       insert cast to get type checking of ?: with non-gcc compilers
+
+2004-07-21  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * rand.c: use g_getenv for both lookups of
+       MONO_EGD_SOCKET
+
+2004-07-17  Martin Baulig  <martin@ximian.com>
+
+       * reflection.c (mono_reflection_bind_generic_method_parameters):
+       Set `gmethod->reflection_info'.
+
+2004-07-17  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_class_create_from_typedef): Insert the newly
+       created class into the hash table before computing the interfaces
+       since we could be called recursively.
+
+2004-07-16  Ben Maurer  <bmaurer@ximain.com>
+
+       * marshal.[ch] (mono_marshal_get_stelemref): a new wrapper
+       function to implement stelem.ref in managed code
+       * class-internals.h, debug-helpers.c: a new wrapper type
+       for the above.
+
+Wed Jul 14 19:26:05 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * gc.c: allow GC handles to work even when no GC is compiled in.
+       Fix part of bug #61134 (GetAddrOfPinnedObject).
+
+2004-07-13  Peter Williams  <peter@newton.cx>
+       * process.c (complete_path): Make sure we don't attempt to execute
+       directories.
+2004-07-12  Geoff Norton <gnorton@customerdna.com>
+
+        * DateTime.cs: Patch for bug #61112.  Our DateTime wasn't roundtripping over timezone
+          boundaries properly.  This patch checkes ToLocalTime() to see if we're tripping over a boundary
+          and will add/subtract the hour if needed
+
+2004-07-12  Martin Baulig  <martin@ximian.com>
+
+       * reflection.c (mono_field_get_object): If we have
+       `field->generic_info', take the attributes from
+       `field->generic_info->generic_type'.    
+
+2004-07-12  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug.c (mono_debug_init): Don't take a `MonoDomain *'.
+       This function must be called before initializing the runtime.
+       (mono_debug_init_1): New function; call this after initializing
+       the runtime, but before loading the assembly.  It tells the
+       debugger to load corlib and the builtin types.
+
+       * mono-debug-debugger.c: Did some larger changes in the debugging
+       code; support recursive class declarations, make sure we actually
+       add all classes.
+
+2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * debug-helpers.c: undo my previous patch and fixed the real issue in
+       ../mini/exceptions-x86.c
+
+2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
+       when no HOME env. variable was set and a NullRef was thrown in a .cctor
+       called from other .cctors.
+
+2004-07-09  Miguel de Icaza  <miguel@ximian.com>
+
+       * loader.c: Removed the mono_loader_wine_init hack now that we are
+       doing a managed version of Windows.Forms.
+
+2004-07-09  Ben Maurer  <bmaurer@ximian.com>
+
+       * domain.c, gc.c, marshal.c, mono-debug-debugger.c,
+       threadpool.c, threads.c: remove static data from rootset.
+
+2004-07-09  Dick Porter  <dick@ximian.com>
+
+       * locales.c (ves_icall_System_String_InternalReplace_Str_Comp):
+       Don't do any more processing if the matched length was 0.  It was
+       increasing the size of the string before.  Fixes bug 61167.
+
+2004-07-09  Dick Porter  <dick@ximian.com>
+
+       * socket-io.h:
+       * socket-io.c
+       (ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal):
+       Add support for SO_PEERCRED if its available.
+
+2004-07-09  Peter Bartok <pbartok@novell.com>
+       * loader.c: winelib.exe.so error message is now only displayed if
+       MONO_DEBUG is set. To help us avoid questions when people are trying
+       out the new Managed.Windows.Forms.
+
+2004-07-08  Zoltan Varga  <vargaz@freemail.hu>
+
+       * class-internals.h debug-helpers.c marshal.c: Add new wrapper types 
+       for isinst and castclass wrappers.
+
+       * class-internals.h icall.c: Move registration and lookup of JIT icalls
+       to libmetadata from the JIT, so they could be used by the marshalling
+       code and the interpreter.
+
+       * marshal.c: Register marshalling related JIT icalls here instead of
+       in mini.c. Use CEE_MONO_ICALL instead of the family of 
+       CEE_MONO_PROC<x> opcodes to call marshalling functions.
+
+       * metadata.h: Remove unneeded marshalling conversions.
+
+       * opcodes.c: Update for new opcodes.
+       
+2004-07-08  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug.c: Check for `handle->symfile' being non-NULL everywhere.
+       (mono_debug_get_domain_data): Make this function static.
+
+Wed Jul 7 12:32:29 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * gc.c, object.h: add nice GC handle API for embedders.
+
+2004-07-06  Ben Maurer  <bmaurer@ximian.com>
+
+       * reflection.c: more changes for the new api
+
+       * object.c: When we reflect on a field w/ a constant value, it
+       will not have a memory location, so we must access metadata. Also,
+       allow easier reading of strings so that we can read them from
+       the constant data.
+
+       * class.c (mono_class_layout_fields): no need for literal fields here.
+
+       * class-internals.h: api changes for const fields
+
+       * icall.c (ves_icall_get_enum_info): use new apis for const fields
+
+2004-07-06  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug.h: Increment version number to 44.
+
+       * mono-debug.c (mono_debug_add_wrapper): The second argument is
+       now a gpointer, rewrote this whole method.
+
+       * mono-debug-debugger.c (mono_debugger_add_wrapper): New
+       function.  Add information about the wrapper in a new "misc table".
+
+       * mono-debug-debugger.h (MonoDebuggerSymbolTable): Added fields
+       for the new misc table.
+
+2004-07-05  Zoltan Varga  <vargaz@freemail.hu>
+
+       * metadata-internals.h image.c: Add a cache for helper signatures.
+
+       * monosn.c: Applied patch from "grompf" (grompf@sublimeintervention.com). Fix compilation under OSX.
+
+2004-07-03  Zoltan Varga  <vargaz@freemail.hu>
+
+       * marshal.c (mono_marshal_get_managed_wrapper): Handle returning
+       delegates from a delegate. Fixes #61033.
+       
+       * marshal.c: Fix managed->native stringbuilder marshalling. Implement
+       marshalling of stringbuilder arrays. Fixes #59900.
+
+2004-07-02  Zoltan Varga  <vargaz@freemail.hu>
+
+       * icall.c: Add EnumBuilder:setup_enum_type icall.
+
+2004-06-30  Ben Maurer  <bmaurer@ximian.com>
+
+       * icall.c: Added a new icall for the property version of
+       OffsetOfStringData.
+
+2004-06-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * class-internals.h (MonoVTable): Make max_interface_id a guint32 so
+       it has a constant size across platforms.
+
+       * marshal.c (mono_delegate_end_invoke): Avoid crash when there is no
+       stack trace.
+
+2004-06-29  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug.c (mono_debug_add_method): Protect the whole function
+       in mono_debugger_lock(), not just parts of it.
+
+Fri Jun 25 21:36:26 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c: make sure padding bytes in heaps are zeroed.
+
+2004-06-24  David Waite  <mass@akuma.org>
+
+       * appdomain.c, class.c, domain.c, file-io.c, gc.c, icall.c,
+       image.c, loader.c, locales.c, marshal.c, metadata.c,
+       mono-debug.[ch], object.c, reflection.c, security.c, socket-io.c,
+       string-icalls.c, threads.c: change to C90-style comments from C99 /
+       C++ -style
+
+2004-06-24  Dick Porter  <dick@ximian.com>
+
+       * threads.c
+       (ves_icall_System_Threading_Mutex_CreateMutex_internal): Correctly
+       return createdNew.  Fixes bug 60412.
+
+       * threads-types.h: 
+       * icall.c: Add createdNew parameter to CreateMutex icall
+
+Thu Jun 24 16:06:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c, object-internals.h: save default value in params.
+
+2004-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * appdomain.c: for paths in PrivateBinPath that are absolute, there's
+       no need to build a new path combining that with the application base.
+       Fixes bug #60442.
+
+Wed Jun 23 18:36:58 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c: fixed minor standard compliance issues.
+
+Wed Jun 23 17:59:29 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c: fixed issue with encoding some custom attributes
+       (arrays in properties and fields, bug #60411).
+
+2004-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * reflection.c: fix start address when copying the public key token.
+
+2004-06-23  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug-debugger.c (mono_debugger_unhandled_exception): Store
+       the `exc' object in a static object to put it into the GC's root set.
+
+Wed Jun 23 15:37:31 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c: make mono_reflection_setup_internal_class ()
+       callable a second time to setup a new parent class.
+
+2004-06-23  Dick Porter  <dick@ximian.com>
+
+       * threads.c: Check for WAIT_IO_COMPLETION return values.
+
+2004-06-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * appdomain.c: Removed the g_free on the public key token. Now copy 
+       the pk token string into the MonoAssemblyName buffer using g_strlcpy.
+       * assembly.c: Added public key token string value when loading 
+       assemblies. Fix bug #60439.
+       * icall.c: Added missing informations (like public key) in 
+       GetReferencedAssemblies. Fix #60519.
+       * image.h: Changed definition for public key token from const char*
+       public_tok_value to guchar public_key_token [17];
+       * reflection.c: Updated for changes to public key token.
+
+2004-06-22  Lluis Sanchez Gual
+
+       * icall.c: In ves_icall_InternalExecute, when setting a filed, also look 
+       for the field in base classes.
+
+Tue Jun 22 16:48:02 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * mono-debug.h, mono-debug-debugger.h, debug-mono-symfile.h:
+       mark headers as not supported, they are installed only for use by the
+       debugger.
+
+Tue Jun 22 16:32:03 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * *.c, *.h: avoid namespace pollution in public headers.
+
+2004-06-21  Martin Baulig  <martin@ximian.com>
+
+       * exception.c (mono_get_exception_security): It's in
+       "System.Security", not in "System".
+
+       * mono-debug-debugger.c (mono_debugger_add_builtin_types): Add all
+       the exception classes.
+
+2004-06-21  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug-debugger.c (mono_debugger_unhandled_exception):
+       Protect the exception object from being finalized.
+
+2004-06-21  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug-debugger.h (mono_debugger_unhandled_exception): New
+       public function.
+
+2004-06-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * reflection.c: Load the assembly in mono_reflection_type_from_name,
+       if it was not loaded before. Fix parts of #60439.
+
+Mon Jun 21 16:04:43 CEST 2004 Paolo Molaro <lupus@ximian.com>
+
+       * marshal.c, icall.c, object.c, image.c: fix the runtime_invoke ()
+       code that was broken since Ben's change: wrappers are now
+       dependent on the method signature only again.
+
+2004-06-21  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug-debugger.c (write_class): Cleaned this up a bit and
+       added interface support.
+
+2004-06-21  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_vtable_get_static_field_data): New public method.
+
+2004-06-20  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * filewatcher.c : Windows build fix to be compliant with API changes.
 
 Sat Jun 19 19:04:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
 
@@ -10782,3 +11242,4 @@ Tue Jul  3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
        Beta2. 
 
        * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2
+