2008-03-24 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / metadata / ChangeLog
index 99480f40b2a8967e6d670a6936cb5dbeb3b00bfe..ccc074a2cc59a41fde68805cf60c33535d643ac1 100644 (file)
@@ -1,3 +1,201 @@
+2008-03-24 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c: Implemented readonly prefix and verify controled mutability pointers.
+
+2008-03-20  Kornél Pál  <kornelpal@gmail.com>
+
+       * file-io.c, filewatcher.c, threadpool.c, threads.c: Removed Windows
+       version macros.
+
+2008-03-20  Mark Probst  <mark.probst@gmail.com>
+
+       * generic-sharing.c, class-internals.h: Code for putting
+       reflection types into the runtime generic context.
+
+2008-03-19 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * icall.c (ves_icall_get_method_info): Return correct values for the call convention.
+       Fixes #340662. 
+
+
+2008-03-17 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c (VerifyContext): Added instruction prefix data to the struct.
+
+       * verify.c (is_compatible_boxed_valuetype): Don't check if the type is a valuetype, been boxed is enough.
+
+       * verify.c (do_invoke): Support constrained callvirt form. Grouped similar checks together.
+
+       * verify.c (do_cast): Let the result value keep the boxed status.
+
+       * verify.c (mono_method_verify): Add proper support for prefixed and implement contrained.
+
+2008-03-17  Jb Evain  <jbevain@novell.com>
+
+       * reflection.c: when running on a 2.0 runtime, emit
+       unconditionally the #~ header version as 2.0, and the
+       CLI header version as 2.5, for symmetry's sake with csc.
+
+2008-03-16  Zoltan Varga  <vargaz@gmail.com>
+
+       * class.c: Remove the unused cache_interface_offsets stuff.
+
+       * class.c loader.c domain.c verify.c metadata.c debug-helpers.c threadpool.c
+       profiler.c: Fix warnings.
+
+2008-03-16  Mark Probst  <mark.probst@gmail.com>
+
+       * generic-sharing.c, class-internals.h: Support for putting
+       methods into the runtime generic context.
+
+2008-03-16  Zoltan Varga  <vargaz@gmail.com>
+
+       * class.c (mono_class_setup_fields): Ignore calls made to this function for
+       classes which are generic instances of not-yet finished typebuilders. Fixes
+       #351172.
+
+       * reflection.c (fixup_method): Add support for FieldOnTypeBuilderInst.
+
+2008-03-15  Zoltan Varga  <vargaz@gmail.com>
+
+       * metadata-internals.h (MonoDynamicImage): Add 'generic_def_objects' hash table.
+
+       * class-internals.h (MonoMethodInflated): Remove the rarely used reflection_info
+       field, replace it with a hash table in MonoDynamicImage.
+
+       * reflection.c (inflate_mono_method): Access the generic definition object from
+       image->generic_def_objects instead of imethod->reflection_info.
+
+       * reflection.c (mono_reflection_bind_generic_method_parameters): Ditto. 
+
+       * icall.c (ves_icall_MonoMethod_GetGenericMethodDefinition): Ditto.
+       
+       * image.c (mono_image_close): Move the dynamic image freeing code to a separate
+       function in reflection.c so it is easier to keep in sync with the dynamic image
+       creation code.
+
+       * reflection.c (mono_dynamic_image_free): New internal function, extracted from
+       mono_image_close ().
+
+2008-03-15  Mark Probst  <mark.probst@gmail.com>
+
+       * class.c (mono_class_generic_sharing_enabled): Disable generic
+       sharing for all architectures except AMD64 and x86 to fix build.
+
+2008-03-14 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c: Use the generic definition MonoGenericContext when available.
+       Remove code for checking generics instance compatibility in favor of
+       mono_class_is_assignable_from.
+
+2008-03-14  Mark Probst  <mark.probst@gmail.com>
+
+       * marshal.c, marshal.h, metadata-internals.h, image.c,
+       wrapper-types.h: New wrapper for invoking a shared static method
+       without having to pass the runtime generic context argument.
+
+2008-03-14 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * icall-def.h: Add missing function PerformanceCounterCategory::GetInstanceNames.
+
+2008-03-14  Zoltan Varga  <vargaz@gmail.com>
+
+       * reflection.c (mono_image_get_field_on_inst_token): Add caching.
+       
+       * reflection.c (mono_image_get_field_on_inst_token): New helper function to
+       create a token from a FieldOnTypeBuilderInst.
+       (mono_image_create_token): Handle FieldOnTypeBuilderInst.
+       (resolve_object): Ditto.
+
+       * object-internals.h (MonoReflectionFieldOnTypeBuilderInst): New structure
+       mirroring System.Reflection.Emit.FieldOnTypeBuilderInst.
+
+2008-03-14  Martin Baulig  <martin@ximian.com>
+
+       * mono-debug.h (MONO_DEBUGGER_VERSION): Bump to 68.
+
+       * debug-mono-symfile.h
+       (MONO_SYMBOL_FILE_VERSION): Bump to 41.
+       (MONO_SYMBOL_FILE_COMPATIBILITY_VERSION): New #define.
+
+2008-03-10  Martin Baulig  <martin@ximian.com>
+
+       * debug-mono-symfile.h
+       (MonoSymbolFileMethodAddress): Removed `num_lexical_blocks' and
+       `lexical_block_table_offset'.
+       (MonoDebugMethodInfo): Removed `num_lexical_blocks' and
+       `lexical_blocks'.
+       (MonoSymbolFile): Added `version'.
+
+       * mono-debug.h
+       (MonoDebugLexicalBlockEntry): Removed.
+       (MonoDebugMethodJitInfo): Removed `num_lexical_blocks' and
+       `lexical_blocks'.
+
+       * mono-debug.c (mono_debug_add_method): Don't compute lexical
+       blocks here; the debugger now does this internally.
+
+2008-02-27  Martin Baulig  <martin@ximian.com>
+
+       * object.c (mono_runtime_exec_main): Call
+       `mono_debugger_event (MONO_DEBUGGER_EVENT_REACHED_MAIN)' and
+       `mono_debugger_event (MONO_DEBUGGER_EVENT_MAIN_EXITED)' here.
+
+2008-03-12 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c (verify_type_compatibility_full): Allow native int to be converted
+       to native pointer in non-strict mode. Required to "(IntPtr)null" work.
+
+2008-03-12 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c (verify_ldftn_delegate): Accept a sealed type when using
+       ldftn with a virtual method.
+
+2008-03-13  Geoff Norton  <gnorton@novell.com>
+
+       * decimal.c:  Only include memory.h if the platform has it.
+
+Wed Mar 12 12:11:06 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * assembly.c, class.c, metadata-internals.h: make sure public key
+       tokesns are compared in a case-insensitive way. Also, all
+       the lookups in the GAC use a lowercase public key token
+       (gaacutil already does the lowercasing on install). Fixes
+       bug #369541.
+
+2008-03-11 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c (mono_delegate_signature_equal): Do proper variance check on arguments
+       and return value.
+
+Tue Mar 11 17:41:38 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * image.c: when someone loads a mscorlib from a file, return the
+       currently loaded mscorlib (fixes bug #369253).
+
+Tue Mar 11 16:47:32 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * class.c: handle types with no parents by forcing them to have
+       System.Object as a parent and marking them as broken (this currently
+       allows the first part of bug #369173 to work as well, likely because
+       we don't check for typeload exceptions everywhere yet).
+
+Tue Mar 11 15:23:54 CET 2008 Paolo Molaro <lupus@ximian.com>
+
+       * class.c: more complete check that types belong to corlib
+       (fixes second part of bug #369173).
+
+2007-03-10  Bill Holmes  <billholmes54@gmail.com>
+
+       * generic-sharing.c:  Including glib.h for the MSVC builds to define
+         "inline" to "__inline" before including mono-membar.h.
+         
+       * mono-perfcounters.c:  Adding HAVE_SYS_TIME_H check for MSVC builds.
+         Rename "Unknown" to "CatTypeUnknown" to avoid name collisions for 
+         MSVC builds.
+
+       Contributed under MIT/X11 license.
+
 2008-03-10 Rodrigo Kumpera  <rkumpera@novell.com>
 
        * verify.c (do_invoke_method): Remove return type validation.