2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / metadata / ChangeLog
index 6bb4b275df2c470dd73fb634248da48854f22c96..d181478df676a4c7c748e3a3f5f638c8ae00dc9e 100644 (file)
@@ -1,5 +1,299 @@
+2005-01-31  Martin Baulig  <martin@ximian.com>
+
+       * metadata.c (mono_metadata_has_generic_params): New public
+       function; checks whether something is a generic method.
+
+Sun Jan 30 20:19:48 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * appdomain.c: fix infinite recursion when adding assemblies.
+
+2005-01-30  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * object.c: Fix small typo to return all items for Environment.
+       GetCommandLineArgs.
+
+Sun Jan 30 16:49:01 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * domain.c, appdomain.c, assembly.c, image.c, domain-internals.h,
+       reflection.c: more domain and assembly-unload related fixes
+       and memory leaks plugs.
+
+2005-01-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * class.c loader.c security.c loader.h process.c threads.c mono-debug-debugger.c profiler.c marshal.c rand.cpedump.c: Fix 64 bit warnings.
+
+2005-01-29  Ben Maurer  <bmaurer@ximian.com>
+
+       * loader.c (mono_method_signature): Make this method lazy
+       (mono_get_method_from_token): Don't computate the signature here.
+
+       Doing this saves quite a bit of memory. I got 90 kb on starting up
+       monodoc. It should also save some disk reads on startup.
+
+       * *: MonoMethod->signature might be NULL now. You *MUST* use
+       mono_method_signature.
+
+2005-01-29  Zoltan Varga  <vargaz@freemail.hu>
+
+       * object.c (mono_runtime_get_main_args): Return an array from the
+       current domain here. Fixes #71938.
+
+Sat Jan 29 15:59:05 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * monitor.c: formatting changes to comply with the
+       mono coding style and remove #ifdefs from the code.
+
+Sat Jan 29 15:18:54 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * metadata.c, private.h: remove some unneeded data
+       and use a more compact representation for table schemas.
+
+Fri Jan 28 18:23:44 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * metadata.c, metadata-internals.h: add mono_aligned_addr_hash()
+       to get a better distribution in hash tables.
+       * *.c: use mono_aligned_addr_hash() where appropriate.
+       * assembly.c: make var static.
+
+2005-01-28  Zoltan Varga  <vargaz@freemail.hu>
+
+       * domain-internals.h: Put MonoJitInfo on a diet.
+
+       * domain.c: Fix a warning.
+
+Wed Jan 26 22:20:46 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * gc.c: rework the gc handles code to reuse handles
+       when freed.
+
+Wed Jan 26 17:34:09 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * domain.c: fixed long standing bug in mono_string_equal() which
+       was brought to light with the ldstr changes.
+
+2005-01-26  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * reflection.c: Remove warning by adding missing include for marshal.h
+
+Tue Jan 25 18:06:00 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * domain.c, object.c: change the ldstr_table to hold
+       MonoString* as keys: makes the runtime isinterned lookup
+       faster and simplifies memory management.
+
+2005-01-25  Sebastien Pouliot  <sebastien@ximian.com> 
+       * icall.c: Renamed GetEnvironmentVariable so internal* so it was
+       possible to add imperative security checks before calling the icall.
+       * reflection.c: Return security attributes on the original MonoMethod
+       (and not the wrapped one). This fix permissions on icalls.
+
+2005-01-25  Dick Porter  <dick@ximian.com>
+
+       * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData): Make
+       the check for mktime() support actually test the mktime() return
+       value.  "Fixes" bug 71682, though the output is still different to
+       MS.
+
+2005-01-25  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_class_is_assignable_from): Make this work for
+       generic instances.
+
+2005-01-24  Ben Maurer  <bmaurer@ximian.com>
+
+       * marshal.c (mono_string_utf8_to_builder)
+       (mono_string_builder_to_utf16): We might not have ownership of the
+       string. In thise case, we need to create a new buffer.
+
+       * object-internals.h (mono_stringbuilder_capacity): sb->str might
+       be null, in which case, use the default capacity.
+
+Mon Jan 24 16:42:29 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * gc-internal.h, null-gc.c, profiler.c, boehm-gc.c: hook the
+       GC events to the profiler.
+
+Mon Jan 24 15:59:54 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * gc.c: remove valgrind detection nonsense. Set GC_DONT_GC
+       if you don't want the GC to run.
+
+Mon Jan 24 15:53:25 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * Makefile.am, gc.c, mono-gc.h, boehm-gc.c, null-gc.c, gc-internal.h:
+       start providing a GC API and keeping different implementations in
+       their own file.
+       * profiler.h, profiler.c, profiler-private.h: provide the GC events API.
+
+2005-01-22  Ben Maurer  <bmaurer@ximian.com>
+
+       * debug-mono-symfile.c (mono_debug_open_mono_symbol_file): Use
+       mmap rather than allocating a huge buffer.
+       (mono_debug_close_mono_symbol_file): Free the buffer allocated
+       above.
+
+2005-01-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * icall.c: Add new internal calls for SecurityManager.SecurityEnabled
+       and CheckExecutionRights.
+       * reflection.c|h: Keep the index of the declarative security to be 
+       used, instead of the pointer, when AOT compiler is used. Also add 
+       class initialization when requesting demands.
+       * security-manager.c|h: Implement SecurityManager.SecurityEnabled and
+       CheckExecutionRights. Both properties are now FALSE by default, and
+       unmodifiable, unless the --security option is used.
+
+Fri Jan 21 15:29:27 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * domain.c, appdomain.c, assembly.c, image.c, metadata-internals.h,
+       reflection.c: properly refcount images and assemblies, many leaks fixed.
+
+2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * threadpool.c: increase the timeout for threads in the thread pool to
+       10s.  Fixes bug #67159.
+
+2005-01-20  Bernie Solomon  <bernard@ugsolutions.com>
+
+       * class-internals.h: Sun's compiler insists on explicit
+       signed on bit fields to handle then correctly.
+
+2005-01-19  Miguel de Icaza  <miguel@ximian.com>
+
+       * file-io.c (ves_icall_System_IO_MonoIO_get_InvalidPathChars):
+       Make the size of the array fit only the number of invalid path
+       chars that we have.
+
+       * class.c (_mono_class_get): Improve the error reporting when a
+       class referenced is not found, to assist debugging. 
+
+Wed Jan 19 19:57:43 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * threads.c: fix off-by-one error.
+       * domain.c: free data allocated in the domain.
+
+2005-01-19  Zoltan Varga  <vargaz@freemail.hu>
+
+       * reflection.c (mono_method_body_get_object): Fill out exception info
+       as well.
+
+       * object-internals.h: Add MonoReflectionExceptionHandlingClause 
+       structure.
+       
+2005-01-19  Martin Baulig  <martin@ximian.com>
+
+       * loader.c (mono_get_method_constrained): Make this work again.
+
+2005-01-19  Zoltan Varga  <vargaz@freemail.hu>
+
+       * object-internals.h (_MonoReflectionMethodBody): Make local_index a 
+       guint16 to match the managed side.
+
+       * reflection.c (mono_reflection_body_get_object): Fill out local
+       variables array.
+
+       * reflection.c (mono_method_body_get_object): Fill out local_var_sig_token
+       as well.
+
+       * object-internals.h (_MonoReflectionMethodBody): Rename 'sig_token' to
+       'local_var_sig_token'.
+
+2005-01-18  Zoltan Varga  <vargaz@freemail.hu>
+
+       * loader.c (mono_lookup_pinvoke_call): Revert the previous patch as it breaks 
+       System.Drawing.
+
+       * reflection.c (mono_method_body_get_object): Handle abstract and
+       runtime methods.
+
+Mon Jan 17 19:22:39 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * marshal.c, loader.c, class-internals.h, reflection.c:
+       store the emthod data for a wrapper in an array instead of a list.
+
+Mon Jan 17 18:48:53 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * marshal.c: change the code to allocate memory more
+       conservatively for method wrappers.
+
+Mon Jan 17 18:03:30 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * class-internals.h, marshal.c: move the str_to_ptr and ptr_to_str
+       fields from MonoClass to the marshal info structure where they belong.
+
+Mon Jan 17 16:14:46 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * class.c, object.c, class-internals.h, marshal.c: rearrange
+       some fields and tweak some types to lower memory usage.
+
+2005-01-17  Zoltan Varga  <vargaz@freemail.hu>
+
+       * threads.c (signal_thread_state_change): Handle the case when the
+       target thread is the current thread.
+
+       * marshal.c (mono_struct_delete_old): Do not free lpwstr fields.
+
+       * marshal.c: Rename emit_ptr_to_str_conv and its pair to 
+       emit_ptr_to_object_conv. 
+
+       * marshal.c (emit_ptr_to_object_conv): Add support for lpwstr->str
+       marshalling. Fixes #71352.
+
+Mon Jan 17 10:59:20 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * metadata.h, blob.h: move table enum to blob.h so it can be included
+       in any header.
+       * image.c, metadata.c, metadata-internals.h, pedump.c, reflection.c:
+       cut the size of MonoImage/MonoDynamicImage.
+
+2005-01-16  Zoltan Varga  <vargaz@freemail.hu>
+
+       * profiler.c (mono_profiler_install_simple): Fix default arguments.
+
+Sun Jan 16 12:25:22 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * reflection.c, reflection.h, icall.c: add a function to check
+       if an attribute type is defined for a metadata object.
+
+2005-01-14  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * object-internals.h: Added some needed fields from StringBuilder class.
+       * marshal.c: Set the maxCapacity when creating a StringBuilder.
+
+2005-01-13  Zoltan Varga  <vargaz@freemail.hu>
+
+       * icall.c (ves_icall_System_Environment_Exit): Suspend all managed
+       threads before shutting down the runtime.
+
+       * threads.c (mono_thread_suspend_all_other_threads): New helper function.
+
+Thu Jan 13 18:16:35 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+       * object-internal.h, threads.c: implement stacksize and 
+       parameterized thread start functionality (requires
+       matching corlib). Marked broken code for later removal.
+
 2005-01-12  Martin Baulig  <martin@ximian.com>
 
+       * class-internals.h (MonoGenericClass): Moved the `initialized'
+       flag to MonoDynamicGenericClass, removed `init_pending'.
+       (MonoGenericInst): Added `is_reference' flag.
+
+2005-01-12  Zoltan Varga  <vargaz@freemail.hu>
+
+       * reflection.c (mono_image_create_pefile): Only set the pe_offset
+       inside the MSDOS header. Fixes #71201.
+
+       * gc.c (mono_gc_cleanup): Handle the case when this is called from the
+       gc thread.
+       (mono_domain_finalize): Ditto.
+
+2005-01-12  Martin Baulig  <martin@ximian.com>
+
+       * class.c (mono_get_shared_generic_class): Use the cache for
+       non-dynamic generic classes.
+
        * class-internals.h (mono_class_create_generic_2): Removed
        function prototype, this function is now static inside class.c.