+2009-06-04 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-gc.c: Do TLS using pthread API if __thread keyword is not
+ supported.
+
+2009-06-04 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-gc.c: Disable TLA and managed allocation if the __thread
+ keyword is not supported.
+
+2009-06-03 Zoltan Varga <vargaz@gmail.com>
+
+ * marshal.c (get_wrapper_target_class): New helper function.
+ (mono_marshal_get_runtime_invoke): Place runtime-invoke wrappers into
+ the <Module> class of the image. Fixes #509049.
+
+2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * threads.c (ves_icall_System_Threading_Thread_Sleep_internal):
+ Check if the thread was interrupted and proccess it straight away.
+ Makes abortion much more responsive.
+
+2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * threads.c (mono_thread_execute_interruption): Use atomic cas with
+ MonoThread::interruption_requested to match it's counterpart.
+
+ Fixes a hang in abort-stress-1 on a 2 core x86.
+
+ * threads.c (ves_icall_System_Threading_Thread_GetAbortExceptionState):
+ Fix warning.
+
+2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
+
+ Change MonoImage::name_cache to be protected by the image lock
+ instead of the loader lock.
+
+ * appdomain.c (deregister_reflection_info_roots): Protect access
+ to name_cache.
+
+ * class.c (mono_image_init_name_cache): Change from the loader lock
+ to the image lock. Check if the cache wasn't already created.
+
+ * class.c: Change from the loader to the image lock.
+
+ * icall.c (ves_icall_System_Reflection_Assembly_GetNamespaces): Fix
+ the code to hold the image lock while iterating over name_cache and
+ not go into mono_array_new holding it.
+
+ * metadata-internals.h: Add a comment about this change.
+
+2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
+ Under the 2.0 profile raise the loader error.
+
+ Fixes #508532.
+
+2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * marshal.c (mono_marshal_get_runtime_invoke): Emit the right kind
+ of ldind opcode for generic instances so we don't fail for direct wrappers.
+ This only affect direct calls.
+
+2009-05-31 Zoltan Varga <vargaz@gmail.com>
+
+ * reflection.c (create_dynamic_mono_image): Fix warnings.
+
+ * generic-sharing.c (other_info_equal): Ditto.
+
+2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Implement field signature check.
+
+2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Implement standalone signature check.
+
+2009-05-28 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Implement methodref signature check.
+
+2009-05-28 Zoltan Varga <vargaz@gmail.com>
+
+ * object-internals.h (MonoRuntimeCallbacks): New structure containing
+ callbacks supplied by the runtime.
+
+ * object.c (mono_install_callbacks): New internal function to install
+ the callbacks.
+
+ * object.c (mono_create_ftnptr): Move the implementation of this to
+ mini/.
+
+ * object.c (mono_get_addr_from_ftnptr): Ditto.
+
+2009-05-27 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (parse_return_type): Proper byref check.
+ * metadata-verify.c (is_valid_method_signature): Check for zero arity
+ generic signatures and method params.
+
+2009-05-27 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (decode_signature_header): Fix bounds check.
+
+ * metadata-verify.c (parse_custom_mods): Check custom mods.
+
+ * metadata-verify.c (parse_type): Do initial basic verification
+ of valid values.
+
+ * metadata-verify.c (is_valid_method_signature): Parse the generic
+ param count.
+
+2009-05-26 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * icall.c (ves_icall_Type_GetMethodsByName): Virtual methods should be
+ discarded based on their most specific definition so we set the method_slots
+ array before checking if the method is acceptable or not.
+
+ Fixes #506757.
+
+2009-05-26 Mark Probst <mark.probst@gmail.com>
+
+ * icall.c: Free the old array when resizing a mono_ptr_array.
+
+2009-05-26 Mark Probst <mark.probst@gmail.com>
+
+ * reflection.c (create_dynamic_mono_image): Use mono_object_hash()
+ for the hashes whose keys are managed objects.
+
+2009-05-26 Mark Probst <mark.probst@gmail.com>
+
+ * object-internals.h, threads.c: Set the execution context on
+ thread start here, not in corlib.
+
+ * appdomain.c: Bump corlib version.
+
+2009-05-27 Martin Baulig <martin@ximian.com>
+
+ * mono-debug.c (mono_debug_init): Use `MONO_DEBUG_FORMAT_DEBUGGER'
+ if `_mono_debug_using_mono_debugger' is set to make things work
+ properly when embedding Mono.
+
+2009-05-25 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * class.c (mono_class_setup_fields): Don't mark simd types as having
+ 16 bytes alignment as the whole runtime doesn't support.
+
+2009-05-25 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (safe_read): Use endian safe read macros.
+
+2009-05-25 Zoltan Varga <vargaz@gmail.com>
+
+ * object.c (mono_create_ftnptr): Don't allocate from the code mempool since
+ it is read-only when using full aot.
+
+2009-05-22 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (is_valid_method_signature): Verify parts
+ of the return type. Provide an error message in case of failure.
+
+2009-05-22 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (is_valid_method_signature): Verify the call conv.
+
+2009-05-22 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Include the size prefix in the bounds check.
+
+2009-05-22 Miguel de Icaza <miguel@novell.com>
+
+ * icall.c: Remove warnings.
+
+ * mono-config.c: Allow for CONFIG_CPU to be set in config.h and
+ prevent auto-detection based on GCC defines.
+
+ Add PS3
+
+ * metadata-verify.c: Do not include signal.h
+
+ * generic-sharing.c, marshal.c: Add returns to avoid some warning
+ messages. Not sure why the g_assert_not_reached is not enough to
+ quiet the compiler.
+
+
+ * appdomain.c: Remove code that is not used when
+ DISABLE_SHADOW_COPY is set.
+
+ * image.c: use g_getenv
+
+2009-05-21 Miguel de Icaza <miguel@novell.com>
+
+ * reflection.c: Remove code that it not used with
+ DISABLE_REFLECTION_EMIT is defined.
+
+2009-05-21 Zoltan Varga <vargaz@gmail.com>
+
+ * marshal.c (mono_marshal_get_runtime_invoke): Share more runtime
+ invoke wrappers.
+
+2009-05-20 Miguel de Icaza <miguel@novell.com>
+
+ * socket-io.c
+ (ves_icall_System_Net_Sockets_Socket_Available_internal): Remove
+ the ifdef here and instead put that on io-layer
+
+2009-05-19 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the generic param constraint table.
+
+2009-05-19 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (verify_generic_param_table): Fix
+ thinko on the valid flags bits for generic params.
+
+2009-05-19 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the methodspec table.
+
+2009-05-19 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the generic param table.
+
+2009-05-19 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-gc.c: Store and use the count with REMSET_VTYPE.
+
+2009-05-19 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-gc.c: Use generation enum more consistently and use the
+ correct generation in mono_gc_register_for_finalization().
+
+2009-05-18 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the nested class table.
+
+2009-05-18 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the manifest resource table.
+
+2009-05-17 Zoltan Varga <vargaz@gmail.com>
+
+ * debug-helpers.c (dis_one): Add little-endian support for ldstr.
+
+2009-05-16 Zoltan Varga <vargaz@gmail.com>
+
+ * class.c (mono_class_get_vtable_entry): Avoid adding static-rgctx
+ wrappers, this is now done in the JIT.
+
+ * class.c (mono_set_generic_sharing_supported): New internal function.
+ (mono_class_generic_sharing_enabled): Move the #ifdef stuff to the JIT.
+
+2009-05-15 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the exported type table.
+
+2009-05-15 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * pedump.c (main): Fake an assembly for netmodules to make the verifier happy.
+
+2009-05-15 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the file table.
+
+2009-05-15 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (verify_assembly_table): Fix an error message.
+
+ * metadata-verify.c: Verify the assemblyref table.
+
+2009-05-15 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c (verify_assembly_table): Fix the valid
+ bits mask for flags.
+
+2009-05-15 Zoltan Varga <vargaz@gmail.com>
+
+ * debug-helpers.c (mono_method_full_name): Print generic parameters of
+ generic methods as well.
+
+2009-05-15 Geoff Norton <gnorton@novell.com>
+
+ * gc.c: MachO/Darwin supports and uses semaphores fine for this
+ use-case and is significantly more performant than the wapi layer.
+
+2009-05-13 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the assembly table.
+
+2009-05-13 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Fix rows limit check.
+
+2009-05-13 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the fieldrva table.
+
+2009-05-13 Mark Probst <mark.probst@gmail.com>
+
+ * sgen.c: Speed up weak links and finalizers by grouping them by
+ generation.
+
+2009-05-13 Mark Probst <mark.probst@gmail.com>
+
+ * marshal.c (delegate_hash_table_add): When overwriting an entry,
+ free the old GCHandle (only applies to SGen).
+
+2009-05-13 Zoltan Varga <vargaz@gmail.com>
+
+ * loader.c (mono_get_method_from_token): Avoid the expensive call to
+ mono_metadata_load_generic_params () for non-generic methods.
+
+2009-05-12 Mark Probst <mark.probst@gmail.com>
+
+ * monitor.c, monitor.h (mono_monitor_get_object_monitor_weak_link):
+ New function for returning a monitor's weak link if it has one.
+
+ * sgen-gc.c: Remove an object's monitor's weak link (if it has
+ one) when clearing a domain. These can still be around because
+ the object might not have been collected.
+
+2009-05-12 Zoltan Varga <vargaz@gmail.com>
+
+ * gc.c: Fix a warning.
+
+2009-05-12 Kornél Pál <kornelpal@gmail.com>
+
+ * gc.c (mono_gc_init): Set gc_thread on creation. This avoids the
+ prevous wait that resulted in a deadlock on Windows when initializing
+ the runtime form DllMain. Also results in improved startup time.
+ (finalizer_thread): Get rid of thread_started_event.
+ * threads.c, threads-types.h (mono_thread_create_internal): Return the
+ resulting MonoThread.
+
+ Contributed under MIT/X11 license.
+
+2009-05-11 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * metadata-verify.c: Verify the implmap table.
+ Don't require that #US and #Strings be present.
+
+2009-05-11 Sebastien Pouliot <sebastien@ximian.com>
+
+ * security-core-clr.c: Delegate checks are done at creation time,
+ not a invocation time. Fix exception for Telerik Silverlight demo
+
+2009-05-11 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-gc.c (need_remove_object_for_domain): Remove the special
+ case for the Thread class.
+
+ * threads.c: Do clean-up of abort exception/state in
+ thread_cleanup() instead of Thread.free_internal(). Also clean up
+ current_appcontext. The reason we have to do that is because
+ those references might point into another domain and if that
+ domain is unloaded before the thread is finalized, they point to
+ invalid data.
+
+2009-05-10 Andreas Faerber <andreas.faerber@web.de>
+
+ * null-gc.c (mono_gc_weak_link_add, mono_gc_clear_domain): Fix
+ stub signatures.
+
+ Contributed unter MIT/X11 license.
+
2009-05-09 Miguel de Icaza <miguel@novell.com>
* verify.c, metadata-verifier.c: Add support for disabling the
Fixes #448560.
-2008-11-29 Kornél Pál <kornelpal@gmail.com>
+2008-11-29 Kornél Pál <kornelpal@gmail.com>
* coree.c (MonoFixupExe): Use sizeof(IMAGE_BASE_RELOCATION) instead of
IMAGE_SIZEOF_BASE_RELOCATION as newer Vista SDKs no longer define the latter.
for the no-gc case.
* attach.c (mono_attach_init): Remove the #ifdef.
-2008-10-04 Andreas Färber <andreas.faerber@web.de>
+2008-10-04 Andreas Färber <andreas.faerber@web.de>
* attach.c (mono_attach_init): Don't use
mono_gc_add_finalizer_thread_callback when compiling without GC.
(mono_image_get_generic_field_token): Call add_custom_modifiers ().
(fieldbuilder_to_mono_class_field): Ditto. Fixes #424663.
-2008-09-19 Kornél Pál <kornelpal@gmail.com>
+2008-09-19 Kornél Pál <kornelpal@gmail.com>
* coree.c (_CorValidateImage): Some 64-bit IL only images have entry point
calling _CorDllMain imported from mscoree.dll. Set entry point RVA to 0 for
(ves_icall_System_Diagnostics_Process_ProcessHandle_duplicate):
New internal calls to duplicate and close a process handle.
-2008-07-27 Andreas Färber <andreas.faerber@web.de>
+2008-07-27 Andreas Färber <andreas.faerber@web.de>
* object.c (CHECK_ADD_OVERFLOW_UN): Add missing bracket. Fixes #412499.
* class-internals.h: New exception type MONO_EXCEPTION_OBJECT_SUPPLIED
for the case where the exception object is supplied.
-2008-07-16 Kornél Pál <kornelpal@gmail.com>
+2008-07-16 Kornél Pál <kornelpal@gmail.com>
* coree.h: Define __ImageBase as _image_base__ on cygwin that fixes build with
old ld versions.
* domain.c: Initialize+cleanup jit_code_hash_lock.
-2008-06-30 Kornél Pál <kornelpal@gmail.com>
+2008-06-30 Kornél Pál <kornelpal@gmail.com>
* coree.c (mono_load_coree): Set coree_module_handle global variable only
after initialization.
Contributed under MIT/X11 license.
-2008-06-30 Kornél Pál <kornelpal@gmail.com>
+2008-06-30 Kornél Pál <kornelpal@gmail.com>
* coree.c (_CorValidateImage): Retain IMAGE_DIRECTORY_ENTRY_SECURITY
because that is platform independent. Check NumberOfRvaAndSizes in PE32
* object.c (mono_value_box): Fix boxing of nullables.
-2008-06-26 Kornél Pál <kornelpal@gmail.com>
+2008-06-26 Kornél Pál <kornelpal@gmail.com>
* assembly.c (mono_set_rootdir): Use __ImageBase instead of
mono_module_handle that is defined by the linker; no initialization required.
* icall-def.h: Implement Socket generic Send() and Receive()
methods. Fixes bug 395168.
-2008-06-19 Kornél Pál <kornelpal@gmail.com>
+2008-06-19 Kornél Pál <kornelpal@gmail.com>
* icall-def.h, icall.c: Add ves_icall_System_Reflection_Module_GetHINSTANCE.
* appdomain.c (set_domain_search_path): Acquire the domain lock since we
modify domain state.
-2008-06-05 Andreas Färber <andreas.faerber@web.de>
+2008-06-05 Andreas Färber <andreas.faerber@web.de>
* boehm-gc.c: Add DTrace probes gc-{begin,end}.
* Makefile.am (pedump_LDADD): Post-process object files and
* reflection.c (mono_image_create_token): Add a 'register_token' argument, and use
it to avoid registering tokens during metadata generation. Fixes #390023.
-2008-05-14 Kornél Pál <kornelpal@gmail.com>
+2008-05-14 Kornél Pál <kornelpal@gmail.com>
* coree.c: Rename dwOldProtect to OldProtect that makes naming convention
consistent.
Contributed under MIT/X11 license.
-2008-05-14 Kornél Pál <kornelpal@gmail.com>
+2008-05-14 Kornél Pál <kornelpal@gmail.com>
* domain.c (mono_init_internal): Enable LoadLibrary support. Load EXE image
even when get_runtimes_from_exe didn't load it that allows mono_fixup_exe_image
(MONO_SYMBOL_FILE_COMPATIBILITY_VERSION): Removed; dropped support
for old pre-terrania symbol files.
-2008-05-05 Andreas Färber <andreas.faerber@web.de>
+2008-05-05 Andreas Färber <andreas.faerber@web.de>
* mono-config.c: Add ppc64 architecture.
Code is contributed under MIT/X11 license.
-2008-05-05 Andreas Färber <andreas.faerber@web.de>
+2008-05-05 Andreas Färber <andreas.faerber@web.de>
* object.c (mono_create_ftnptr, mono_get_addr_from_ftnptr):
PPC64 uses function descriptors as well.
* verify.c (mono_method_verify): Check the bounds of
all access of the code array.
-2008-04-29 Kornél Pál <kornelpal@gmail.com>
+2008-04-29 Kornél Pál <kornelpal@gmail.com>
* appdomain.c: Use HAVE_SYS_UTIME_H that fixes MSVC build.
* image.c (mono_image_strong_name_position): Fix return value when the rva is
not valid.
-2008-04-28 Kornél Pál <kornelpal@gmail.com>
+2008-04-28 Kornél Pál <kornelpal@gmail.com>
* loader.c (mono_get_method_from_token, mono_method_signature): Add
support for METHOD_IMPL_ATTRIBUTE_NATIVE.
* verify.c: Implemented readonly prefix and verify controled mutability pointers.
-2008-03-20 Kornél Pál <kornelpal@gmail.com>
+2008-03-20 Kornél Pál <kornelpal@gmail.com>
* file-io.c, filewatcher.c, threadpool.c, threads.c: Removed Windows
version macros.
* socket-io.c: Apple requires sin(6)_len to be set for getnameinfo
to succeed
-2007-11-05 Kornél Pál <kornelpal@gmail.com>
+2007-11-05 Kornél Pál <kornelpal@gmail.com>
* process.c: Added run-time GetProcessId API detection for Windows.
* threads.c (start_wrapper): Do the thread cleanup while we still
hold a reference to its object. Fixes bug 78123.
-2006-07-18 Kornél Pál <kornelpal@gmail.com>
+2006-07-18 Kornél Pál <kornelpal@gmail.com>
* class-internals.h: Added MONO_WRAPPER_MANAGED_TO_MANAGED wrapper type.
* debug-helpers.c: Map MONO_WRAPPER_MANAGED_TO_MANAGED to
* threads.c: avoid segfault when an unstarted thread is aborted.
-2005-06-05 Kornél Pál <kornelpal@hotmail.com>
+2005-06-05 Kornél Pál <kornelpal@hotmail.com>
* icall.c: Added ves_icall_Mono_Runtime_GetDisplayName:
Returns the name and version of the runtime for reporting.