2009-11-22 Miguel de Icaza <miguel@novell.com>
[mono.git] / mono / metadata / ChangeLog
index 8f8bc04c7d444669f2a883b3a18c4d8995e8e9fa..55d1b619c8708b954c3d935e6d59d55e9c963589 100644 (file)
@@ -1,3 +1,272 @@
+2009-11-22  Miguel de Icaza  <miguel@novell.com>
+
+       * file-io.c: Surface a smart FindFirst/FindNext/FindClose API to
+       the managed world.
+
+       * icall-def.h: New entry points.
+       
+2009-11-19  Mark Probst  <mark.probst@gmail.com>
+
+       * process.c: Don't put references to managed objects into a
+       g_ptr_array.
+
+2009-11-18  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * class.c (can_access_internals): Allow CoreCLR to participate in
+       allowing (or not) [InternalsVisibleTo] between assemblies.
+       * security-core-clr.c|h: Make sure that only trusted code (a 
+       superset of platform code) can access the internals of platform
+       code.
+
+Mon Nov 16 16:28:11 CET 2009 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c: use the correct base class to get the virtual method
+       "get_UnderlyingSystemType" and speed up the icall. Fixes bug #555013.
+
+2009-11-16  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * security-core-clr.c (get_caller_no_reflection_related): 
+       [Mono]Type.InvokeMember is outside System.Reflection[.Emit] but
+       it's still reflection and must be filtered correctly.
+
+2009-11-16  Mark Probst  <mark.probst@gmail.com>
+
+       * object.c (compute_class_bitmap): Fix for large bitmaps.
+
+2009-11-15  Zoltan Varga  <vargaz@gmail.com>
+
+       (mono_gc_get_suspend_signal): Fix the build with a system libgc.
+
+       * boehm-gc.c (mono_gc_base_init): Applied patch from DKoushik K. Dutta (
+       koush@koushikdutta.com). Disable GC_no_dls on android.
+
+2009-11-12  Mark Probst  <mark.probst@gmail.com>
+
+       * sgen-gc.c (find_tlab_next_from_address): Handle the case where
+       tlab_next points outside the TLAB because the allocator was
+       interrupted.
+
+2009-11-09  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * reflection.c (mono_image_module_basic_init): Handle exceptions correctly.
+
+2009-11-09  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * object-internals.h: Change signature for mono_string_to_utf8_image.
+
+       * object.c (mono_string_to_utf8_image): Change signature to take a MonoError
+       argument.
+
+       * reflection.c: Take care of mono_string_to_utf8_image change and avoid raising
+       exceptions due to mono_string_to_utf8.
+
+2009-11-09  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * object-internals.h: Change signature for mono_string_to_utf8_mp.
+
+       * object.c (mono_remote_class): Make sure all resources are released before
+       raising an exception.
+
+       * object.c (mono_print_unhandled_exception): Avoid raising an exception.
+
+2009-11-09  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * mono-perfcounters.c (network_get_impl): Change variable initialization
+       ordering to fix potential memory leak in case of exceptions.
+
+       * mono-perfcounters.c (mono_perfcounter_create): Properly handle badly
+       encoded strings.
+       
+2009-11-09  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * file-io.c (ves_icall_System_IO_MonoIO_GetFileSystemEntries): Change
+       variable initialization ordering to fix potential memory leak in case
+       of exceptions.
+
+2009-11-09  Zoltan Varga  <vargaz@gmail.com>
+
+       * icall.c (mono_ArgIterator_Setup): Remove the MONO_ARCH_REGPARMS stuff, its not
+       needed.
+
+2009-11-07  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * appdomain.c: Fix shadow path code to better deal with exceptions.
+
+2009-11-07  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * appdomain.c: Use checked version of mono_string_to_utf8 to avoid raising an
+       exception in the middle of the runtime code.
+
+2009-11-07  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * icall.c (ves_icall_System_Environment_InternalSetEnvironmentVariable): Don't
+       leak memory with broken envvar value.
+
+2009-11-06  Mark Probst  <mark.probst@gmail.com>
+
+       * reflection.c (mono_reflection_setup_internal_class): Because
+       nested classes are not added to the name cache, we must put them
+       in the reflection_info_unregister_classes list.
+
+2009-11-05  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * class.c: When CoreCLR is enabled don't call mono_init_com_types
+       if MONO_CLASS_IS_IMPORT return true unless the type reside in 
+       platform (trusted) code. Instead we return a TypeLoadException to
+       be thrown later. This is the exception thrown by Silverlight 2 if
+       a type, inside application (user) code is marked with [ComImport]
+
+2009-11-05  Zoltan Varga  <vargaz@gmail.com>
+
+       * icall.c (ves_icall_System_Diagnostics_Debugger_IsAttached_internal): Call
+       mono_is_debugger_attached () too.
+
+       * mono-debug.c (mono_is_debugger_attached): New helper function.
+       (mono_set_is_debugger_attached): Ditto.
+
+2009-11-05  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * object-internals.h: Add mono_string_to_utf8_checked.
+
+       * object.c: Implement mono_string_to_utf8_checked.
+
+2009-11-05  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * class.c: Add missing check for load errors after every
+       call to mono_class_setup_fields
+
+       Fixes #552282.
+
+2009-11-05  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       metadata-verify.c (verify_tables_schema): Fix the error message.
+
+2009-11-05  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * metadata.c: Change event table schema to use TDOR for event type
+       as this is what it's meant to be.
+
+       * metadata.c (mono_metadata_compute_size): Change MONO_TABLE_ASSEMBLYPROCESSOR
+       to MONO_TABLE_ASSEMBLYREFPROCESSOR, which is table that has a MONO_MT_TABLE_IDX
+       entry.
+
+       * metadata.c (mono_metadata_compute_size): Trim MT_TABLE_IDX of code that no
+       longer makes sense: remove MONO_TABLE_EVENT and remove checks for non-existent
+       rows in MONO_TABLE_GENERICPARAM.
+
+       Fixes #552289.
+
+2009-11-05  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * class.c (mono_image_add_to_name_cache): Assert on duplicate
+       insertion.
+
+       * reflection.c (mono_reflection_setup_internal_class): Avoid
+       registering a gc root the same MonoClass multiple times.
+       Don't register nested types on the global scope as they should
+       not be available there.
+
+2009-11-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * culture-info-tables.h: regenerated.
+
+2009-11-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * debug-helpers.c: avoid g_strdup() in mono_type_full_name().
+
+2009-11-04  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * string-icalls.c|h: Remove string internal calls that are not 
+       used anymore by the class libraries.
+       * icall.c: Remove System_Reflection_FieldInfo_internal_from_handle
+       which is not used in the class librairies.
+       * icall-def.h: Update tables.
+
+2009-11-04  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * class.h: Move mono_class_inflate_generic_type_checked...
+
+       * class-internals.h: to here and make it internal. We don't want to
+       further expose MonoGenericContext. 
+
+2009-11-04  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c (mono_method_verify): Improve error message.
+
+2009-11-04  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * reflection.c (fieldref_encode_signature): If field_image is NULL then
+       the token is already properly encoded. Fixs 4.0 build.
+
+2009-11-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * locales.c (construct_number_format): Check if the number index is
+       valid before trying to use it, if not, just return.
+       
+2009-11-04  Zoltan Varga  <vargaz@gmail.com>
+
+       * marshal.c (mono_marshal_get_runtime_invoke): Don't reset abort exceptions,
+       since that loses the abort state. Fixes #539394.
+
+2009-11-03  Zoltan Varga  <vargaz@gmail.com>
+
+       * marshal.c (mono_marshal_get_native_wrapper): For icall wrappers, add an
+       explicit this argument to the call signature.
+       (mono_marshal_get_icall_wrapper): Ditto.
+
+2009-11-03  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * reflection.c (fieldref_encode_signature): Add new field_image parameter
+       to indicate which assembly to use when resolving a custom-mod.
+
+       Fixes handling of volatile fields used across assemblies as reported in #551513.
+
+2009-11-03  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * loader.c: Improve error messages.
+
+2009-11-03  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * class.c (mono_class_setup_methods): Only give a slot for virtual methods
+       of interfaces. Fixes IKVM.
+
+       * class.c (mono_class_setup_vtable_general): Improve debug spew.
+
+2009-11-03  Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * verify.c (verifier_inflate_type): Return the inflated type on success.
+
+2009-11-02  Zoltan Varga  <vargaz@gmail.com>
+
+       * debug-mono-symfile.c (check_line): Fix the handling of IL offset 0.
+
+       * threads.c (mono_thread_attach): Call the profiler thread start callback.
+
+       * object-internals.h (_MonoThreadInternal): Add a 'flags' field.
+
+       * threads.c (build_wait_tids): Ignore threads which have the DONT_MANAGE
+       flag set.
+
+       * profiler.c: Add new profiler callbacks for runtime invoke.
+
+       * object.c (mono_runtime_invoke): Call the runtime invoke callbacks.
+
+2009-11-01  Mark Probst  <mark.probst@gmail.com>
+
+       * sgen-gc.c: Keep track of the reason for a major collection and
+       write it to the heap-dump file.
+
+2009-10-31  Miguel de Icaza  <miguel@novell.com>
+
+       * threads.c: refactor the code that initializes the
+       thread_start_args into a reusable function and use this in the two
+       methods that start up threads.
+
+2009-10-31  Zoltan Varga  <vargaz@gmail.com>
+
+       * appdomain.c (mono_domain_try_unload): Applied patch from Romain Tartière.
+       Fix returning when WaitForSingleObjectEx returns WAIT_IO_COMPLETION.
+
 2009-10-31 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * mono-perfcounters.c: add the "_Total" instance for CPU counters.