1 2003-09-11 Zoltan Varga <vargaz@freemail.hu>
3 * profiler.c (mono_profiler_load): Added '-time' and '-alloc' options
4 to the built-in profiler to turn off time and allocation profiling
7 2003-09-10 Zoltan Varga <vargaz@freemail.hu>
9 * profiler.c (mono_profiler_coverage_alloc): Use NULL instead of
12 * debug-helpers.c (mono_method_full_name): Print the wrapper type
13 in human readable form.
15 2003-09-08 Zoltan Varga <vargaz@freemail.hu>
17 * reflection.c icall.c: Fixed warnings.
19 * image.c (load_class_names): Use a temporary hash table to hold the
20 namespaces in order to avoid doing many string comparisons.
24 * image.c class.c rawbuffer.c reflection.c threads.c verify.c domain.c:
25 Pass NULL instead of g_direct_equal to the GHashTable constructor
26 since the NULL case is short-circuited inside g_hash_table_lookup,
27 leading to better performance.
29 * metadata.c (mono_metadata_custom_attrs_from_index): New function to
30 obtain the first custom attribute for a given index. Depends on the
31 CustomAttribute table being sorted by the parent field.
33 * reflection.c (mono_custom_attrs_from_index): Use the new function
34 for better performance.
36 2003-09-07 Martin Baulig <martin@ximian.com>
38 * class.c (mono_class_init): If we're a generic instance, inflate
39 all our methods instead of loading them from the image.
40 (mono_class_from_generic): Set `class->methods = gklass->methods'.
42 2003-09-07 Martin Baulig <martin@ximian.com>
44 * mono-debug-debugger.c: Added support for constructors.
47 2003-09-06 Martin Baulig <martin@ximian.com>
49 * icall.c (ves_icall_TypeBuilder_get_IsUnboundGenericParameter):
52 * reflection.c (mono_reflection_setup_generic_class): Call
53 ensure_runtime_vtable() to create the vtable.
55 2003-09-05 Martin Baulig <martin@ximian.com>
57 * class.c (mono_class_array_element_size): Added MONO_TYPE_VAR and
60 2003-09-04 Martin Baulig <martin@ximian.com>
62 * reflection.c (mono_reflection_define_generic_parameter): Generic
63 parameters start with zero.
65 2003-09-04 Martin Baulig <martin@ximian.com>
67 * metadata.c (mono_type_size): Added MONO_TYPE_VAR and MONO_TYPE_MVAR.
69 * reflection.h (MonoReflectionGenericParam): New typedef.
70 (MonoReflectionTypeBuilder): Added `generic_params' fields to get
71 the generic parameters from the managed TypeBuilder.
73 * reflection.c (mono_reflection_define_generic_parameter): New function.
74 (mono_reflection_create_runtime_class): Encode generic parameters.
75 (mono_reflection_setup_generic_class): New function; this is
76 called after adding adding all generic params to the TypeBuilder.
77 (encode_type): Added MONO_TYPE_VAR.
79 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
81 * class.h class.c (mono_class_needs_cctor_run): Moved this method
84 * assembly.h assembly.c: Moved the AOT loading code into an assembly
87 2003-09-03 Zoltan Varga <vargaz@freemail.hu>
89 * reflection.h reflection.c class.h class.c: Delete duplicate
90 definition of mono_type_get_name () from reflection.c and export the
93 * class.c: Class loading fixes from Bernie Solomon
94 (bernard@ugsolutions.com).
96 * reflection.c: Endianness fixes from Bernie Solomon
97 (bernard@ugsolutions.com).
99 2003-09-01 Zoltan Varga <vargaz@freemail.hu>
101 * assembly.h assembly.c: Define a file format version for AOT
104 * assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
106 * appdomain.h (MonoJitInfo): New field to determine whenever the
107 code is domain neutral.
109 2003-08-31 Miguel de Icaza <miguel@ximian.com>
111 * marshal.c (emit_struct_conv): Add MONO_TYPE_CHAR
113 2003-08-30 Zoltan Varga <vargaz@freemail.hu>
115 * icall.c (ves_icall_System_Web_Util_ICalls_get_machine_install_dir):
116 (ves_icall_System_Configuration_DefaultConfig_get_machine_config_path):
117 Avoid caching the result since strings must be domain specific. Fixes
120 2003-08-29 Zoltan Varga <vargaz@freemail.hu>
122 * marshal.c (mono_marshal_init): Make this callable multiple times
123 since it is hard to find a correct place to call it.
125 * object.c (mono_runtime_class_init): Execute static constructors in
126 the correct appdomain.
128 * image.c (build_guid_table): Handle the case when multiple images have
131 2003-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
133 * icall.c: added a couple of icalls for System.Web.
135 2003-08-28 Martin Baulig <martin@ximian.com>
137 * icall.c (ves_icall_Type_BindGenericParameters): Use
138 `klass->generic_inst' instead of `&klass->byval_arg' in the
139 mono_type_get_object() call. The returned type must be
140 MONO_TYPE_GENERICINST and not MONO_TYPE_CLASS.
142 2003-08-27 Zoltan Varga <vargaz@freemail.hu>
146 * object.c (mono_class_proxy_vtable): Make it thread safe.
148 * pedump.c: Fix warning.
150 * object.c appdomain.h: Get rid of metadata_section.
151 It is no longer needed and it was causing deadlocks with domain->lock.
153 * appdomain.c (add_assemblies_to_domain): Make it thread safe.
155 2003-08-26 Martin Baulig <martin@ximian.com>
157 * pedump.c (main): Don't call mono_image_close() if `verify_pe'.
159 2003-08-26 Martin Baulig <martin@ximian.com>
161 * pedump.c (main): Call mono_metadata_init(),
162 mono_raw_buffer_init(), mono_images_init(), mono_assemblies_init()
163 and mono_loader_init().
165 2003-08-26 Zoltan Varga <vargaz@freemail.hu>
167 * loader.h: Add missing include to fix build.
169 * image.h: mono_image_load_references is no more.
171 * assembly.c: Reworked assembly loading to make it really thread safe.
172 After these changes, the assembly returned by mono_assembly_open is
173 fully initialized, i.e. all its references assemblies are loaded.
175 * assembly.c (mono_image_load_references): Renamed to
176 mono_assembly_load_references, and made private, since clients no
177 longer need to call it.
179 * class.c: Removed calls to mono_assembly_load_references, since it was
180 a source of deadlocks.
182 * loader.h loader.c class.h class.c: Protect data structures using a
183 new lock, the loader lock.
185 * class.c (mono_class_setup_vtable): Create temporary hash tables and
186 GPtrArrays only when needed.
188 * class.c (mono_class_layout_fields): Ignore the dummy field inserted
189 into empty structures by mcs. Fixes pinvoke7.cs.
191 * domain.c (mono_init): Call a new initialization function.
193 * appdomain.c (mono_runtime_init): Call the new initializer function
194 of the marshal module.
196 * marshal.c (mono_marshal_load_type_info): Ignore the dummy field
197 inserted into empty structures by mcs. Fixes pinvoke7.cs.
199 * marshal.h marshal.c: Added locks around the wrapper caches to make
200 this module thread safe.
202 * icall.c (ves_icall_InternalInvoke): Method wrappers doesn't require a
203 this argument. Fixes pinvoke1.exe.
205 2003-08-25 Lluis Sanchez <lluis@ximian.com>
207 * object.h: Added call_type field to MonoMethodMessage and the corresponding
208 enumeration of values. Removed fields to store remote call output values in
209 MonoAsyncResult. Not needed any more.
210 * object.c: Initialize call_type and async_result fields in mono_message_init.
211 * marshal.c: mono_delegate_begin_invoke(): for proxies, set call_type before
212 dispatching the message.
213 mono_delegate_end_invoke (): delegate to the proxy the work of waiting for the
214 async call to finish. To do it use a message with EndInvoke call type.
216 2003-08-25 Zoltan Varga <vargaz@freemail.hu>
218 * loader.h loader.c (mono_method_hash_marhal_info): New function which
219 determines whenever a method has marshalling info.
221 2003-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
223 * assembly.c: fix the build on windows.
225 2003-08-22 Lluis Sanchez <lluis@ximian.com>
227 * object.cs: Fixed bug #47785.
229 2003-08-22 Jackson Harper <jackson@latitudegeo.com>
231 * string-icalls.c (StringReplace): If their are no occurances of
232 the old string found return a reference to the supplied
233 string. This saves some memory and matches MS behavoir.
235 2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
237 * socket-io.c: fixed compilation for systems that define AF_INET6
238 and don't define SOL_IP/SOL_IPV6.
240 2003-08-21 Zoltan Varga <vargaz@freemail.hu>
242 * object.c (mono_object_isinst): Fix casts to TransparentProxy in
243 the interpreter. Patch by Bernie Solomon (bernard@ugsolutions.com).
245 * rawbuffer.c rawbuffer.h: Make this module thread safe.
247 * domain.c: Make this module thread safe.
249 * domain.c (mono_init): Call new initialization function.
251 * icall.c (ves_icall_System_Array_SetValueImpl): Check types for
252 reference types too. Fixes #38812.
254 * image.c (mono_image_init): Fixed warnings.
256 * class.c (mono_class_from_typeref): Handle assembly load failure
259 * appdomain.c (add_assemblies_to_domain): Handle the case when
260 the references of an assembly are not yet loaded.
262 * metadata.c image.c assembly.c: Moved initialization of global
263 variables to a separate function called at startup since lazy
264 initialization of these variables is not thread safe.
266 * image.c assembly.c: Made this module thread safe by adding locks in
267 the appropriate places.
269 * domain.c (mono_init): Call the new initialization functions of the
272 2003-08-20 Lluis Sanchez Gual <lluis@ximian.com>
274 * marshal.c: mono_delegate_begin_invoke(): If the target is a proxy,
275 make a direct call. It is proxy's work to make the call asynchronous.
276 mono_delegate_end_invoke(): If the targe is a proxy, just collect
278 * object.cs: mono_method_call_message_new(): read AsyncResult and
279 state object from parameters list, if this info is requested.
280 * object.h: Added fields to store remote call output values in
281 MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.
283 Wed Aug 20 12:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
285 * object.h: add needed fields to MonoThread.
286 * threads.c, threads.h: allow registering a function to cleanup data
287 allocated per thread by the JIT.
289 Tue Aug 19 18:22:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
291 * loader.h: portability fix by Bernie Solomon
292 * <bernard@ugsolutions.com>.
294 2003-08-16 Zoltan Varga <vargaz@freemail.hu>
296 * reflection.h reflection.c (mono_param_get_objects): Changed this to
297 return a MonoArray. This simplifies the code and also ensures that
298 the cache allways contains an object reference as a value.
300 * icall.c (ves_icall_get_parameter_info): Simplified using the new
303 2003-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
305 * socket-io.c: patch by Bernie Solomon <bernard@ugsolutions.com> that
306 fixes a problem with byte ordering when getting the address family for
309 2003-08-15 Zoltan Varga <vargaz@freemail.hu>
311 * .cvsignore: Added monosn.
313 * reflection.h reflection.c loader.c: Added support for parameter
314 marshalling to dynamically created types. Fixes #47295.
316 Fri Aug 15 11:42:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
318 * rand.c: remove useless warnings.
320 Wed Aug 13 15:49:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
322 * class.c: implemented ldtoken for methods and fieldrefs.
324 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
326 * threadpool.c: when mono_async_invoke was called, no one took care of
327 monitoring the queue. So if the method invoked took some time and we
328 got new async invoke requests after 500 ms (the thread created waited
329 that long in WaitForSingleObject), the new async invoke was not called
330 until the previous one finished.
332 This is fixed now. Thanks to Totte for helping with it.
334 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
336 * threadpool.c: set threadpool_thread to TRUE. Patch by totte.
338 2003-08-11 Martin Baulig <martin@ximian.com>
340 * mono-debug-debugger.c (mono_debugger_lookup_type): New function.
342 2003-08-06 Martin Baulig <martin@ximian.com>
344 * mono-debug-debugger.c: Added support for static fields,
345 properties and methods.
347 2003-08-06 Martin Baulig <martin@ximian.com>
349 * mono-debug-debugger.c: Don't store the MonoString's vtable to
350 make this work for applications with multiple application domains.
352 2003-08-04 Martin Baulig <martin@ximian.com>
354 * mono-debug-debugger.c: Completely reworked the type support; the
355 most important thing is that we're now just using one single
356 `MonoType' instance per type.
358 Sat Aug 2 13:05:27 BST 2003 Malte Hildingson <malte@amy.udd.htu.se>
360 * mono-endian.h, mono-endian.c, icall.c: Added icall
361 ves_icall_System_Double_AssertEndianity to assert double word endianity
362 on ARM (FPA). The icall uses a macro defined in mono-endian.h.
364 Fri Aug 1 16:51:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
366 * class.c, class.h, reflection.c, metadata.c, icall.c: more generics
367 support, icalls and fixes.
369 2003-07-31 Miguel de Icaza <miguel@ximian.com>
371 * unicode.c (ves_icall_System_Char_IsPunctuation): The set of
372 classes that are a punctuation character in .NET is not the same a
375 Tue Jul 29 18:07:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
377 * socket-io.c: ipv6 portability fixes from Felix Ortga (guile@lared.es).
379 2003-07-29 Miguel de Icaza <miguel@ximian.com>
381 * icall.c: Add new MemCopy internalcall.
382 (ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
383 Simplified code; It is not necessary to handle all the cases here,
384 as the C# code takes care of it. Only handle the case of the name
385 resource embedded into the assembly.
387 Changed signature to return the data pointer and the size of the
390 2003-07-26 Miguel de Icaza <miguel@ximian.com>
392 * reflection.c (mono_image_get_method_info): Allow for 0x40 to be
393 encoded. (Partition II.22.1.7: PInvokeAttribute:SupportsLastErr).
395 2003-07-29 Lluis Sanchez Gual <lluis@ximian.com>
397 * socket-io.c: ignore EINTR error in select.
399 Tue Jul 29 15:25:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
401 * class.h, class.c: removed unused subclasses field in MonoClass.
403 2003-07-29 Lluis Sanchez Gual <lluis@ximian.com>
405 * icall.c: improve fix of get_base_definition(). If the parent class
406 doesn't have the mehod, look at the parent of the parent.
407 * object.c: mono_message_init(): use the attribute PARAM_ATTRIBUTE_OUT
408 to check if a parameter is an in or out parameter
409 (PARAM_ATTRIBUTE_IN is not set by default).
410 mono_method_return_message_restore(): Use mono_class_value_size to
411 get the size of a value type. mono_type_stack_size (parameterType)
412 does not return the correct value if parameterType is byRef.
413 mono_load_remote_field(), mono_load_remote_field_new(),
414 mono_store_remote_field(), mono_store_remote_field_new():
415 raise exception if the remote call returns an exception.
417 2003-07-28 Martin Baulig <martin@ximian.com>
419 * mono-debug-debugger.c (mono_debugger_runtime_invoke): New
420 method. This is a wrapper around mono_runtime_invoke() which
421 boxes the instance object if neccessary.
423 Fri Jul 25 19:14:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
425 * class.c, class.h, image.c, image.h, loader.c, metadata.c,
426 metadata.h, row-indexes.h, verify.c: first cut of generics support.
428 Thu Jul 24 11:34:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
430 * icall.c: disable mcs bug workaround.
432 2003-07-21 Miguel de Icaza <miguel@ximian.com>
434 * object.c (mono_runtime_class_init): Take the metadata_section
435 mutex before obtaining the domain mutex.
437 * appdomain.h: Added definition of metadata_section mutex here.
439 * object.c: define metadata_mutex here.
441 2003-07-24 Ravi Pratap <ravi@ximian.com>
443 * icall.c: Remove the FIXED_MCS_45127 workarounds - this has been
446 2003-07-24 Lluis Sanchez Gual <lluis@ximian.com>
448 * reflection.c: Fix bug #46669
450 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
455 * object.h: fill in the type name for TypeLoadException.
457 2003-07-23 Ravi Pratap <ravi@ximian.com>
459 * class.c: Fixes from Paolo in response to bug #45415 (Subclass
460 relationship between TypeBuilders while compiling corlib) and bug
461 45993 (Array types returned from the runtime while compiling
462 corlib were from the loaded corlib).
464 2003-07-22 Martin Baulig <martin@ximian.com>
466 * mono-debug-debugger.c: Reworked the type support a bit more;
467 distinguish between types and classes.
469 Tue Jul 22 15:48:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
471 * icall.c: add IsArrayImpl icall.
473 2003-07-22 Zoltan Varga <vargaz@freemail.hu>
475 * class.c (mono_class_layout_fields): Fix gc aware auto layout by
476 initializing real_size only once. Also fix bug #46602.
478 2003-07-21 Jerome Laban <jlaban@wanadoo.fr>
480 * object.c: Renamed mono_metadata_section to metadata_section.
482 2003-07-21 Lluis Sanchez Gual <lluis@ximian.com>
484 * icall.c: in MS.NET ves_icall_Type_GetInterfaces returns an
485 empty array if the type is an array. Fixed.
486 ves_icall_MonoMethod_get_base_definition: if the base method
487 is abstract, get the MethodInfo from the list of methods of
489 * reflection.c: ParameterInfo.PositionImpl should be zero-based
490 and it was 1-based. Fixed in mono_param_get_objects.
492 2003-07-20 Martin Baulig <martin@ximian.com>
494 * mono-debug.h: Set version number to 31.
495 (mono_debug_init): Added `MonoDomain *' argument.
497 * mono-debug-debugger.c: Reworked the type support; explicitly
498 tell the debugger about builtin types; pass the `klass' address to
501 2003-07-20 Jackson Harper <jackson@latitudegeo.com>
503 * image.c: Allow new metadata tables to be loaded without a
504 warning. Also update the warning message to give the new constant value.
506 Fri Jul 18 13:12:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
508 * class.c, class.h, debug-helpers.c, icall.c, image.c, marshal.c,
509 metadata.c, metadata.h, mono-debug-debugger.c, object.c, reflection.c:
510 array type representation changes.
512 Fri Jul 18 11:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
514 * icall.c, appdomain.h, appdomain.c: support full runtime shutdown
515 on Environment.Exit () call.
517 Thu Jul 17 17:21:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
519 * icall.c, reflection.h, reflection.c, verify.c: cleanups,
520 requires a matching corlib.
522 2003-07-17 Lluis Sanchez Gual <lluis@ximian.com>
524 * Changelog: My editor decided to add a CR to each line. Sorry about that.
525 Committed again without the CRs.
527 2003-07-17 Lluis Sanchez Gual <lluis@ximian.com>
529 * socket-io.c: Get system_assembly using mono_image_loaded(), instead
530 getting it from the "this" socket instance. Did not work
531 if the socket is a subclass of Socket.
532 Also fixed bug #35371.
534 Thu Jul 17 13:39:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
536 * metadata.c: fixed size for TypedByRef.
537 * loader.c: when searching for a method, consider the vararg amrker.
538 * unicode.c, decimal.c: constify some arrays.
540 2003-07-15 Dick Porter <dick@ximian.com>
542 * socket-io.c: Fixed compilation for gcc < 3.2.
544 Fixed compilation for machines that don't have AF_INET6 (thanks to
545 Bernie Solomon <bernard@ugsolutions.com> for that part.)
547 Fixed compile warnings.
549 Fixed formatting and line endings.
551 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
554 * socket-io.c: Added IPv6 support.
556 2003-07-13 Zoltan Varga <vargaz@freemail.hu>
558 * class.c (mono_class_is_assignable_from): New function to implement
559 the is_assignable_from logic. Used by mono_object_isinst,
560 Type::IsAssignableFrom () and the interpreter.
562 * class.c (mono_class_is_subclass_of): Make all classes a subclass of
563 Object, even interfaces.
565 * object.c (mono_object_isinst): Implement in terms of
568 * icall.c (ves_icall_type_is_assignable_from): New icall.
570 2003-07-11 Zoltan Varga <vargaz@freemail.hu>
572 * domain.c (foreach_domain): fix compiler warning.
574 2003-07-11 Dietmar Maurer <dietmar@ximian.com>
576 * image.c (load_metadata_ptrs): use g_strndup because strndup is
577 not available on all plattforms
579 2003-07-10 Zoltan Varga <vargaz@freemail.hu>
581 * image.h image.c: Store the metadata version string in MonoImage.
582 * icall.c: New icall to retrieve the image version.
583 * reflection.c (create_dynamic_image): Fill in the image version field
584 * reflection.c (build_compressed_metadata): Use the image version
585 from the image structure.
587 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
589 * appdomain.c: modified comment.
590 * gc.c: finalizer_thread can call finalizers even when finished == TRUE.
591 That will be its last iteration when mono_gc_cleanup is called from
592 mono_runtime_cleanup and before the domain is unloaded.
596 2003-07-04 Dietmar Maurer <dietmar@ximian.com>
598 * marshal.c (mono_marshal_get_native_wrapper): fixes for [out]
601 Thu Jul 3 17:22:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
603 * object.c, file-io.c, metadata.c, mono-endian.h, reflection.c,
604 rawbuffer.c: more 64 bit and picky (or old) compiler fixes from
605 Bernie Solomon <bernard@ugsolutions.com>.
607 Thu Jul 3 17:17:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
609 * object.c, object.h: provide mono_object_new_fast() for faster
610 allocation in some special cases.
612 Wed Jul 2 13:21:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
614 * object.h, reflection.h, verify.c: fixes for some 64bit issues,
615 mostly from a patch by Laramie Leavitt <lar@leavitt.us>.
617 Tue Jul 1 21:24:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
619 * threadpool.c: fix leaks.
621 2003-07-01 Dick Porter <dick@ximian.com>
623 * threadpool.c (mono_async_invoke): Use mono_g_hash_table_remove when
624 using MonoGHashTables. Fixes threadpool bug posted to list.
626 Tue Jul 1 11:45:40 CEST 2003 Paolo Molaro <lupus@ximian.com>
628 * image.h, image.c: added support to load an assembly from a byte array.
629 * Makefile.am, assembly.c, make-bundle.pl, sample-bundle: added
630 assembly bundle support.
632 2003-06-27 Dietmar Maurer <dietmar@ximian.com>
634 * threadpool.c (mono_thread_pool_add): keep a reference to the
635 AsyncResult to prevent GC
637 Thu Jun 26 12:13:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
641 2003-06-25 Dick Porter <dick@ximian.com>
643 * threadpool.c (mono_thread_pool_add): Don't set up a finaliser
644 for the async object, the WaitHandle object will close the handle.
647 Wed Jun 25 18:12:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
649 * class.c: in mono_array_class_get (), lookup from the hash with the
650 same type we insert: this works around a bug in
651 mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
652 lluis. The real fix will have to wait for after the release.
654 Wed Jun 25 13:14:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
656 * icall.c: fix memory leak when getting type members.
658 Mon Jun 23 16:12:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
660 * reflection.c: added more pubtoken special cases.
662 Mon Jun 23 15:29:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
664 * class.c: handle field offset correctly when class size
665 is set (bug# 45182, partially from a patch by jlaban@wanadoo.Fr (Jerome Laban)).
667 2003-06-20 Martin Baulig <martin@ximian.com>
669 * mono-debug-debugger.h (MonoDebuggerSymbolFile): Added `MonoImage
672 2003-06-20 Martin Baulig <martin@ximian.com>
674 * image.h, mono-debug-debugger.h: Fixed compiler warnings.
676 2003-06-20 Martin Baulig <martin@ximian.com>
678 * mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed. We
679 just distinguish between variables in registers and variables at
680 an offset relative to a register.
682 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
684 * icall.c: #ifdef out latest changes until mcs is fixed.
686 Thu Jun 19 11:03:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
688 * icall.c: return members in metadata order.
690 Wed Jun 18 15:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
692 * icall.c: avoid infinite loop in GetTimeZoneData.
694 Wed Jun 18 12:47:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
696 * icall.c: added Marshal.Prelink/All icalls.
698 Wed Jun 18 12:17:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
700 * object.c, object.h: fix warnings and do some overflow checking
701 when creating arrays.
703 2003-06-17 Dick Porter <dick@ximian.com>
706 * file-io.c: File attributes need to be tweaked slightly when
707 passed from the managed to the w32 world.
709 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
710 * profiler.h profiler-private.h profiler.c: Rework last patch
711 based on suggestion by Paolo.
713 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
715 * profiler.h profiler-private.h profiler.c: Added infrastructure for
716 instruction level coverage data collection.
717 * profiler.h profiler.c (: Added new callback function which can be
718 used by the profiler to limit which functions should have coverage
720 * profiler.c (mono_profiler_load): Call g_module_build_path to
721 generate the file name of the profiler library.
723 Mon Jun 16 18:11:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
725 * profiler.c, profiler.h, profiler-private.h: added basic block
726 coverage profiling API.
728 2003-06-15 Zoltan Varga <vargaz@freemail.hu>
730 * reflection.c (mono_reflection_create_runtime_class): Add support
731 for events in dynamically generated code.
733 * gc.c: Start GCHandle indexes from 1, since 0 means the handle is
736 Sat Jun 14 19:01:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
738 * icall.c: when getting timezone info, return reasonable values if we
739 can't get the actual data.
741 2003-06-14 Dick Porter <dick@ximian.com>
743 * threads.c (start_wrapper): Remove the reference to the thread
744 object in the TLS data, so the thread object can be finalized.
745 This won't be reached if the thread threw an uncaught exception,
746 so those thread handles will stay referenced :-( (This is due to
747 missing support for scanning thread-specific data in the Boehm GC
748 - the io-layer keeps a GC-visible hash of pointers to TLS data.)
750 Sat Jun 14 13:16:17 CEST 2003 Paolo Molaro <lupus@ximian.com>
752 * reflection.c: ensure streams and tables are first allocated with
753 ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
755 Sat Jun 14 13:13:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
757 * icall.c: fixed GetElementType for byrefs (bug# 44792).
759 2003-06-13 Zoltan Varga <vargaz@freemail.hu>
761 * reflection.c (mono_reflection_create_runtime_class): Add support for
762 properties to dynamically created classes.
763 * reflection.c: Fix a few places where non-MonoObjects were inserted
764 into the tokens hashtable.
766 Fri Jun 13 19:10:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
768 * object.c: some support to handle out of memory exceptions.
770 2003-06-12 Dietmar Maurer <dietmar@ximian.com>
772 * marshal.c (mono_marshal_get_native_wrapper): support reference
775 Wed Jun 11 18:32:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
777 * object.h, object.c: more portability stuff from Bernie Solomon.
778 Unexport mono_object_allocate(). Added mono_object_unbox ().
779 Set exitcode when an unhandled exception is thrown.
781 2003-06-11 Dietmar Maurer <dietmar@ximian.com>
783 * marshal.c (mono_marshal_get_native_wrapper): use custom
784 marshaler for return types.
786 2003-06-10 Dick Porter <dick@ximian.com>
788 * socket-io.c: Don't assume that one of struct ip_mreqn or struct
791 Tue Jun 10 17:35:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
793 * debug-mono-symfile.c, marshal.c, metadata.c, monitor.c,
794 mono-debug-debugger.c, mono-debug.c, process.c: portability fixes
795 by Bernie Solomon <bernard@ugsolutions.com>.
797 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
799 * gc.c (mono_gc_init): Avoid error message on shutdown when
800 GC_DONT_GC=1 is used.
802 * icall.c (ves_icall_System_Reflection_Module_GetGuidInternal):
803 New icall to return the GUID of a module.
805 Mon Jun 9 19:33:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
807 * class.c: ensure instance size always includes the parent's size
808 even whem class size is set explicitly (fixes bug#44294).
810 Thu Jun 5 19:51:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
812 * profiler.h, profiler.c: made the simple profiler thread-safe,
813 get more accurate timing info. Allow the loading of an
814 externally-developed profiler module.
816 2003-06-05 Dietmar Maurer <dietmar@ximian.com>
818 * marshal.c (mono_marshal_get_native_wrapper): improved
819 class/byref arguments.
820 (mono_marshal_get_native_wrapper): better string marshaling support.
822 Wed Jun 4 18:01:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
824 * class.c: ensure .pack and .size are handled correctly and
825 simplified layout of static fields.
827 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
830 (ves_icall_System_AppDomainSetup_InitAppDomainSetup): fix for bug 42934
832 * loader.c (mono_lookup_pinvoke_call): look for modules in the
833 current directory (fix bug 44008)
835 2003-06-03 Dietmar Maurer <dietmar@ximian.com>
837 * marshal.c (mono_marshal_get_native_wrapper): started support for
839 (mono_delegate_to_ftnptr): consider marshalling specifications
841 Tue Jun 3 11:17:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
843 * reflection.c, reflection.h: emit custom marshal info.
845 2003-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
847 * object.c: free the GError.
848 * icall.c: added CloseEvent_internal.
850 (ves_icall_System_Threading_Events_CloseEvent_internal): new internal
853 2003-06-01 Zoltan Varga <vargaz@freemail.hu>
855 * loader.c (mono_method_get_signature): Add support for dynamic
858 Sat May 31 15:22:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
860 * reflection.c: fixed bug #43905.
862 Fri May 30 12:56:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
864 * class.c, domain.c, icall.c, metadata.h, object.h: support for
865 handling TypedReference and ArgIterator.
866 * loader.c, loader.h: added function to get signature at call site.
868 Thu May 29 11:34:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
870 * metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
871 data readonly. Buglets and warning fixes. Some MethodSpec support.
873 Tue May 27 16:34:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
875 * class.h, class.c, object.c: remove relative numbering support.
877 2003-05-26 Miguel de Icaza <miguel@ximian.com>
879 * marshal.c (mono_marshal_get_native_wrapper): For now, do not
880 free the string, until we get a chance to fix Gtk#
882 2003-05-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
884 * marshal.c: revert last patch.
886 Mon May 26 20:21:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
888 * icall.c: updates for new mono_class_vtable() not calling
889 the type constructor anymore.
891 Mon May 26 12:10:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
893 * object.h, object.c: separate vtable creation from type
894 initialization. Make running the .cctor thread safe.
896 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
898 * marshal.c (mono_marshal_get_native_wrapper): free string return values.
900 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
902 * loader.c (mono_get_method): consider calling convention
904 2003-05-21 Zoltan Varga <vargaz@freemail.hu>
906 * icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
907 to return the invisible global type for a module.
909 * reflection.c (mono_image_build_metadata): Emit global fields too.
911 2003-05-20 Peter Williams <peterw@ximian.com>
913 * loader.c (mono_lookup_internal_call): Add a few newlines.
915 2003-05-20 Zoltan Varga <vargaz@freemail.hu>
917 * reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
920 * appdomain.c (set_domain_search_path): Recalculate search path when
921 AppDomainSetup.PrivateBinPath changes.
923 * object.c (mono_class_compute_gc_descriptor): It turns out some
924 parts of the class libs (like System.Thread) holds pointers to
925 GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
926 to treat native int a pointer type here.
928 Tue May 20 17:18:16 CEST 2003 Paolo Molaro <lupus@ximian.com>
930 * appdomain.h, domain.c: add hashtable for jump target resolution.
932 2003-05-19 Zoltan Varga <vargaz@freemail.hu>
934 * reflection.h reflection.c icall.c: Added new icalls
935 GetManifestResourceInfoInternal, GetModulesInternal and support
938 2003-05-16 Dick Porter <dick@ximian.com>
942 * file-io.c: Implement System.IO.MonoIO::GetTempPath
944 2003-05-14 Lluis Sanchez Gual <lluis@ideary.com>
946 * object.c: mono_store_remote_field: little fix to previous patch.
948 Wed May 14 18:10:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
950 * class.c: add constructors to array classes.
951 * icall.c: special case array construction for InternalInvoke (),
953 2003-05-14 Zoltan Varga <vargaz@freemail.hu>
955 * class.h class.c reflection.c object.c: Added support for field
956 defaults in dynamically generated classes.
958 Wed May 14 13:35:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
960 * reflection.c: properly encode charset for ddlimport.
962 Wed May 14 11:14:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
964 * threads.c: allow compiling without GC.
966 Tue May 13 16:41:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
968 * appdomain.h, object.c, object.h, threads.c, threads.h: added
969 handling of thread static data.
971 Tue May 13 16:36:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
973 * reflection.h, reflection.c: added mono_custom_attrs_free ().
975 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
977 * class.c (mono_array_class_get): always set the serializable flags
978 (mono_array_class_get): always set the SEALED attribute for array types
980 2003-05-12 Dietmar Maurer <dietmar@ximian.com>
982 * loader.c (mono_lookup_pinvoke_call): consider Ansi/Unicode
983 attributes (fix for bug 42021).
985 2003-05-12 Dick Porter <dick@ximian.com>
987 * gc.c: Don't run finalizers when the finalizer thread is
988 finishing up, because the default domain has already been
991 2003-05-11 Miguel de Icaza <miguel@ximian.com>
993 * string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
994 value is null, we should throw an exception. This is slightly
995 different than the other conventions used for the constructor.
997 2003-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
999 * socket-io.c: fixed windows build.
1001 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1003 * socket-io.c: patch by Jerome Laban that fixes bug #42393.
1005 2003-05-10 Zoltan Varga <vargaz@freemail.hu>
1007 * object.c (mono_string_new_wrapper): Compatibility fix for MS
1010 2003-05-09 Zoltan Varga <vargaz@freemail.hu>
1012 * class.c (mono_class_layout_fields): Add experimental GC aware
1013 auto layout facility. Requires class library changes to work correctly.
1015 (mono_class_setup_vtable): Avoid overriding explicit interface
1016 method implementations. Fixes iface3.exe test.
1018 * object.c (mono_class_compute_gc_descriptor): Type I can't hold an
1020 (mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
1021 (mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
1023 * metadata.h: Add new type classification macro which determines
1024 whenever the type holds an object reference.
1026 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
1028 * marshal.c (mono_marshal_get_native_wrapper): cleanups
1030 2003-05-07 Zoltan Varga <vargaz@freemail.hu>
1032 * gc.c (finalizer_thread): Work around a GC bug.
1034 2003-05-07 Dietmar Maurer <dietmar@ximian.com>
1036 * marshal.c (emit_struct_conv): allow unions
1038 * class.c (class_compute_field_layout): added patches from Jerome Laban <jlaban@wanadoo.fr>
1040 2003-05-06 Dietmar Maurer <dietmar@ximian.com>
1042 * marshal.c (mono_marshal_get_native_wrapper): free strings after pinvoke
1044 2003-05-06 Martin Baulig <martin@ximian.com>
1046 * mono-debug-debugger.h: #include <mono/io-layer/io-layer.h>.
1048 2003-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1051 (Select_internal): allow NULLs, don't create arrays if not needed.
1052 Coupled with Socket.cs changes.
1055 (mono_thread_pool_add): use GC_MALLOC to allocate the ASyncCall and
1056 register a finalizer for it that will close the semaphore handle. This
1057 fixes the leak and make Lupus' test run with > 4080 loops.
1059 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
1061 * marshal.c (mono_marshal_get_struct_to_ptr): added fixes from
1062 Jerome Laban (bug #42287)
1064 2003-05-02 Martin Baulig <martin@ximian.com>
1066 * debug-mono-symfile.h
1067 (MonoSymbolFile): Moved declaration into mono-debug.h.
1068 (MonoDebugMethodJitInfo): Likewise.
1069 (mono_debug_open_mono_symbol_file): Take the MonoDebugHandle as
1071 (_mono_debug_address_from_il_offset): Take a
1072 MonoDebugMethodJitInfo instead of a MonoDebugMethodInfo.
1075 (MonoDebugDomainData): New struct.
1076 (mono_debug_get_domain_data): New function.
1077 (mono_debug_add_method): Take an additional `MonoDomain *'
1079 (mono_debug_source_location_from_address): Likewise.
1080 (mono_debug_il_offset_from_address): Likewise.
1081 (mono_debug_address_from_il_offset): Likewise.
1083 Thu May 1 19:40:37 CEST 2003 Paolo Molaro <lupus@ximian.com>
1085 * reflection.c: one more check for null type in custom attrs.
1087 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1089 * reflection.c: avoid warning (comparison is always false due to limited
1090 range of data type).
1092 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1094 * icall.c: throw an exception in Type.GetField if the argument 'name'
1097 Wed Apr 30 10:53:09 CEST 2003 Paolo Molaro <lupus@ximian.com>
1099 * reflection.c: fixed handling of enums in named arguments to custom
1100 attributes (bug #42123).
1102 Tue Apr 29 19:15:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1104 * reflection.c: use the right array element type and handle
1105 a null for a Type argument, too.
1107 Tue Apr 29 15:46:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
1109 * reflection.c: handle arrays as arguments to custom attributes.
1111 Tue Apr 29 11:43:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
1113 * reflection.c: handle a string value in a custom attr
1114 ctor that takes an object.
1116 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
1118 * marshal.c (mono_mb_emit_restore_result): support MONO_TYPE_PTR
1121 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
1123 * icall.c (ves_icall_Type_GetNestedType): Fixed warnings.
1125 2003-04-27 Martin Baulig <martin@ximian.com>
1127 * mono-debug-debugger.h (MonoDebuggerEvent): Renamed
1128 MONO_DEBUGGER_EVENT_BREAKPOINT_TRAMPOLINE to
1129 MONO_DEBUGGER_EVENT_BREAKPOINT.
1130 (mono_breakpoint_trampoline_code): Removed.
1131 (mono_debugger_event_handler): The last argument is now a
1133 (mono_debugger_insert_breakpoint_full): Removed the
1134 `use_trampoline' argument.
1135 (mono_debugger_method_has_breakpoint): Likewise.
1136 (mono_debugger_trampoline_breakpoint_callback): Renamed to
1137 mono_debugger_breakpoint_callback(); take the method and
1138 breakpoint number as arguments.
1140 Sat Apr 26 19:25:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1142 * metadata.c: fix off by one when loading parameters attributes.
1144 2003-04-24 Martin Baulig <martin@ximian.com>
1146 * mono-debug-debugger.c (mono_debugger_io_layer): Put this back.
1148 2003-04-24 Martin Baulig <martin@ximian.com>
1150 * mono-debug-debugger.c: Moved all code which interacts with the
1153 * debug-mono-symfile.c: This code now just deals with the symbol
1154 file itself, the debugger code is now in mono-debug-debugger.c.
1156 2003-04-23 Martin Baulig <martin@ximian.com>
1158 * mono-debug.c (mono_debug_source_location_from_il_offset):
1159 New method; like mono_debug_source_location_from_address(), but
1160 takes an IL offset instead of a machine address.
1162 2003-04-23 Martin Baulig <martin@ximian.com>
1164 * debug-mono-symfile.h (MonoDebugLineNumberEntry): Removed the
1165 `line' field; this is now computed by the debugger.
1167 2003-04-23 Martin Baulig <martin@ximian.com>
1169 * mono-debug.[ch]: New files. This is the new debugging interface.
1171 * mono-debug-debugger.[ch]: New files. Moved all code which
1172 interacts with the Mono Debugger here.
1174 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
1176 * domain.c (mono_init): initialize mono_defaults.monitor_class
1178 2003-04-21 Miguel de Icaza <miguel@ximian.com>
1180 * reflection.c (method_encode_code): Add a spicy exception to help
1181 future compiler authors.
1183 2003-04-21 Martin Baulig <martin@ximian.com>
1186 (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
1187 Make this work with relative pathnames; g_filename_to_uri() needs
1188 an absolute filename.
1190 2003-04-18 Zoltan Varga <vargaz@freemail.hu>
1192 * icall.c: Track name changes in Object and ValueType.
1194 2003-04-18 Dietmar Maurer <dietmar@ximian.com>
1196 * metadata.c (mono_type_stack_size): size should be a multiple of
1199 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1202 (internal_domain_finalize): moved into mono_domain_finalize. No need
1203 to create another thread because the finalizers will be run in the
1206 (ves_icall_System_GC_WaitForPendingFinalizers): implemented.
1207 (finalizer_notify): if shutting down, wait 2 seconds for the finalizers
1208 to be run (MS does this too).
1210 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
1212 * object.c (mono_class_compute_gc_descriptor): Update comment.
1214 * loader.h marshal.h marshal.c: Added synchronized method wrappers.
1216 * image.h: Add synchronized wrapper cache.
1218 * image.c (do_mono_image_open): Initialize cache.
1220 * reflection.c (create_dynamic_mono_image): Initialize cache.
1222 2003-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1224 * icall.c: patch by Jerome Laban <jlaban@wanadoo.fr> that fixes
1225 ves_icall_System_Buffer_ByteLengthInternal.
1227 Tue Apr 15 13:56:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
1229 * reflection.c: setup klass->nested_in earlier. Allow
1230 a dash in the assembly name.
1232 2003-04-15 Dietmar Maurer <dietmar@ximian.com>
1234 * metadata.c (mono_type_to_unmanaged): dont access
1235 type->data.klass for MONO_TYPE_OBJECT
1236 (mono_type_to_unmanaged): consider System.Delegate class
1238 Tue Apr 15 11:16:05 CEST 2003 Paolo Molaro <lupus@ximian.com>
1240 * class.c: just setup supertypes in the proper place instead of
1241 initializing the full element class for arrays.
1243 Tue Apr 15 11:03:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
1245 * class.c: ensure the element class of arrays is initialized.
1246 Setup the supertype info for array classes, too.
1248 2003-04-14 Miguel de Icaza <miguel@ximian.com>
1250 * icall.c (ves_icall_Type_GetNestedType): Add new internal call.
1252 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1254 * Makefile.am: re-added -m option when running cygpath. This way,
1255 MONO_ASSEMBLIES and MONO_CFG_DIR will contain '/' as directory
1257 * mono-config.c: same codepath for locating mono config file for WIN32
1259 * assembly.c: if mono_assembly_setrootdir is called, don't override
1262 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1264 * Makefile.am: patch by Urs Muff <umuff@quark.com> that fixes
1265 MONO_ASSEMBLIES variable.
1267 Fri Apr 11 12:44:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
1269 * icall.c: added Assembly::GetNamespaces() icall.
1271 2003-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1273 * reflection.c: fix from Jaak <jaak@zd.com.pl>.
1275 2003-04-10 Lluis Sanchez Gual <lluis@ideary.com>
1277 * appdomain.c,appdomain.h,icall.c: Added internal method that returns the process guid
1278 * object.c: fixed bug in the construction of vtable for proxies
1280 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
1282 * object.c (mono_array_new): Mark mono_array_new as an icall.
1284 2003-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1286 * class.c: fixed test for public method when overriding interfaces.
1289 Wed Apr 9 15:19:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1291 * appdomain.h, domain.c: added mono_domain_foreach() to
1292 be able to access the currently loaded appdomains.
1293 * object.c: make string interning work across sppdomains.
1294 Mark some functions for use as icalls.
1296 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
1298 * class.c reflection.c: Fix memory leaks reported by ccmalloc.
1300 * reflection.h reflection.c: Allocate long living data using
1301 GC_MALLOC_ATOMIC so the collector does not need to scan it.
1303 * reflection.c: Double the allocation size in streams instead of
1304 increasing it, to prevent unneccesary copying on large assemblies.
1306 * reflection.c (mono_reflection_create_runtime_class): Avoid vtable
1307 creation if the assembly does not have the Run flag set.
1309 Tue Apr 8 11:19:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1311 * class.h: avoid the C++ keywords in header files (Jerome Laban
1312 spotted and fixed this).
1314 2003-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1317 (mono_unhandled_exception): fill in the arguments for the
1318 UnhandledException event. Only trigger that event for the default
1319 domain (as MS does).
1321 2003-04-04 Zoltan Varga <vargaz@freemail.hu>
1323 * object.c: Improve typed allocation stuff based on suggestions from
1324 Paolo. Also turn it on if the GC library supports it.
1326 2003-04-03 Zoltan Varga <vargaz@freemail.hu>
1328 * object.c object.h class.h: Added experimental typed allocation
1329 facility using the interfaces in gc_gcj.h.
1331 * os/gc_wrapper.h: Added new include files.
1333 2003-04-03 Martin Baulig <martin@ximian.com>
1335 All the following changes are conditional to `WITH_INCLUDED_LIBGC'
1336 which is not yet enabled by default.
1338 * gc.c (mono_gc_init): Set the gc_thread_vtable to our thread
1340 (mono_gc_lock, mono_gc_unlock): New static functions.
1342 * threads.c (mono_gc_stop_world, mono_gc_start_world): New public
1343 functions; stop/start the world for the garbage collector. This
1344 is using the windows API; we need to complete the SuspendThread()/
1345 ResumeThread() implementation in the io-layer to make this work on Unix.
1346 (mono_gc_push_all_stacks): New public function; tells the garbage
1347 collector about the stack pointers from all managed threads.
1349 2003-04-03 Martin Baulig <martin@ximian.com>
1351 * object.h (MonoThread): Added `gpointer stack_ptr'.
1353 * threads.c (start_wrapper): Save the stack pointer in `stack_ptr'.
1355 2003-04-03 Martin Baulig <martin@ximian.com>
1357 * Makefile.am: It's called `cygpath -w', not `cygpath -m'.
1359 2003-04-03 Zoltan Varga <vargaz@freemail.hu>
1361 * reflection.c (typebuilder_setup_fields): Initialize field.first and
1364 2003-04-02 Miguel de Icaza <miguel@ximian.com>
1366 * loader.c (mono_lookup_internal_call): Report the corlib that is
1369 2003-03-05 Aleksey Demakov <avd@openlinksw.com>
1371 * icall.c (ves_icall_type_GetTypeCode): fixed check for
1372 System.DBNull (it's class not valuetype).
1374 Wed Apr 2 18:37:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
1376 * reflection.c: set table_idx in MonoReflectionArrayMethod object even
1377 if the array method was already assigned a token (fixes bug#40646).
1379 2003-04-02 Zoltan Varga <vargaz@freemail.hu>
1381 * reflection.c (mono_reflection_get_type): Attempt type resolve even
1382 if no assembly is given.
1384 2003-04-01 Miguel de Icaza <miguel@ximian.com>
1386 * metadata.h: Added the new tables.
1388 * row-indexes.h: Added definitions for new tables.
1390 * metadata.c: Add schemas for new tables, and add support for
1391 computing the sizes of them.
1393 * class.c: Update for handling the new type cases.
1395 2003-04-01 Dietmar Maurer <dietmar@ximian.com>
1397 * metadata.h (MONO_TYPE_IS_VOID): new macro
1399 2003-03-31 Martin Baulig <martin@ximian.com>
1401 * threads.h (MonoThreadCallbacks): Added `thread_created'.
1403 * threads.c (mono_thread_new_init): Call `thread_created' in the
1404 mono_thread_callbacks.
1406 2003-03-31 Lluis Sanchez Gual <lluis@ideary.com>
1408 * loader.h: added marshalbyrefobject_class to mono_defaults
1409 * domain.c: added initialization of mono_defaults.marshalbyrefobject_class
1410 * icall.c: ves_icall_InternalExecute: fixed bug in field setter and in the
1411 generation of output parameters.
1412 ves_icall_Remoting_RealProxy_GetTransparentProxy: added support for interfaces.
1413 * marshal.c: mono_remoting_wrapper(): avoided call through proxy when the type is
1414 contextbound and the target object belongs to the context of the caller.
1415 * object.h: added context and unwrapped_server variables in MonoRealProxy.
1416 * object.c: Implemented support for interfaces and abstract classes
1417 in mono_class_proxy_vtable. Fixed several methods to avoid unneeded calls through
1418 proxy. Fixed problem when dealing with output parameters in mono_runtime_invoke_array.
1420 2003-03-30 Zoltan Varga <vargaz@freemail.hu>
1422 * class.h class.c (mono_class_is_subclass_of): New function.
1424 * icall.c (ves_icall_System_Array_FastCopy): Added optimized copy
1425 routines for most common case (calls from ArrayList::ToArray).
1427 * icall.c (ves_icall_System_Environment_Exit): Call profiler shutdown
1428 routine so programs which call Environment::Exit() can be profiled.
1430 * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
1431 Added MONO_ARCH_SAVE_REGS.
1433 * icall.c (ves_icall_type_is_subtype_of): Use new function.
1435 2003-03-29 Miguel de Icaza <miguel@ximian.com>
1437 * blob.h: Add a couple of new MonoType types definitions.
1439 * tabledefs.h: Add a couple of new call convs.
1441 2003-03-27 Zoltan Varga <vargaz@freemail.h>
1443 * reflection.h (MonoReflectionDynamicAssembly): track changes in
1444 the layout of the class.
1446 * reflection.c (alloc_table): double the size on overflow to avoid
1447 unnecessary copying.
1449 * reflection.h reflection.c: If AssemblyBuilderAccess is Run, then
1450 avoid filling out metadata tables and blobs. Also set mb->ilgen to
1451 null so it can be garbage collected.
1453 2003-03-27 Zoltan Varga <vargaz@freemail.hu>
1455 * reflection.c (mono_reflection_get_type): Return the resolved type
1456 only if it is in the assembly we searched.
1458 * reflection.c (ensure_runtime_vtable): Initialize method slots.
1460 * class.c (mono_class_setup_vtable): Set the slot of the overriding
1463 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1466 (set_domain_search_path): allow 'file://blah'. It's an invalid URI,
1467 the right one is 'file:///blah', but MS allows it.
1469 (mono_assembly_open): allow 'file://blah'
1471 Fixes bug #40306. Thanks to Mitko Iliev (imitko@openlinksw.co.uk).
1473 2003-03-26 Aleksey Demakov <avd@openlinksw.com>
1475 * socket-io.c: fixes bug #40310.
1477 2003-03-25 Zoltan Varga <vargaz@freemail.hu>
1479 * reflection.c (mono_reflection_parse_type): handle deeply nested
1482 * reflection.c (mono_image_create_token): Use unique token values
1483 since they will be put into a hash table.
1485 * class.c (mono_class_setup_vtable): If a method occurs in more than
1486 one place in the vtable, and it gets overriden, then change the
1487 other occurances too.
1489 * marshal.c (mono_marshal_get_managed_wrapper): Added support for
1490 object as return type.
1492 2003-03-22 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1494 * icall.c: Deleted "ToString" implementation for double and float
1495 because they are full implemented in managed code.
1497 Wed Mar 19 18:05:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1499 * reflection.c, reflection.h: implemented and exported functions
1500 to retrieve info about custom attributes.
1502 2003-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1504 * appdomain.c: moved Uri handling to assembly.c
1505 * assembly.c: use g_filename_from_uri (). This makes assembly.LoadFrom
1506 work when using a file Uri in *nix and windows.
1508 * icall.c: fixed Assembly.CodeBase to return a valid Uri. The same for
1509 GetReferencedAssemblies.
1511 2003-03-18 Dick Porter <dick@ximian.com>
1513 * icall.c: Rename a couple of internal calls
1515 * threads.c: Set the thread state to Stopped when a thread exits.
1518 2003-03-17 Zoltan Varga <vargaz@freemail.hu>
1520 * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
1523 * object.c (mono_class_vtable): fix warning.
1525 2003-03-17 Zoltan Varga <vargaz@freemail.hu>
1527 * icall.c (ves_icall_type_is_subtype_of): Avoid vtable creation.
1529 * reflection.c (mono_blob_entry_hash): Avoid reading uninitialized
1531 (method_encode_clauses): Create exception info structures in the right
1533 (mono_reflection_setup_internal_class): Initialize supertypes field.
1535 * class.c object.c: Handle interfaces which implement other interfaces
1538 * class.h class.c: Move the supertypes array initialization code into
1539 a separate function so it can be used for dynamic types too. Also call
1540 it earlier, in mono_class_init(), since it can be used before the
1541 type is initialized.
1543 2003-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1547 * icall.c: make MONO_ASSEMBLIES and MONO_CFG_DIR work on windows.
1552 * object.c: remove warnings.
1554 2003-03-13 Martin Baulig <martin@ximian.com>
1556 * debug-mono-symfile.h (MonoSymbolFileLexicalBlockEntry): New type.
1557 (MonoDebugLexicalBlockEntry): New types.
1559 * debug-mono-symfile.c
1560 (_mono_debug_address_from_il_offset): Moved here from ../jit/debug.c.
1562 2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1564 * process.c: ret can be any non-zero value accroding to MS doc.
1566 2003-03-07 Miguel de Icaza <miguel@ximian.com>
1568 * class.c (mono_marshal_load_type_info): Fix buglet: Noticed when
1569 fixing a warning for a miss-used prototype, would have cause
1570 random memory corruption.
1572 2003-03-07 Martin Baulig <martin@ximian.com>
1574 * marshal.c (mono_marshal_free_array): That "TESTFREE %p" was
1575 getting really annoying ....
1577 2003-03-07 Zoltan Varga <vargaz@freemail.hu>
1579 * reflection.c (fixup_method): added support for array methods.
1581 Tue Mar 4 18:03:27 CET 2003 Paolo Molaro <lupus@ximian.com>
1583 * socket-io.c: handle case when AF_INET6 and AF_IPX are not defined
1584 (pointed out by Michael Adams).
1586 2003-03-04 Dick Porter <dick@ximian.com>
1588 * icall.c: Temporarily reverted the Double and Single ToString()
1589 change, because it broke nunit.
1591 Tue Mar 4 12:40:58 CET 2003 Paolo Molaro <lupus@ximian.com>
1593 * object.h, threads.h: make include files compatible with C++
1594 (patch by Jerome Laban <jlaban@wanadoo.fr>).
1596 2003-03-04 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1598 * icall.c: Erased ToString helper functions for Double and Single.
1599 Now, that implementations ar all in managed code (Double and Single
1602 2003-03-03 Lluis Sanchez Gual <lluis@ideary.com>
1604 * appdomain.c: Added method for initializing the default context of
1605 a domain. Added internal call for getting the default context.
1606 * appdomain.h: Added context variable in MonoDomain struct.
1607 * domain.c: mono_domain_set also sets the default context of the domain
1608 * icall.c: Mapped internal method InternalGetDefaultContext.
1609 * object.c: mono_object_get_virtual_method returns always a remoting
1610 wrapper if the object is a transparent proxy.
1611 mono_runtime_invoke_array: when creating an object by calling the
1612 constructor, if the created object is a proxy, then the constructor should
1613 be called using the a remoting wrapper.
1615 2003-03-03 Dick Porter <dick@ximian.com>
1617 * socket-io.c (create_sockaddr_from_object): Rename sockaddr_un
1618 variable so it compiles on solaris. Problem spotted by
1619 Christopher Taylor <ct@cs.clemson.edu>
1621 2003-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1624 (get_info_from_assembly_name): don't leak value.
1627 (ves_icall_System_Reflection_Assembly_GetFilesInternal): initialize
1630 Sat Mar 1 15:32:56 CET 2003 Paolo Molaro <lupus@ximian.com>
1632 * assembly.c: export mono_image_load_references ().
1633 * class.c: handle function pointers. mono_class_from_name() now
1634 supports nested type names directly.
1636 2003-02-28 Zoltan Varga <vargaz@freemail.hu>
1638 * reflection.h reflection.c: Encode already created dynamic methods
1639 and fields correctly as a DEF instead of a REF.
1641 * reflection.c: Get rid of the force_ref argument to
1642 mono_image_typedef_or_ref since it was wrong in the first place.
1644 * string-icalls.c: add error checking to string constructors according
1647 * reflection.c: Emit types in the order their TypeBuilders were
1648 created. Previously, a new table index was assigned to each type before
1649 the tables were emitted. This was wrong because the signature blob
1650 might already refer to a type by its original table index.
1652 2003-02-27 Zoltan Varga <vargaz@freemail.hu>
1654 * metadata.c (mono_metadata_nesting_typedef): fix bug in previous
1657 2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1659 * Makefile.am: make assemblies dir have \ instead of / on windows.
1661 2003-02-27 Zoltan Varga <vargaz@freemail.hu>
1663 * metadata.c metadata.h (mono_metadata_nesting_typedef): changed to
1664 iterate over the NESTEDCLASS table using a linear search since the
1665 table is not guaranteed to be sorted by the secondary key.
1667 * class.c (mono_class_create_from_typedef): fixed up call to
1668 mono_metadata_nesting_typedef.
1670 2003-02-27 Dietmar Maurer <dietmar@ximian.com>
1672 * marshal.c (mono_string_to_byvalstr): clear the memory as
1673 suggested by Jerome Laban <jlaban@wanadoo.fr>
1675 2003-02-26 Dick Porter <dick@ximian.com>
1677 * process.c: Cope with padding in .rsrc blocks
1679 2003-02-26 Dietmar Maurer <dietmar@ximian.com>
1681 * metadata.h: reverted the filter_len change, it breaks reflection
1683 2003-02-26 Dietmar Maurer <dietmar@ximian.com>
1685 * metadata.h: added a new field to store the filter_len
1688 Tue Feb 25 10:56:16 CET 2003 Paolo Molaro <lupus@ximian.com>
1690 * reflection.c: handle custom attributes for types and members
1691 created with Reflection.Emit (bug#38422).
1693 2003-02-22 Zoltan Varga <vargaz@freemail.hu>
1695 * reflection.c: define RTSpecialName automatically for constructors for
1696 compatibility with MS.NET.
1698 * reflection.c (mono_reflection_create_runtime_class): initialize
1699 nested_in field of dynamically created classes.
1701 2003-02-22 Martin Baulig <martin@ximian.com>
1703 * debug-mono-symfile.h: Incremented version number.
1705 2003-02-21 Zoltan Varga <vargaz@freemail.hu>
1707 * object.h icall.c process.c: fix warnings.
1709 2003-02-21 Zoltan Varga <vargaz@freemail.hu>
1711 * appdomain.h appdomain.c:
1712 (mono_domain_try_type_resolve): split the
1713 name_or_tb argument into a name and a tb argument.
1714 (mono_domain_has_type_resolve): new function to check whenever the
1715 application has registered a TypeResolve event handler.
1717 * icall.c reflection.h reflection.c: move the type resolve logic into
1718 mono_reflection_get_type () so it will be invoked when
1719 Assembly::GetType () is called.
1722 (mono_reflection_get_type): renamed to get_type_internal.
1723 (mono_reflection_get_type): fixed type name generation so it works
1724 for nested types too.
1725 (mono_reflection_get_type): call has_type_resolve () to avoid the
1726 costly type name generation if there is no resolve event handler.
1728 Fri Feb 21 11:36:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1730 * class.c, image.c: load exported types from file references.
1732 2003-02-19 Lluis Sanchez Gual <lluis@ideary.com>
1734 * appdomain.h: Added in MonoDomain a couple of MonoMethod* variables
1735 used to cache the managed methods used to create proxies and make
1736 remote invocation of methods.
1737 * class.h: Added in MonoVTable a flag to indicate that a class needs
1738 to be remotely created.
1739 * object.c: Modified the method mono_class_vtable(). It now initializes
1740 the remote flag of the vtable. Modified mono_object_new_specific(),
1741 so now it checks the remote flag.
1742 * icall.c: Added a couple of internal methods, one for enabling instance
1743 creation interception for a type, and one for creating objects bypassing
1746 2003-02-18 Martin Baulig <martin@ximian.com>
1748 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethodToken):
1749 New interncall to get a method's metadata token.
1751 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethodToken"):
1752 New interncall for the debugger.
1754 2003-02-18 Dietmar Maurer <dietmar@ximian.com>
1756 * class.c (mono_class_setup_vtable): allocate supertype array
1758 2003-02-18 Martin Baulig <martin@ximian.com>
1760 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Added `has_this'.
1762 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1765 (assembly_name_to_aname): jump over unknown properties (i've found
1766 something like: 'type, assembly, version=xxx, custom=null, public...',
1767 so now will ignore custom=null and still get the rest of the values).
1769 2003-02-17 Dick Porter <dick@ximian.com>
1771 * threads.c: Have Thread.Start() wait for a semaphore to signal
1772 that the thread has set up all its local data. This fixes bug
1773 34323, where Abort() raced the new thread's TLS data.
1775 Also removes the handle_store() call from start_wrapper, because
1776 threads are now always created suspended and there is no longer a
1777 race between the parent and child threads to store the info.
1779 Mon Feb 17 13:13:31 CET 2003 Paolo Molaro <lupus@ximian.com>
1781 * image.c: explain the #- heap issue in a message, hopefully
1782 avoiding FAQs on mono-list.
1784 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1787 (GetEntryAssembly): if the domain has not invoked
1788 AppDomain.ExecuteAssembly yet, return the assembly of the default
1791 2003-02-16 Zoltan Varga <vargaz@freemail.hu>
1793 * class.c (mono_ldtoken): make it work in dynamic assemblies.
1795 Sun Feb 16 13:10:06 CET 2003 Paolo Molaro <lupus@ximian.com>
1797 * metadata.c, reflection.c: simple speedup to type hash
1800 Sat Feb 15 15:15:03 CET 2003 Paolo Molaro <lupus@ximian.com>
1802 * image.c, image.h, class.c, assembly.c: move module loading
1803 to MonoImage. When loading metadata, consider alignemnet from
1804 the start of metadata, not from the metadata address in memory.
1806 2003-02-13 Zoltan Varga <vargaz@freemail.hu>
1808 * reflection.c (mono_reflection_get_custom_attrs): Added support for
1809 AssemblyBuilder objects. Factored out custom attribute creation into
1810 a separate function.
1811 (create_custom_attr): new function to create custom attributes.
1813 2003-02-12 Miguel de Icaza <miguel@ximian.com>
1815 * Makefile.am: Got tired of typing the full pathname to pedump.
1816 Until there is another option, am installing this.
1818 2003-02-12 Dietmar Maurer <dietmar@ximian.com>
1820 * class.c (class_compute_field_layout): always set field->parent
1821 (mono_ldtoken): use mono_defaults.fieldhandle_class;
1823 2003-02-11 Dick Porter <dick@ximian.com>
1826 * monitor.c: Rewrote Monitor, making lock much faster and
1827 Pulse/Wait work as specified. Also uses much fewer handles, and only
1828 creates them as needed.
1830 * exception.c: Added SynchronizationLockException
1832 * threads.c: Deleted old Monitor implementation. The new one is
1835 Mon Feb 10 17:54:10 CET 2003 Paolo Molaro <lupus@ximian.com>
1837 * class.c: handled TypedReference type code. Set the correct size for
1838 class data. Setup interface_offsets for interface classes, too.
1840 2003-02-09 Martin Baulig <martin@ximian.com>
1842 * debug-mono-symfile.h: Reflect latest symbol writer changes.
1844 Sun Feb 9 18:37:01 CET 2003 Paolo Molaro <lupus@ximian.com>
1846 * loader.c: implemented MEMBERREF_PARENT_TYPEDEF.
1847 * metadata.c, reflection.c: missing MONO_TYPE_TYPEDBYREF handling.
1848 * object.c: fixed mono_object_get_virtual_method () for interfaces.
1849 * verify.c: check for code that runs after the end of the method.
1851 2003-02-08 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1853 * icall.c: Added "System.Math::Floor", "System.Math::Round" and
1854 "System.Math::Round2".
1855 * sysmath.h: Added Floor, Round and Round2 definitions.
1856 * sysmath.c: Modified certain functions that were not 100% compliant
1857 with MS.NET (math precision) and added the implementation of Floor,
1860 2003-02-07 Martin Baulig <martin@ximian.com>
1862 * debug-mono-symfile.c (mono_debug_symfile_add_method): Ignore interncalls.
1864 2003-02-07 Martin Baulig <martin@ximian.com>
1866 * debug-mono-symfile.c: Reflected latest symwriter changes.
1867 (mono_debug_create_mono_symbol_file): Removed.
1868 (mono_debug_open_mono_symbol_file): Take an argument which
1869 specifies whether to create a dynamic symbol file.
1871 2003-02-07 Dietmar Maurer <dietmar@ximian.com>
1873 * class.c (mono_class_from_mono_type): added MONO_TYPE_TYPEDBYREF
1875 2003-02-05 Martin Baulig <martin@ximian.com>
1877 * reflection.c (mono_image_build_metadata): Make this public,
1878 protect it against being called multiple times, don't create
1879 resources and don't build the compressed metadata here.
1880 (mono_image_create_pefile): Do this here.
1883 ("System.Reflection.Emit.AssemblyBuilder::build_metadata"): Added.
1885 2003-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1887 * socket-io.c: fixed bug #36322.
1889 2003-02-06 Piers Haken <piersh@friskit.com>
1893 * debug-mono-symfile.c:
1899 * socket-io.c: warning cleanups
1901 2003-02-06 Dietmar Maurer <dietmar@ximian.com>
1903 * marshal.c (mono_marshal_get_remoting_invoke_with_check): new
1904 function. works like remoting invoke, but does a check for the Proxy first.
1906 2003-02-05 Miguel de Icaza <miguel@ximian.com>
1908 * appdomain.c (ves_icall_System_AppDomain_InternalUnload): Make it compiler.
1910 2003-02-05 Dietmar Maurer <dietmar@ximian.com>
1912 * marshal.c (mono_marshal_get_native_wrapper): only allocate an
1914 (mono_marshal_get_ldfld_wrapper): only generate necessary ldfld wrappers.
1915 (mono_marshal_get_stfld_wrapper): only generate necessary stfld wrappers.
1917 * object.c (mono_store_remote_field_new): used by the new jit
1918 instead of mono_store_remote_field
1919 (mono_load_remote_field_new): used by the new jit
1920 instead of mono_load_remote_field
1922 2003-02-05 Patrik Torstensson
1924 * appdomain.c: changed unload to take the domain id instead
1927 * icall.c: changed icall for AppDomain.Unload to AppDomain.InternalUnload
1930 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1932 * appdomain.c: don't look for assemblies in ApplicationBase if
1933 PrivateBinPathProbe is set.
1935 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1937 * object.c: make the first argument in main_args contain the absolute
1938 path to the assembly. Fixes bug #37511.
1940 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1942 * icall.c: get correct UTC offset for countries not using daylight
1943 time saving. Fixes bug #30030.
1945 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1947 * socket-io.c: support AF_UNIX and use the same layout as MS (bytes 0
1948 and 1 are the family).
1950 2003-02-04 Dietmar Maurer <dietmar@ximian.com>
1952 * icall.c (ves_icall_InternalExecute): removed wrong assertion
1954 * marshal.c (mono_marshal_get_remoting_invoke): generate valid IL
1956 2003-02-04 Zoltan Varga <vargaz@freemail.hu>
1958 * reflection.c: added support for SignatureHelper tokens, which is
1959 needed by the Calli opcode.
1961 * reflection.h: track changes to SignatureHelper class.
1963 * metadata.c (mono_metadata_parse_signature): handle dynamic tokens.
1965 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1967 * appdomain.c: fixed loading assemblies from PrivateBinPath.
1969 2003-02-03 Patrik Torstensson
1970 * appdomain.[c|h], domain.c :
1971 - Added support for getting a domain via domain id
1972 - Support for setting and getting domain from System.AppDomain
1973 (used in cross appdomain channel)
1974 - Added support for get/set for a MonoAppContext on a thread
1975 (Context class in System.Runtime.Remoting.Contexts),
1976 - Removed hack in Get/SetData and ExecuteAssembly.
1978 * icall.c : renamed GetTransparantProxy to InternalGetTransparantProxy to allow
1979 the managed world to get control when a proxy is created.
1981 * icall.c (ves_icall_InternalExecute) : bug fix, must return empty array
1983 2003-02-03 Miguel de Icaza <miguel@ximian.com>
1986 (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
1987 Populate the codebase field as well.
1989 2003-02-02 Martin Baulig <martin@ximian.com>
1991 * debug-mono-symfile.c
1992 (MonoSymbolFileMethodAddress): Added `wrapper_address' field.
1993 (mono_debug_symfile_add_method): Allow interncalls.
1995 2003-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1997 * icall.c: throw parse exception if strtod fails or the string is empty.
1999 Fri Jan 31 16:09:48 CET 2003 Paolo Molaro <lupus@ximian.com>
2001 * marshal.c: handle object type separately from defined
2004 Fri Jan 31 16:01:20 CET 2003 Paolo Molaro <lupus@ximian.com>
2006 * marshal.c: handle NATIVE_LPSTR for strings when it's
2007 explicitly specified.
2009 Fri Jan 31 11:51:43 CET 2003 Paolo Molaro <lupus@ximian.com>
2011 * reflection.c, reflection.h, icall.c: setup the reflection
2012 handle cache for ModuleBuilders and AssemblyBuilders.
2014 2003-01-30 Dietmar Maurer <dietmar@ximian.com>
2016 * reflection.c (reflection_methodbuilder_to_mono_method): set
2019 2003-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2021 * icall.c: implemented ves_icall_MonoMethod_get_base_definition.
2023 2003-01-29 Dick Porter <dick@ximian.com>
2025 * threads.c: No need for the fake_thread kludge now that Thread
2026 doesn't run a class constructor
2028 2003-01-29 Dick Porter <dick@ximian.com>
2030 * threads.c: Use g_direct_hash instead of the rather bogus
2033 2003-01-29 Dietmar Maurer <dietmar@ximian.com>
2035 * marshal.c (mono_marshal_get_native_wrapper): add check for null
2037 (mono_marshal_get_struct_to_ptr): generate valid IL code
2038 (mono_marshal_get_ptr_to_struct): generate valid IL code
2039 (*): correctly set sig->pinvoke, we need to memdup the signature
2042 Tue Jan 28 22:57:57 CET 2003 Paolo Molaro <lupus@ximian.com>
2044 * marshal.c, marshal.h: use larger integers in mono_mb_emit_add_to_local()
2045 to avoid overflows (bug spotted and fixed by Jerome Laban <jlaban@wanadoo.fr>).
2047 Tue Jan 28 18:55:19 CET 2003 Paolo Molaro <lupus@ximian.com>
2049 * profiler.c: provide more callers information.
2051 2003-01-28 Dietmar Maurer <dietmar@ximian.com>
2053 * marshal.c (mono_marshal_get_managed_wrapper): generate valid IL code
2055 * appdomain.h:added fix from Patrik: _MonoAppDomain is a MBR object
2057 * marshal.c (mono_marshal_get_native_wrapper): generate valid IL code
2059 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
2061 * icall.c: (ves_icall_System_CurrentTimeZone_GetTimeZoneData): raise an
2062 exception instead of going into an infinite loop on dates which it
2065 * string-icalls.c (ves_icall_System_String_get_Chars): raise
2066 out-of-range exception if needed.
2068 * class.c (mono_class_setup_vtable): allow a virtual method to provide
2069 an implementation for an interface method and to override an inherited
2070 method at the same time.
2071 Imagine a scenario when a virtual method is used to override a
2072 virtual abstract method in a parent class, and this same method
2073 provides an implementation for an method inherited from an interface.
2074 In this case, the interface resolution code will set im->slot, which
2075 means that the virtual method override pass will skip this method
2076 which means a pointer to the abstract method inherited from the parent
2077 will remain in the vtable of this non-abstract class.
2079 * class.c: (mono_class_setup_vtable): continue search for a real
2080 method if only an abstract method is found.
2082 Mon Jan 27 17:12:19 CET 2003 Paolo Molaro <lupus@ximian.com>
2084 * reflection.c: add size to encoding for ByValStr and ByValArray
2085 marshal blob (from "Jerome Laban" <jlaban@wanadoo.fr>).
2087 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
2089 * class.c (mono_class_setup_vtable): pass the override info as an
2092 * class.c (mono_class_setup_vtable): set the slot of overriding methods
2095 * reflection.c (ensure_runtime_vtable); add support for method
2098 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
2100 * reflection.c (resolution_scope_from_image): Hack to work to work with
2103 * reflection.c (mono_image_typedef_or_ref): renamed to ..._aux and
2104 added a 'force_ref' argument to force this function to allways return
2105 a TypeRef. This is needed by mono_image_get_memberref_token ().
2107 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
2109 * reflection.c (mono_image_get_type_info): interfaces really don't have
2112 * reflection.c (mono_image_basic_init): fill out missing fields of
2115 * reflection.c (mono_image_basic_init): Invoke assembly load hooks for
2116 dynamic assemblies. This is required so dynamic assemblies show up in
2117 AppDomain.GetAssemblies (), emit an AssembyLoadEvent, gets searched by
2118 Type::GetType() etc. This is consistent with MS behaviour.
2120 * image.c image.h reflection.c: add newly created classes to the name
2121 cache so mono_class_get () will find them.
2123 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
2125 First part of changes to get IKVM.NET running under mono.
2127 * appdomain.h, appdomain.c: added new function
2128 mono_domain_try_type_resolve() which will emit TypeResolve events.
2129 This function will call AppDomain::DoTypeResolve to do the actual work.
2131 * class.h, class.c, loader.c, object.c, reflection.h, reflection.c:
2132 moved existing code dealing with dynamic tokens to a new function
2133 called mono_reflection_lookup_dynamic_token (). This function will
2134 raise TypeResolve events when appropriate. Since reflection.c is not
2135 part of libmetadata, a new hook function called
2136 mono_lookup_dynamic_token() is added to class.c which will call this.
2138 * assembly.h assembly.c: make the invoke_load_hook function public,
2139 so it can be called for dynamic assemblies.
2141 * icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): skip interfaces since they do not have initializers.
2143 * icall.c (ves_icall_type_from_name): emit a TypeResolve event if the
2146 * reflection.c reflection.h: change MonoDynamicAssembly.tokens to a
2147 MonoGHashTable, since it contains pointers to objects which the GC
2150 * assembly.c (search_loaded): remove unused variable.
2152 Mon Jan 27 12:18:45 CET 2003 Paolo Molaro <lupus@ximian.com>
2154 * object.c: fixed issue exposed by gcc-generated IL programs
2155 that use RVA data for pointers.
2157 2003-01-25 Martin Baulig <martin@ximian.com>
2159 * threads.c (start_wrapper): Moved the initialization of
2160 `start_func' above the mono_new_thread_init() call to which we
2161 pass it as argument.
2163 2003-01-24 Martin Baulig <martin@ximian.com>
2165 * threads.h (MonoThreadCallbacks): Pass the thread ID instead of
2166 the MonoThread pointer.
2168 2003-01-21 Miguel de Icaza <miguel@ximian.com>
2170 * icall.c: Rename `PowImpl' to Pow.
2172 2003-01-23 Dick Porter <dick@ximian.com>
2174 * threads.c (start_wrapper): Create a Thread object if needed, so
2175 the Main() thread can do the class initialisation in a subthread
2176 that has been set up to allow managed code execution.
2178 Pass the thread ID instead of the MonoThread pointer to the thread
2179 start and attach callbacks. This change is required, because the
2180 jit thread start callback must be called _before_ the Thread
2181 object can be created.
2183 (mono_thread_init): Removed much object creation code that is no
2184 longer needed. No managed code is called from here now.
2186 * object.c (mono_runtime_exec_managed_code): Create a subthread
2187 for Main, and call back to the runtime to use it.
2188 Set the exit code when Main exits.
2190 * gc.c: Make sure domain finalisation happens in a subthread.
2191 Re-enable threaded GC, fixing bug 31333 (again).
2193 * environment.c: System.Environment internall calls (so far just
2194 ExitCode is here, the others are still in icall.c)
2196 * appdomain.c (mono_runtime_cleanup): All threads running managed
2197 code should have finished before mono_runtime_cleanup() is
2198 reached, so no need to clean up threads.
2200 2003-01-22 Martin Baulig <martin@ximian.com>
2202 * appdomain.h (MonoThreadStartCB): Added `MonoThread *thread' and
2203 `gpointer func' arguments.
2204 (MonoThreadAttachCB): New typedef; like the old MonoThreadStartCB,
2205 but added `MonoThread *thread' argument.
2206 (mono_runtime_init): The last argument is now a MonoThreadAttachCB.
2208 * threads.c (mono_new_thread_init): Added `gpointer func' argument
2209 and pass it to the mono_thread_start_cb callback.
2210 (mono_install_thread_callbacks): New public function to install a
2211 set of callbacks which are set by the debugger.
2212 (mono_thread_init): The last argument is now a MonoThreadAttachCB.
2214 2003-01-22 Martin Baulig <martin@ximian.com>
2216 * Makefile.am: Install debug-mono-symfile.h.
2218 2003-01-21 Aleksey Demakov <avd@openlinksw.com>
2220 * marshal.c: fixed copy_from_managed and copy_to_unmanaged for 0 length.
2222 2003-01-21 Dietmar Maurer <dietmar@ximian.com>
2224 * added the following fix from Jackson Harper <jackson@latitudegeo.com>
2225 * class.c (mono_ptr_class_get): correctly set access levels of pointers
2226 (mono_array_class_get): correctly set access levels of arrays
2228 2003-01-20 Patrik Torstensson
2229 * image.h (MonoAssemblyName): changed major, minor, build, revision
2230 from signed to unsigned.
2232 2003-01-20 sean kasun <skasun@azstarnet.com>
2234 * reflection.c (load_cattr_value): Now this handles
2235 MONO_TYPE_SZARRAY. Fixes bug #35629
2237 2003-01-20 Miguel de Icaza <miguel@ximian.com>
2239 * marshal.c (emit_struct_conv): Handle MONO_TYPE_PTR as an
2242 2003-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2244 * decimal.c: fixed bug #26056.
2246 2003-01-17 Martin Baulig <martin@ximian.com>
2248 * gc.c: Raise an ExecutionEngineException instead of using g_error().
2250 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2253 (mono_get_exception_type_initialization): new function.
2255 * object.c: throw a TypeInitializationException when an exception is
2256 thrown invoking the class constructor.
2258 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2260 * reflection.c: fixed attribute reading.
2262 2003-01-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2265 (ves_icall_type_from_name): make it work as MS. Ie, if no assembly name
2266 provided, look for the type in the calling assembly and then in
2267 mscorlib; if the assembly name is provided, only try that one.
2269 Tue Jan 14 14:52:52 CET 2003 Paolo Molaro <lupus@ximian.com>
2271 * object.c: register the vtable before there is a chance it's
2272 queried again recursively.
2274 2003-01-13 Duncan Mak <duncan@ximian.com>
2276 * Makefile.am (libmonoruntime_la_SOURCES): Change gc.h to
2279 2003-01-12 Patrik Torstensson <totte@race-x-change.com>
2281 * string-icall.[c|h], icall.c: Added support for CompareOrdinal mode
2283 2003-01-11 Martin Baulig <martin@ximian.com>
2285 * debug-mono-symfile.h (MONO_SYMBOL_FILE_DYNAMIC_VERSION): Incremented
2286 this to 20 for the release.
2288 2003-01-10 Dietmar Maurer <dietmar@ximian.com>
2290 * marshal.c (emit_struct_conv): added support for EXPLICIT_LAYOUT
2292 * loader.c (mono_method_get_marshal_info): bug fix
2294 * marshal.c (mono_marshal_get_ptr_to_struct): don't convert
2295 structures with explicit layout
2297 Fri Jan 10 15:58:09 CET 2003 Paolo Molaro <lupus@ximian.com>
2299 * profiler.c: made the output more readable (and sorted).
2300 Added caller information for the allocation profiler.
2302 2003-01-09 Sebastien Pouliot <spouliot@videotron.ca>
2304 * icall.c, rand.c, rand.h: Prepended RNG functions with Internal.
2306 2003-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2308 * icall.c: added ves_icall_System_Activator_CreateInstanceInternal. Used
2311 Thu Jan 9 19:43:11 CET 2003 Paolo Molaro <lupus@ximian.com>
2313 * object.c, profiler.h, profiler.c, profiler-private.h:
2314 Added object allocation profiler.
2316 Thu Jan 9 16:17:00 CET 2003 Paolo Molaro <lupus@ximian.com>
2318 * reflection.h, reflection.c: handle global methods.
2319 Compress blob entries.
2321 Thu Jan 9 15:54:53 CET 2003 Paolo Molaro <lupus@ximian.com>
2323 * marshal.c: fix compilation.
2325 2003-01-09 Dietmar Maurer <dietmar@ximian.com>
2327 * loader.c (mono_method_get_marshal_info): impl.
2329 * metadata.c (mono_metadata_field_info): use mono_metadata_get_marshal_info
2331 2003-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2333 * icall.c: applied fix from Zoltan Varga that fixes Type.IsPrimitive
2334 for reference types.
2336 Wed Jan 8 20:11:46 CET 2003 Paolo Molaro <lupus@ximian.com>
2338 * loader.c: fixed off by one error in loaded parameter names.
2340 2003-01-08 Dietmar Maurer <dietmar@ximian.com>
2342 * marshal.c (mono_marshal_get_icall_wrapper): like
2343 mono_marshal_get_native_wrapper, but simpler and use a MonoMethodSignature
2344 instead of a MonoMethod.
2346 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2348 * decimal.c: fixed bug #36537.
2350 Mon Jan 6 19:37:59 CET 2003 Paolo Molaro <lupus@ximian.com>
2352 * marshal.c: throw a missing method exception if a
2353 P/Invoke method is not found.
2355 Sun Jan 5 11:57:09 CET 2003 Paolo Molaro <lupus@ximian.com>
2357 * icall.c: allow a null this for constructors.
2359 Sat Jan 4 18:28:42 CET 2003 Paolo Molaro <lupus@ximian.com>
2361 * icall.c: raise the proper exceptions if the arguments to the
2362 internal Invoke are incorrect.
2364 2003-01-03 Dietmar Maurer <dietmar@ximian.com>
2366 * marshal.c (mono_marshal_get_ptr_to_struct): code cleanups
2368 2003-01-03 Martin Baulig <martin@ximian.com>
2370 * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2372 2002-12-31 Martin Baulig <martin@ximian.com>
2374 * debug-mono-symfile.c: Completely rewrote the type section.
2375 Instead of using individual malloc()ed fields, we use one big
2376 continuous memory area and offsets into this area.
2377 See the comments in the source code for details.
2379 2002-12-30 Martin Baulig <martin@ximian.com>
2381 * debug-mono-symfile.h (MonoDebugTypeInfo): Renamed to MonoDebugClassInfo.
2383 2002-12-30 Martin Baulig <martin@ximian.com>
2385 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Include the
2386 line number table in this data blob instead of using an external
2389 2002-12-28 Martin Baulig <martin@ximian.com>
2391 * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2393 2002-12-22 Rachel Hestilow <hestilow@ximian.com>
2395 * marshal.c (mono_marshal_get_runtime_invoke): Support MONO_TYPE_CHAR
2396 as a boxed return type.
2398 2002-12-21 Miguel de Icaza <miguel@ximian.com>
2401 (ves_icall_System_AppDomainSetup_InitAppDomainSetup): Use
2402 g_build_filename to properly get separators on the filename created.
2404 * object.h: Small change, introduce MonoMarshalByRefObject to
2405 track the layout of that structure in the C# universe as we make
2408 Thu Dec 19 16:23:19 CET 2002 Paolo Molaro <lupus@ximian.com>
2410 * object.c: removed assert to allow static fields on interfaces.
2411 * loader.c: a TypeSpec may be used for any type, not just arrays.
2413 Thu Dec 19 14:19:42 CET 2002 Paolo Molaro <lupus@ximian.com>
2415 * class.c, class.h: added mono_class_array_element_size ().
2416 Ignore static methods in interfaces.
2418 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2420 * threads.c: fixed the build under cygwin.
2422 Wed Dec 18 18:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
2424 * reflection.c: handle nullref constants. Allocate keys for
2425 reflection handles with the GC.
2427 Wed Dec 18 11:34:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2429 * threads.c, threads.h: added mono_thread_get_abort_signal()
2430 to get a suitable signal for thread abort.
2432 Wed Dec 18 11:26:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2434 * metadata.c: fix handling of ExportedType table.
2436 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2438 * icall.c: added WriteWindowsDebugString internal call.
2440 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2442 * reflection.h: added fields to match C# implementation.
2444 2002-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2446 * icall.c: patch from Jaroslaw Kowalski to fix Environment.MachineName.
2448 2002-12-12 Juli Mallett <jmallett@FreeBSD.org>
2450 * gc.h, gc-internal.h: Rename header for GC internal calls to
2451 gc-internal.h from gc.h as to not clash with Boehm GC having its
2452 header installed as <gc.h> in outside include paths.
2453 * appdomain.c, gc.c, icall.c, object.c: Account for aforementioned.
2454 * threads.c: If SIGRTMIN is not defined, fall back to SIGUSR1.
2456 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2458 * icall.c: assign minor, build and revision in FillName.
2460 2002-12-11 Zoltan Varga <vargaz@freemail.hu>
2462 * image.h reflection.h reflection.c class.h class.c loader.c object.c:
2463 Added support for running code generated by Reflection.Emit.
2465 2002-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2467 * appdomain.c: check for NULL argument in LoadFrom.
2469 2002-12-10 Dick Porter <dick@ximian.com>
2471 * threads.c: WaitHandle fixes from Tum <tum@veridicus.com>
2473 2002-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2475 * appdomain.c: fix buglet when building exe file name. Handle full
2476 assembly name (needed after latest changes to AssemblyName).
2478 (mono_image_close): free some hashtables.
2480 2002-12-05 Dietmar Maurer <dietmar@ximian.com>
2482 * threads.c (ves_icall_System_Threading_Thread_Abort): we use SIGRTMIN
2483 instead of SIGUSR1, because SIGUSR1 is used by the pthread implementation
2484 on some systems (redhat 7.3)
2486 Thu Dec 5 16:13:40 CET 2002 Paolo Molaro <lupus@ximian.com>
2488 * threads.c: delete the critical section of a sync block,
2489 spotted and fixed by tum@veridicus.com (Thong (Tum) Nguyen).
2491 Thu Dec 5 12:52:52 CET 2002 Paolo Molaro <lupus@ximian.com>
2493 * pedump.c, cil-coff.h, monosn.c: add strong name cli header flag.
2495 2002-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2497 * appdomain.[ch]: handle the assembly preload event to try loading the
2498 assemblies using the paths we have in the current domain.
2500 * assembly.[ch]: created an assembly preload hook that is called to try
2501 loading the assembly by other means that the ones provided here.
2503 * domain.c: initialize the domain search path.
2505 From now on, assemblies (TODO: except corlib and System) are loaded
2506 according to these rules when using mono_assembly_load ():
2508 1. It tries to load the assembly from the ApplicationBase
2509 of the current domain appending .dll and .exe (TODO: have to
2510 try loading from name/name.dll and name/name.exe).
2512 2. It tries the search path specified in PrivateBinPath for the
2513 current domain (if any).
2515 3. Previous behavior.
2517 Wed Dec 4 16:02:25 CET 2002 Paolo Molaro <lupus@ximian.com>
2519 * icall.c: implemented GetInterfaceMap() related icall.
2520 * domain.c, loader.h: load MethodInfo in mono_defaults.
2522 Wed Dec 4 11:02:30 CET 2002 Paolo Molaro <lupus@ximian.com>
2524 * gc.c: disable the finalizer thread for now, untill all the issues
2525 with it are resolved.
2527 Wed Dec 4 10:44:01 CET 2002 Paolo Molaro <lupus@ximian.com>
2529 * string-icalls.c: handle embedded nulls in string ctor when the
2530 length is specified.
2532 Tue Dec 3 19:29:20 CET 2002 Paolo Molaro <lupus@ximian.com>
2534 * class.c: look for explicit interface implementation in parent
2537 2002-12-03 Dietmar Maurer <dietmar@ximian.com>
2539 * gc.c (run_finalize): dont run the finalizer (strange behaviour on rh7.3)
2541 Tue Dec 3 12:40:06 CET 2002 Paolo Molaro <lupus@ximian.com>
2543 * gc.c: protect handles with a critical section.
2545 2002-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2548 (ves_icall_type_from_name): it now has throwOnError and ignoreCase
2549 parameters. If no assembly specified, try getting the type from all
2550 the assemblies in the current domain, else, load the assembly and get
2553 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2555 * marshal.c: applied patch from Aleksey Demakov that fixes
2556 ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni.
2558 2002-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2560 * icall.c: fixed get_location.
2562 2002-11-28 Dietmar Maurer <dietmar@ximian.com>
2564 * icall.c: moved MONO_ARCH_SAVE_REGS to the end of the
2565 declarations to make it work with older gcc.
2567 * loader.c (mono_get_method): set signature->pinvoke for native calls
2569 2002-11-20 Dick Porter <dick@ximian.com>
2571 * threads.c (mono_thread_init): Set the main thread's handle
2573 Tue Nov 19 14:15:34 CET 2002 Paolo Molaro <lupus@ximian.com>
2575 * gc.c: allow compilation without GC support. Changed to match the
2578 Mon Nov 18 18:41:51 CET 2002 Paolo Molaro <lupus@ximian.com>
2580 * gc.c: don't start the finalizer thread if the env var GC_DONT_GC is set.
2582 Mon Nov 18 16:35:22 CET 2002 Paolo Molaro <lupus@ximian.com>
2584 * reflection.c: set a public key token on the core assemblies.
2586 2002-11-18 Dick Porter <dick@ximian.com>
2588 * threads.c: Split out some thread initialisation so that other
2589 files can set the start callback function.
2591 * gc.c: Run finalisers in a separate thread, to avoid stack
2592 overflow. Fixes bug 31333.
2594 * appdomain.c: Set up GC finalisation thread.
2598 * domain.c: Use gc.h macros for GC_malloc
2600 2002-11-15 Dick Porter <dick@ximian.com>
2604 * appdomain.c: Removed mono_runtime_init_with_attach(),
2605 mono_thread_create_arg(), and mono_thread_init_with_attach(), by
2606 merging the extra parameter with the existing function. Removed
2607 unneeded code in mono_thread_attach().
2609 2002-11-14 Dietmar Maurer <dietmar@ximian.com>
2611 * image.c (mono_image_loaded_by_guid): a method to get loaded
2613 (load_metadata_ptrs): we store the guid as string.
2615 2002-11-11 Dietmar Maurer <dietmar@ximian.com>
2617 * assembly.c (mono_assembly_open): check the guid of aot compiled lib.
2619 * metadata.c (mono_guid_to_string): imported method form Zoltan
2620 Varga (slightly modified)
2622 * assembly.c (mono_assembly_open): load precompiled code
2624 * loader.h (MonoMethod): we store the method token for use in the
2627 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2629 * appdomain.c: insert the loaded assemblies in the domain->assemblies in
2630 the hook function called when an assembly is loaded.
2632 * domain.c: Modified file.
2633 (mono_domain_assembly_load): removed hash table insertion of assemblies.
2637 2002-11-07 Miguel de Icaza <miguel@ximian.com>
2639 * reflection.c: Map PEFileKind to the value expected by the WinNT
2642 2002-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2644 * rand.c: use /dev/urandom. If it fails to open, use the previous one.
2645 Read until the buffer is filled completely.
2647 2002-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2649 * icall.c: implemented MonoType.InternalGetEvent ().
2651 2002-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2653 * appdomain.c: implemented InitAppDomainSetup. Delayed
2654 AppDomain.SetupInformation until mono_runtime_exec_main, where we get
2657 * assembly.c: base_dir is now an absolute path ending with
2660 * icall.c: modified get_location according to the above changes.
2662 * object.c: init AppDomain.SetupInformation for the default domain after
2663 we have the entry assembly.
2665 * domain.c: when unloading a domain, setup = NULL.
2667 2002-11-04 Dietmar Maurer <dietmar@ximian.com>
2669 * marshal.c (emit_ptr_to_str_conv): try to fix bug 29548
2671 Sun Nov 3 15:39:28 CET 2002 Paolo Molaro <lupus@ximian.com>
2673 * object.h, object.c: introduced mono_object_get_virtual_method ()
2674 to lookup the method invoked on an object when a callvirt is done on
2676 * icall.c: make MethodInfo::Invoke() always do a virtual call.
2678 2002-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2680 * appdomain.c: invoke AssemblyLoad and AsemblyResolve events in the
2681 current domain when loaded an assembly and failed to load it.
2683 * icall.c: changed ...Assembly_GetType to Assembly_InternalGetType.
2685 2002-10-31 Dick Porter <dick@ximian.com>
2689 * file-io.c: Return the error status in a parameter, as the
2690 GetLastError() value has long since been blown away if we try and
2691 look it up in a subsequent internal call invocation. Delete the
2692 GetLastError() internal call, because it's useless.
2694 2002-10-31 Dietmar Maurer <dietmar@ximian.com>
2696 * class.[ch]: added cast_class to fix bug 29517
2698 Wed Oct 30 19:37:32 CET 2002 Paolo Molaro <lupus@ximian.com>
2700 * marshal.c: create valid IL code in the filter clause:
2701 the new JIT is less forgiving:-)
2703 2002-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2705 * icall.c: removed get_property internal call.
2707 2002-10-25 Zoltan Varga <vargaz@freemail.hu>
2709 * appdomain.h domain.c: Added an ID to appdomains.
2711 * threads.c threads.h icall.c: Implement icall
2712 Thread:GetDomainID(), and remove unused icall
2713 CurrentThreadDomain_internal.
2715 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2717 * icall.c: Don't recurse through the base types in GetConstructor.
2720 Thu Oct 24 16:56:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
2722 * mempool.h, mempool.c: added mono_mempool_empty() and
2723 mono_mempool_stats().
2725 2002-10-23 Dick Porter <dick@ximian.com>
2729 * icall.c: Added MonoIO.GetFileType internal call
2731 2002-10-17 Dick Porter <dick@ximian.com>
2733 * appdomain.c (mono_runtime_cleanup): Don't signal the async
2734 delegate semaphore before waiting for all threads to finish,
2735 because new threads can also call async delegates. Fixes bug
2738 * threadpool.c (async_invoke_thread): Only wait for 500ms instead
2739 of 3 seconds, in case another async job is queued. (This part is
2740 needed because the bug fix reintroduced the 3s exit lag.) This
2741 makes the mono_runtime_shutdown flag superfluous.
2743 Thu Oct 17 13:11:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
2745 * reflection.c: include ehader size in method section headers.
2746 Really check for suplicated modules entries.
2748 2002-10-17 Martin Baulig <martin@gnome.org>
2750 * debug-mono-symfile.c: Added back support for locals.
2752 2002-10-14 Martin Baulig <martin@gnome.org>
2754 * debug-mono-symfile.c: Added MONO_TYPE_I, MONO_TYPE_U and
2757 2002-10-14 Martin Baulig <martin@gnome.org>
2759 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetType): Use
2760 mono_class_get() instead of looking in the class cache.
2762 2002-10-13 Martin Baulig <martin@gnome.org>
2764 * debug-mono-symfile.c: Set version number to 28, include the
2765 signature in method names.
2767 2002-10-13 Martin Baulig <martin@gnome.org>
2769 * debug-mono-symfile.h: Set version number to 27.
2771 2002-10-11 Martin Baulig <martin@gnome.org>
2773 * gc.c: Don't register/unregister NULL pointers as disappearing links.
2775 Thu Oct 10 14:56:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
2777 * metadata.c, metadata.h: added helper function to allocate signatures.
2779 2002-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2781 * icall.c: added internal call to get the location of machine.config.
2783 2002-10-08 Martin Baulig <martin@gnome.org>
2785 * debug-mono-symfile.c: Ignore classes with a pending init for the
2788 2002-10-03 Dick Porter <dick@ximian.com>
2790 * threads.c: Freebsd pthread_t is a pointer
2792 2002-10-03 Dick Porter <dick@ximian.com>
2794 * socket-io.c: Implemented GetHostName_internal
2796 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2799 (mono_config_parse_file): don't leak the text.
2801 2002-10-02 Martin Baulig <martin@gnome.org>
2803 * debug-mono-symfile.c: Added support for methods.
2805 2002-10-01 Martin Baulig <martin@gnome.org>
2807 * debug-mono-symfile.c: Don't emit methods and line numbers for
2808 the dynamic symbol file, just write the type table. We can easily
2809 have an external helper program which creates a symbol file for an
2812 2002-10-01 Dick Porter <dick@ximian.com>
2814 * threads.c (ves_icall_System_Threading_Thread_Start_internal):
2815 Only add the handle to the cleanup array when we're about to
2816 launch the thread. Bug 31425 deadlocked when the test was run on
2819 2002-10-01 Martin Baulig <martin@gnome.org>
2821 * debug-mono-symfile.c: Added support for properties.
2823 Fri Sep 27 18:55:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
2825 * reflection.c: unaligned store fix from Mark Crichton
2826 <crichton@gimp.org>.
2828 2002-09-27 Martin Baulig <martin@gnome.org>
2830 * icall.c ("System.Reflection.Assembly::GetReferencedAssemblies"):
2833 Fri Sep 27 15:38:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
2835 * assembly.h, assembly.c: use a sane API to hook into the assembly
2836 loading process instead of a useless special-purpouse hack
2837 (ngen needs a hook, too, for example).
2839 2002-09-27 Dick Porter <dick@ximian.com>
2841 * threads.c (mono_thread_init): Call GetCurrentProcess() so
2842 io-layer can set up some process handle info. Not needed on w32,
2843 but doesn't hurt either.
2845 * process.c: Pass the program name in the second parameter to
2846 CreateProcess, so the path is searched. Include the working
2847 directory. Implemented process name, process enumeration, and some
2848 process detail internal calls.
2850 * icall.c: Added internal calls for process lookup, and some
2853 2002-09-26 Martin Baulig <martin@gnome.org>
2855 * assembly.c (mono_install_open_assembly_hook): New global
2856 function to install a function to be invoked each time a new
2858 (mono_assembly_open): Run this callback function if set.
2860 * debug-mono-symfile.c: Put back line numbers for the dynamic
2861 symbol file and also record the .il file as source file. This
2862 allows us to install the temporary symbol file as `file.dbg' just
2863 like a compiler-generated one.
2865 2002-09-26 Nick Zigarovich <nick@chemlab.org>
2867 * Corrected typo in gc.c (BOHEM vs BOEHM).
2869 2002-09-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2871 * icall.c: fixed bug #31235 by copying a few lines from GetMethods to
2872 GetProperties. Also avoid calling g_slist_length in GetProperties and
2875 Wed Sep 25 22:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
2877 * reflection.c: avoid unaligned stores (bug spotted by
2878 Mark Crichton <crichton@gimp.org>).
2880 2002-09-25 Martin Baulig <martin@gnome.org>
2882 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Use pointers
2883 instead of guint64 for addresses and added prologue/epilogue info.
2885 2002-09-25 Martin Baulig <martin@gnome.org>
2887 * debug-mono-symfile.h (MonoDebugLineNumberEntry): New type to
2888 store line number info. For the dynamic symbol file, we only need
2889 to provide the JIT generated dynamic line number info for the dynamic
2892 2002-09-25 Martin Baulig <martin@gnome.org>
2894 * debug-mono-symfile.h: Incremented version number.
2896 2002-09-24 Martin Baulig <martin@gnome.org>
2898 * class.c (mono_debugger_class_init_func): New global function
2900 (mono_class_init): If mono_debugger_class_init_func is non-NULL,
2903 * debug-mono-symfile.c (mono_debug_symfile_add_type): New
2904 function. This is called via the mono_debugger_class_init_func
2905 hook to add all types to the dynamic type table.
2906 (ves_icall_MonoDebugger_GetType): New interncall to get a class
2907 from its metadata token.
2909 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetType"):
2910 New interncall for the debugger.
2912 2002-09-24 Nick Drochak <ndrochak@gol.com>
2914 * icall.c (ves_icall_System_Enum_ToObject): validate the type parameter
2915 before using it in case it is null.
2917 Tue Sep 24 13:24:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
2919 * metadata.c: allow custom modifiers in local var signatures
2920 (bug spotted by Zoltan Varga).
2922 Tue Sep 24 12:12:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
2924 * class.c: deal with the <Module> class that may have a NULL vtable.
2927 Tue Sep 24 11:28:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2929 * image.c, image.h: more strong name helpers.
2930 * monosn.c: more work: convert pem keys to cryptoapi format.
2932 Tue Sep 24 11:27:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
2934 * string-icalls.c: speedup IndexOf.
2936 Tue Sep 24 11:17:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2938 * icall.c: updates from Zoltan.2.Varga@nokia.com.
2940 Tue Sep 24 11:09:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
2942 * icall.c: cleanup: use mono_object_domain ().
2944 2002-09-23 Martin Baulig <martin@gnome.org>
2946 * debug-mono-symfile.c: Improved type support.
2948 2002-09-22 Martin Baulig <martin@gnome.org>
2950 * debug-mono-symfile.c: Added support for reference types and strings.
2952 2002-09-22 Martin Baulig <martin@gnome.org>
2954 * debug-mono-symfile.c: Started to work on the type table.
2956 2002-09-21 Martin Baulig <martin@gnome.org>
2958 * debug-mono-symfile.c: Largely reworked the symbol table format.
2959 The symbol table is now incrementally updated each time a new
2960 method is added. We're now also using our own magic and version
2961 so that you don't need to recompile all your classes if the
2962 dynamic table changes.
2963 (mono_debug_update_mono_symbol_file): Removed.
2964 (mono_debug_symfile_add_method): New function to add a method.
2966 2002-09-21 Martin Baulig <martin@gnome.org>
2969 ("System.Reflection.Assembly::MonoDebugger_GetLocalTypeFromSignature"):
2972 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetLocalTypeFromSignature):
2973 New interncall to get a method from its metadata token.
2975 2002-09-21 Martin Baulig <martin@gnome.org>
2977 * debug-mono-symfile.c: Create type table.
2979 2002-09-20 Martin Baulig <martin@gnome.org>
2981 * debug-mono-symfile.c: Reflect latest Mono.CSharp.Debugger changes.
2983 2002-09-20 Martin Baulig <martin@gnome.org>
2985 * debug-mono-symfile.c: Provide information about params and locals.
2987 2002-09-20 Martin Baulig <martin@gnome.org>
2989 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
2992 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
2993 interncall to get a method from its metadata token.
2995 2002-09-20 Martin Baulig <martin@gnome.org>
2997 * debug-mono-symfile.c: Added a few checks for method->header
2998 being non-NULL. This should never happen, but for the moment
2999 let's use a g_warning() rather than a g_assert().
3001 2002-09-19 Mark Crichton <crichton@gimp.org>
3003 * gc.c: ves_icall_System_GCHandle_FreeHandle made a call to libgc
3004 even if support for it isn't present. Added an #ifdef to fix this.
3006 * socket-io.c: Added checks back for Solaris support.
3008 2002-09-19 Martin Baulig <martin@gnome.org>
3010 * debug-mono-symfile.c (read_string, write_string): Reflect latest
3011 changes in the symbol file format.
3013 2002-09-18 Martin Baulig <martin@gnome.org>
3015 * debug-mono-symfile.c: Set version number to 21.
3017 2002-09-18 Dick Porter <dick@ximian.com>
3019 * threads.c (mon_new): Use the GC_MALLOC macro to hide differences
3020 on netbsd. Fixes bug 30051.
3022 2002-09-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3025 (set_version_from_string): little fix.
3027 Mon Sep 16 18:57:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
3029 * monosn.c, Makefile.am: added strong name utility.
3030 * reflection.h, reflection.c: implemented delayed signing,
3031 locale, version and hash id assembly attributes.
3033 Mon Sep 16 18:51:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3035 * loader.c, metadata.c: load param attributes in signatures.
3037 2002-09-16 Martin Baulig <martin@gnome.org>
3039 * debug-mono-symfile.c: Added string table with all method names.
3041 2002-09-14 Martin Baulig <martin@gnome.org>
3043 * debug-mono-symfile.h (MonoSymbolFile): Added method range table for
3046 Fri Sep 13 16:04:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
3048 * reflection.c: record the public key token of referenced assemblies.
3050 Fri Sep 13 15:41:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3052 * image.c, image.h: added functions to get the strong name and the
3053 public key of an assembly.
3054 * pedump.c: use them.
3056 2002-09-12 Dietmar Maurer <dietmar@ximian.com>
3058 * marshal.c (emit_str_to_ptr_conv): support marshalling of delegates.
3060 2002-09-12 Miguel de Icaza <miguel@ximian.com>
3062 * marshal.c (mono_marshal_get_managed_wrapper): Added
3065 2002-09-11 Martin Baulig <martin@gnome.org>
3067 * gc.c: Call GC_unregister_disappearing_link() on all links when
3068 finalizing them, this is necessary to aviod a crash in boehm's
3071 Wed Sep 11 17:06:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3073 * gc.c: handle GetTarget for finalized objects spotted and fixed by
3076 Wed Sep 11 15:27:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
3078 * icall.c: implemented MonoType::Module.
3079 * reflection.c, reflection.h: mono_module_get_object () from
3080 Tomi Pakarinen <tomi.pakarinen@welho.com>.
3082 Wed Sep 11 12:53:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
3084 * icall.c: ignore overridden methods in GetMethods ().
3085 Fix for FieldInfo::SetValue().
3086 * object.c: handle float/double in runtime invoke.
3088 Tue Sep 10 15:51:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
3090 * object.c: allow a constructor to be called again on an object.
3092 Tue Sep 10 11:58:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
3094 * class.h, class.c: move field layout code to it's own function and
3095 export it. Get an interface id earlier. Move fields in MonoClass
3096 so they are more cache friendly and align the bitfields.
3097 * loader.c: temporary handle get_param_names() for a runtime method.
3098 * reflection.c, reflection.h: more code to handle runtime creation of
3101 2002-09-09 Martin Baulig <martin@gnome.org>
3103 * marshal.c (mono_marshal_get_native_wrapper): We need to use a special
3104 signature with the pinvoke field being set for the actual call.
3106 Sat Sep 7 10:12:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3108 * icall.c: removed some unused icalls. Start of map of glib charsets
3109 to corlib names. Implemented RuntimeMethod::GetFunctionPointer ().
3111 Fri Sep 6 16:08:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3113 * debug-helpers.c: break infinite loop (found and fixed by
3114 Holger Arnold <harnold@gmx.de>).
3116 Thu Sep 5 18:50:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
3118 * icall.c: target may be null in create_delegate.
3120 Thu Sep 5 17:42:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
3122 * marshal.c: handle a boolean return type.
3124 Thu Sep 5 13:09:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
3126 * gc.c: put HIDE_POINTER/REVEAL_POINTER only here.
3128 Wed Sep 4 19:23:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
3130 * gc.c: fix weakreferences.
3132 Wed Sep 4 13:59:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
3134 * icall.c: added icall to get default codepage.
3136 2002-09-03 Dick Porter <dick@ximian.com>
3139 * threads.c: Use MonoThread instead of MonoObject where
3142 Store running thread objects in a hash table, so that we have all
3143 the info to hand when waiting for them to finish
3144 (means we don't need OpenThread() any more, so mingw builds should
3145 be fully functional again.)
3148 * object.h: Added thread ID to MonoThread
3150 2002-09-03 Martin Baulig <martin@gnome.org>
3152 * icall.c (System.Reflection.Assembly::get_location): New interncall.
3154 2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3156 * icall.c: fixed leak in get_temp_path. Thanks lupus.
3158 2002-09-03 Martin Baulig <martin@gnome.org>
3160 * debug-helpers.c (mono_disasm_code_one): Added `const guchar **endp'
3161 argument to store the end address of the disassembled instruction.
3163 * debug-mono-symfile.h (MonoDebugMethodInfo, MonoDebugVarInfo): Moved
3164 here from debug-symfile.h.
3165 (MonoDebugMethodJitInfo): Moved all fields which are filled out by the
3166 JIT into this struct.
3167 (MonoSymbolFile): Added `char *image_file' field.
3168 (MonoDebugGetMethodFunc): Removed.
3169 (mono_debug_update_mono_symbol_file): Removed the hash table argument.
3170 (mono_debug_create_mono_symbol_file): Removed the `source_file' argument.
3171 (mono_debug_find_method): New method.
3173 * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): Always
3174 create a full symbol file.
3175 (mono_debug_update_mono_symbol_file): Don't distinguish between dynamic
3176 and static symbol files.
3177 (mono_debug_find_method): The symbol file keeps an internal method hash,
3178 call this to get a MonoDebugMethodInfo from a MonoMethod.
3180 * debug-symfile.[ch]: Removed.
3182 2002-08-29 Miguel de Icaza <miguel@ximian.com>
3184 * image.c (do_mono_image_open): Remove linker version check.
3186 2002-08-29 Dietmar Maurer <dietmar@ximian.com>
3188 * marshal.c (mono_marshal_get_managed_wrapper): don't cache
3189 wrappers for instance methods.
3191 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3193 * icall.c: added ves_icall_System_IO_Path_get_temp_path.
3195 2002-08-28 Dick Porter <dick@ximian.com>
3197 * Makefile.am: Export HOST_CC for w32 builds
3199 Tue Aug 27 18:34:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
3201 * file-io.c process.c: MonoString are null terminated, no
3202 need for mono_string_to_utf16() anymore.
3204 Tue Aug 27 17:51:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3206 * icall.c, unicode.h, unicode.c: removed unused iconv stuff.
3208 Tue Aug 27 16:38:58 CEST 2002 Paolo Molaro <lupus@ximian.com>
3210 * icall.c, reflection.h: speedup System.MonoType.
3212 Tue Aug 27 16:37:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
3214 * reflection.c: allow null as the value of a string argument in
3215 custom attributes constructors.
3217 2002-08-27 Martin Baulig <martin@gnome.org>
3219 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Removed the
3220 `trampoline_address' field.
3222 2002-08-27 Dietmar Maurer <dietmar@ximian.com>
3224 * marshal.c (mono_marshal_get_native_wrapper): removed wrong null
3225 check (fixes bug #29486)
3227 2002-08-27 Martin Baulig <martin@gnome.org>
3229 * debug-mono-symfile.c: Changed the file format in a way that allows us
3230 open it read-only and to use a specially malloced area for all the
3231 dynamic data. We can now also generate a symbol file on-the-fly if we're
3232 debugging IL code and there is no MCS generated symbol file for it.
3234 Mon Aug 26 16:47:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
3236 * object.c: added a define for a good string and array
3237 creation speedup (not enabled by default because we need to deal with
3240 2002-08-26 Martin Baulig <martin@gnome.org>
3242 * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): New
3243 function to create a dynamic symbol file. This is used by the
3244 debugger to create a symbol file for IL code on-the-fly.
3246 2002-08-26 Martin Baulig <martin@gnome.org>
3248 * loader.c (mono_lookup_pinvoke_call): Include the error message
3249 from g_module_error() in the error message.
3251 2002-08-24 Martin Baulig <martin@gnome.org>
3253 * debug-mono-symfile.c (mono_debug_update_mono_symbol_file): New
3254 function to update the symbol file. The symbol file is mmap()ed
3255 writable, but private. This allows us to install the symbol file
3256 together with the assembly.
3258 2002-08-24 Martin Baulig <martin@gnome.org>
3260 * debug-mono-symfile.[ch]: New files. Similar to debug-symfile.[ch]
3261 but they can read the new symbol file format which mcs is now creating.
3263 * debug-symfile.c (mono_debug_find_source_location): Moved to
3264 debug-mono-symfile.c; this is now operating on the new symbol file.
3266 2002-08-23 Martin Baulig <martin@gnome.org>
3268 * debug-helpers.c (mono_method_desc_from_method): New function to get
3269 a MonoMethodDesc from a MonoMethod.
3271 Fri Aug 23 15:54:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
3273 * object.c: fixes assertion failure caused by multiple ExecuteAssembly
3274 calls for same domain (patch by Tomi Pakarinen <Tomi.Pakarinen@iki.fi>).
3276 Fri Aug 23 12:14:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
3278 * string-icalls.[ch]: make helper methods static.
3280 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3282 * icall.c: re-applied patch to GetValueInternal. Also added R4 and R8
3283 types to it and to SetValueInternal.
3285 * object.c: Moved handle_enum label to its proper place. This was the
3288 This time i compiled mcs and gtk-sharp and they both work.
3290 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3292 * icall.c: reverted partially my previous patch until
3293 object.c:set_value handles enums correcly.
3295 2002-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3298 (ves_icall_MonoField_GetValue): changed to use mono_field_get_value.
3299 (ves_icall_System_Environment_get_MachineName): removed warning when
3300 compiling under cygwin.
3302 Thu Aug 22 18:49:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
3304 * object.c: fixed field_get_value() for reference types.
3306 2002-08-22 Dick Porter <dick@ximian.com>
3308 * socket-io.c (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal):
3309 Don't free a buffer while it's still needed. Patch from Jonathan
3310 Liger <Jonathan.liger@wanadoo.fr>
3312 2002-08-21 Miguel de Icaza <miguel@ximian.com>
3314 * icall.c (ves_icall_System_Environment_get_Platform): Add new
3317 2002-08-21 Dietmar Maurer <dietmar@ximian.com>
3319 * icall.c (ves_icall_get_method_info): s/MonoMethod/MonoReflectionMethod/
3320 (ves_icall_get_parameter_info): s/MonoMethod/MonoReflectionMethod/
3322 * marshal.c (mono_marshal_get_remoting_invoke): save lmf, because
3323 we call unmanaged code which throws exceptions.
3325 Wed Aug 21 12:56:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3327 * appdomain.h: added per-domain entry_assembly.
3328 * appdomain.c: ensure mono_runtime_exec_main () gets non-null
3330 * icall.c: Assembly::GetEntryAssembly icall.
3331 * object.c: set domain->entry_assembly in mono_runtime_exec_main().
3332 Changes above from a patch by Tomi Pakarinen <tomi.pakarinen@welho.com>.
3334 Tue Aug 20 15:42:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3336 * appdomain.h, gc.c: added mono_domain_finalize ().
3338 2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3341 (mono_print_unhandled_exception): changed g_warning by g_printerr
3342 because g_log has a 1024 characters limit (yeah, i got a big stack
3343 trace). Don't print exception name, that should be in ToString
3346 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3348 * icall.c: added ves_icall_FieldInfo_SetValueInternal.
3349 * object.c: added missing MONO_TYPE_ARRAY in mono_runtime_invoke_array.
3351 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3354 (mono_print_unhandled_exception): after previous commit, i realized
3355 that MS calls ToString on the exception. I changed this function to
3356 do that. This way we get stack_trace for free.
3358 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3361 (mono_print_unhandled_exception): invoke Message property instead of
3362 getting 'message' field from Exception. Don't allocate memory for
3363 'trace' and 'message' if not needed.
3365 2002-08-18 Dick Porter <dick@ximian.com>
3367 * unicode.c: Fix asserts to match Encoder.cs checks
3369 Fri Aug 16 21:42:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3371 * marshal.c: fix unaligned store issue and a few wrong
3372 opcode argument types.
3374 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3376 * icall.c: added GetUninitializedObjectInternal internal call.
3378 2002-08-16 Dietmar Maurer <dietmar@ximian.com>
3380 * appdomain.c (mono_runtime_invoke_in_domain): transfer Exception
3381 to the right domain.
3383 2002-08-14 Dietmar Maurer <dietmar@ximian.com>
3385 * marshal.c (mono_marshal_get_runtime_invoke): unbox value types
3387 * class.c (class_compute_field_layout): set blittable to false for Strings
3389 * appdomain.c (mono_domain_transfer_object): added support for ISerializable
3391 Wed Aug 14 17:26:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3393 * appdomain.h, reflection.c, icall.c, object.c, reflection.h:
3394 first chunk of code to create types at runtime. Code to
3395 handle ReflectedType/DeclaringType. Make reflection handles
3398 Wed Aug 14 17:24:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
3400 * class.c: set correct name in arrays.
3402 2002-08-13 Dietmar Maurer <dietmar@ximian.com>
3404 * appdomain.c (mono_domain_transfer_object): make it work with
3405 valuetypes. bug fixes.
3407 2002-08-12 Dick Porter <dick@ximian.com>
3409 * object.h: Rename some parameters to avoid c++ keywords (Patch
3410 from Joseph Wenninger <kde@jowenn.at>)
3412 Thu Aug 8 13:04:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
3414 * icall.c: added icall to implement Assembly.GetFile*.
3416 Thu Aug 8 10:18:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3418 * reflection.h, reflection.c: code to embed managed resources.
3420 Tue Aug 6 17:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3422 * class.c: move all the type size stuff into
3423 class_compute_field_layout().
3425 Tue Aug 6 11:20:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3427 * class.c: ensure enums have always the correct instance size.
3428 * unicode.c: remove wrong assert.
3430 Mon Aug 5 19:30:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
3432 * assembly.c: fix mem corruption issue.
3433 * image.h, image.c: added mono_image_get_resource () to access
3435 * icall.c: implemented Assembly.EntryPoint property and some
3436 Managed Resources related internalcalls.
3439 Mon Aug 5 18:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3441 * image.c, image.h: impemented mono_image_get_entry_point ().
3442 * appdomain.c: use mono_image_get_entry_point.
3444 Mon Aug 5 13:08:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3446 * reflection.c: support the object type argument when loading
3449 2002-08-05 Dietmar Maurer <dietmar@ximian.com>
3451 * marshal.c (mono_marshal_get_managed_wrapper): add suppport for
3452 String as return type.
3454 Fri Aug 2 21:15:42 CEST 2002 Paolo Molaro <lupus@ximian.com>
3456 * reflection.c: fix encoding of named args for custom attrs to match
3457 the ms implementation. Read them back when instantiating custom
3460 2002-08-02 Radek Doulik <rodo@ximian.com>
3462 * marshal.c (mono_mb_add_data): convert ret value to LE, suggested
3463 by Dietmar as quick fix
3464 (mono_marshal_get_delegate_begin_invoke): use sig->param_count +
3465 16 as stack size, used on more places as quick fix before Dietmar
3466 will fix it properly
3468 Fri Aug 2 17:48:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3470 * object.h, object.c: added accessors for fields and properties.
3472 Fri Aug 2 17:45:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3474 * class.c, class.h: made mono_class_get_field_from_name ()
3475 loop on parent types.
3476 Added mono_class_get_property_from_name ().
3478 Fri Aug 2 11:40:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3480 * class.c, class.h: move the code to setup the type vtable in its own
3481 function so that it can be reused also for types created at runtime.
3482 Eliminate the "class" identifier from the header file.
3483 * reflection.c: setup the vtable for enums so that we can create
3484 objects for use in SetConstant ().
3486 2002-08-02 Dietmar Maurer <dietmar@ximian.com>
3488 * marshal.c (mono_delegate_to_ftnptr): pass delegate->target
3489 instead of the delegate itself as this pointer (bug #28383)
3491 2002-08-01 Dietmar Maurer <dietmar@ximian.com>
3493 * marshal.c (mono_marshal_get_managed_wrapper): added return type
3496 Wed Jul 31 16:49:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3498 * loader.c: don't set the pinvoke bit on icalls.
3500 2002-07-31 Dietmar Maurer <dietmar@ximian.com>
3502 * debug-helpers.c (mono_method_full_name): only print a number to
3503 indicate wrapper type (so that the output is more readable in traces).
3505 2002-07-30 Dietmar Maurer <dietmar@ximian.com>
3507 * class.c (mono_class_init): include method override patch from Paolo
3509 Tue Jul 30 15:20:08 CEST 2002 Paolo Molaro <lupus@ximian.com>
3511 * icall.c: fixed GetTypeCode().
3513 2002-07-29 Dietmar Maurer <dietmar@ximian.com>
3515 * threads.c (ves_icall_System_Threading_Thread_Thread_internal):
3516 use real delegate invoke function to make it work with multicast
3517 delegates (fix bug# 28291).
3519 Fri Jul 26 11:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3521 * object.c: load constant strings.
3523 Fri Jul 26 11:36:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3525 * reflection.c: no magic numbers.
3526 * tabledefs.h: security action enum.
3528 Fri Jul 26 11:22:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3530 * assembly.c: fix possible memory corruption.
3532 Thu Jul 25 13:58:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
3534 * reflection.h, reflection.c: added support for linking resources.
3535 * verify.c: check we have an updated corlib.
3537 2002-07-25 Dietmar Maurer <dietmar@ximian.com>
3539 * marshal.c (mono_marshal_get_native_wrapper): correctly marshal
3541 (mono_marshal_string_array): null terminate unmanaged string arrays.
3542 (mono_marshal_get_managed_wrapper): print warning for arrays (not implemented)
3544 Wed Jul 24 13:32:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3546 * icall.c: Type.GetType () can now return also types from the
3549 Wed Jul 24 13:04:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3551 * loader.h, loader.c: stack walking support.
3552 * icall.c: implemented GetCurrentMethod, GetExecutingAssembly,
3555 2002-07-24 Dietmar Maurer <dietmar@ximian.com>
3557 * marshal.c: added optimisations for blittable types
3559 * class.c (mono_array_class_get): do not set blittable attribute on arrays
3560 (mono_class_setup_mono_type): set blittable attribute for single
3563 * marshal.c (mono_string_utf8_to_builder): impl.
3564 (mono_string_builder_to_utf8): impl.
3565 (mono_marshal_get_native_wrapper): impl. StringBuilder marshaling
3567 2002-07-23 Dietmar Maurer <dietmar@ximian.com>
3569 * marshal.c (mono_marshal_get_native_wrapper): impl. byref types
3570 (mono_marshal_get_managed_wrapper): impl. byref types
3572 2002-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3575 (search_method): don't display debug message.
3577 2002-07-22 Dietmar Maurer <dietmar@ximian.com>
3579 * metadata.c (mono_type_stack_size): removed temporary fix for new gcc
3581 Mon Jul 22 18:17:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3583 * appdomain.c: set the missing filename when throwing exception.
3585 2002-07-22 Dietmar Maurer <dietmar@ximian.com>
3587 * metadata.c (mono_type_size): code cleanup
3588 (mono_type_stack_size): removed some test code
3590 2002-07-21 Miguel de Icaza <miguel@ximian.com>
3592 * appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Use
3593 mono_get_exception_file_not_found now.
3595 * exception.c (mono_exception_from_name_two_strings): New version
3596 that will call a constructor with two string arguments.
3597 (mono_get_exception_file_not_found): New helper routine, used to
3598 report file-not-found errors.
3600 2002-07-20 Dick Porter <dick@ximian.com>
3603 * process.c: Pass file handles to CreateProcess
3607 * file-io.c: Implemented CreatePipe
3609 2002-07-19 Dietmar Maurer <dietmar@ximian.com>
3611 * metadata.c (mono_get_param_info): set alignment for value types
3613 Fri Jul 19 18:58:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3615 * appdomain.h, domain.c, threads-types.h: don't include config.h in headers.
3616 Constify mono_domain_assembly_open().
3617 * loader.c: handle null namespace in icalls.
3619 2002-07-19 Dietmar Maurer <dietmar@ximian.com>
3621 * marshal.c (emit_ptr_to_str_conv): marshal object as structs
3622 (emit_str_to_ptr_conv): marshal object as structs
3624 * metadata.c (mono_type_to_unmanaged): marshal object as structs
3626 * marshal.c (mono_marshal_get_runtime_invoke): support value types
3628 2002-07-18 Dietmar Maurer <dietmar@ximian.com>
3630 * marshal.c (mono_marshal_get_runtime_invoke): use exception filters
3631 (mono_marshal_get_native_wrapper): we an now return value types
3633 Wed Jul 17 18:21:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3635 * verify.c: more checks implemented.
3637 2002-07-17 Dietmar Maurer <dietmar@ximian.com>
3639 * marshal.c (mono_delegate_to_ftnptr): invoke the right method
3641 (mono_marshal_get_native_wrapper): allow byref arguments
3642 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringXXX):
3643 impl. PtrToStringXXX methods
3644 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type): impl.
3645 (ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf): impl.
3646 (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi): impl.
3647 (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni): impl.
3648 (ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure): impl.
3650 Tue Jul 16 19:00:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3652 * reflection.c: fix buglet in parsing an assembly name.
3654 2002-07-16 Dietmar Maurer <dietmar@ximian.com>
3656 * marshal.c (emit_ptr_to_str_conv): first impl.
3658 Tue Jul 16 12:39:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
3660 * object.c, class.h: cache the vtable in the class as suggested by
3661 vargaz@freemail.hu (Zoltan Varga).
3663 Tue Jul 16 11:27:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3665 * class.h, loader.c: added mono_field_from_token().
3666 * verify.c: first cut of type checking code.
3668 2002-07-16 Dietmar Maurer <dietmar@ximian.com>
3670 * marshal.c (mono_marshal_get_native_wrapper): support valuetypes
3672 2002-07-15 Dietmar Maurer <dietmar@ximian.com>
3674 * marshal.c (mono_marshal_get_native_wrapper): handle enum types
3676 (mono_marshal_get_remoting_invoke): impl.
3677 (mono_delegate_begin_invoke): impl.
3678 (mono_mb_emit_save_args): impl.
3679 (mono_delegate_end_invoke): impl.
3680 (mono_marshal_get_delegate_begin_invoke):
3681 (mono_marshal_get_delegate_end_invoke):
3682 (mono_marshal_get_delegate_invoke): generate a special name for
3683 those methods (including the signature) and associate them whith
3686 2002-07-13 Gonzalo Paniagua Javier <gonzalo@gnome-db.org>
3689 (mono_reflection_type_from_name): now it has a MonoImage parameter
3690 which is used as the default image to search the type in. If the image
3691 is NULL or getting the type from it fails, it defaults to corlib.
3693 * icall.c: changed 1 call to mono_reflection_type_from_name to match
3696 Sat Jul 13 19:32:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3698 * reflection.c: update the parameter table index.
3700 Sat Jul 13 17:34:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3702 * domain.c: don't include the mark byte in the string hash.
3704 Sat Jul 13 15:06:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3706 * icall.cs: icall for Type.GetTypeCode ().
3707 * verify: a couple of fixes and disabled local initialization checks.
3709 2002-07-12 Dietmar Maurer <dietmar@ximian.com>
3711 * marshal.c: better debugging support (DEBUG_RUNTIME_CODE)
3713 * debug-helpers.c (mono_method_full_name): print the type of the
3716 * metadata.c (mono_signature_hash): a hash function for signatures
3717 (mono_signature_hash): better hash algorithm
3719 * marshal.c (mono_marshal_get_delegate_invoke): cache methods by signature
3721 * debug-helpers.c (mono_method_full_name): this can now generate
3722 method names with signatures
3724 * marshal.c (mono_marshal_get_managed_wrapper): bug fix: unmanaged
3725 method dont have this pointers.
3727 Fri Jul 12 11:35:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
3729 * reflection.c: fixup typebuilder tokens.
3730 * image.c: fix buglet.
3731 * marshal.h: remove whitespace.
3732 * metadata.h, metadata.c: reinstate code that was removed.
3733 * verify.c: handle catch directives and fix another couple of bugs.
3735 2002-07-11 Dietmar Maurer <dietmar@ximian.com>
3737 * marshal.c (mono_marshal_get_native_wrapper): support BOOLEAN
3738 (mono_marshal_get_native_wrapper): make it comp. with the old code
3739 (mono_marshal_get_native_wrapper): support boolean
3740 (mono_marshal_get_managed_wrapper): support more types
3742 2002-06-25 Dietmar Maurer <dietmar@ximian.com>
3744 * class.c (class_compute_field_layout): compute class->blittable attribute.
3746 2002-07-09 Dick Porter <dick@ximian.com>
3748 * threads.c: Make the thread cleaning up cope with threads that
3751 2002-07-08 Radek Doulik <rodo@ximian.com>
3753 * reflection.c (method_encode_code): use non-translated values to
3754 compute finally_start, this fixes exception handling on ppc, yay!
3756 * decimal.h (struct signscale): fix endianess
3758 2002-07-07 Radek Doulik <rodo@ximian.com>
3760 * reflection.c: swap box_val and not val
3762 Mon Jul 8 15:18:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
3764 * reflection.c, reflection.h: handle full assembly info in type name.
3765 Handle Type arguments when loading custom attributes.
3766 * icall.c: updated to use new mono_reflection_type_from_name () method.
3768 2002-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3771 (method_from_memberref): also print assembly name when method not found.
3773 2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3776 (ves_icall_TypeGetProperties): fixed bug #27473.
3778 2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3780 * reflection.c: display image name and token when cannot find the
3781 .ctor for an attribute.
3783 2002-07-05 Martin Baulig <martin@gnome.org>
3785 * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3787 2002-07-04 Dick Porter <dick@ximian.com>
3789 * threads.c (mono_thread_cleanup): Nasty kludge to get this to
3790 compile on mingw. This will cause mingw builds to not wait for
3791 subthreads to terminate after the main thread does. I've lodged a
3792 bug with the mingw developers for them to wrap OpenThread().
3794 2002-07-03 Dick Porter <dick@ximian.com>
3796 * threads.c: Store thread IDs instead of handles, because
3797 GetCurrentThread() returns a pseudohandle and therefore stores
3798 useless values. mono_thread_cleanup() continues checking the
3799 array of threads until it is empty, to cope with subthreads
3800 spawning new threads after the main thread has finished.
3804 * profiler-private.h: Pass the thread ID to thread profiler
3805 functions, instead of a handle
3807 Wed Jul 3 17:43:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3809 * verify.c: fixes to make it more usable.
3810 * pedump.c: added --verify code to verify IL code in an assembly.
3812 Tue Jul 2 20:40:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3814 * reflection.c: turn errors into warnings to allow compiling corlib.
3816 Tue Jul 2 19:33:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
3818 * reflection.c: add special cases to compile corlib.
3820 Mon Jul 1 18:00:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3822 * reflection.c: handle properties with only a set method.
3824 Mon Jul 1 17:11:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
3826 * opcodes.h: add enum with opcodes in opval order.
3828 2002-07-01 Dick Porter <dick@ximian.com>
3831 * object.c (mono_runtime_run_main): Removed unneeded argument
3833 2002-06-28 Martin Baulig <martin@gnome.org>
3835 * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3837 2002-06-27 Dick Porter <dick@ximian.com>
3839 * threads.c: Store the handle in both the parent thread and in the
3840 subthread, to minimise the time between starting a new thread and
3843 2002-06-26 Dick Porter <dick@ximian.com>
3845 * appdomain.c (mono_runtime_cleanup): Close the socket library
3846 after all the threads have finished, not before
3848 2002-06-26 Martin Baulig <martin@gnome.org>
3850 * debug-symfile.c (mono_debug_find_source_location): Added
3851 `guint32 *line_number' argument. If it's not NULL, store the line number
3852 there and return the file name without the line number.
3854 2002-06-25 Dick Porter <dick@ximian.com>
3858 * process.c: Process forking and other support functions
3860 2002-06-25 Dick Porter <dick@ximian.com>
3862 * image.c (do_mono_image_open): Set ref_count to 1, so that bad
3863 things dont happen when the image is closed.
3864 (mono_image_lookup_resource): Walk the resource section looking
3865 for a particular entry
3867 * cil-coff.h: PE resource section decoding
3869 2002-06-25 Dick Porter <dick@ximian.com>
3873 (mono_assembly_foreach): Accessor functions to walk the list of
3875 (mono_assembly_set_main):
3876 (mono_assembly_get_main): Process methods need to know which
3877 assembly is the "main" one
3879 * object.c (mono_runtime_run_main): Record the main assembly
3881 * debug-helpers.c: Fix typo
3883 2002-06-24 Dietmar Maurer <dietmar@ximian.com>
3885 * icall.c (ves_icall_System_Runtime_InteropServices_Marshal_copy_to_unmanaged): impl.
3886 (ves_icall_System_Runtime_InteropServices_Marshal_copy_from_unmanaged): impl.
3888 Sat Jun 22 11:37:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3890 * icall.c: fix off-by-one in Assembly.GetTypes() reported by bob@karr.ath.cx.
3892 2002-06-21 Miguel de Icaza <miguel@ximian.com>
3894 * image.c (do_mono_image_open): Initialize reference count,
3895 otherwise we leak the MonoImage.
3897 Fri Jun 21 19:16:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3899 * reflection.c: small tweak to handle self-hosting.
3901 Thu Jun 20 23:28:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
3903 * reflection.c: fix type name parse code.
3905 Thu Jun 20 19:24:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3907 * reflection.c: break out of the loop.
3908 * image.c: special case corlib.
3910 Thu Jun 20 16:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3912 * reflection.c: add all the custom attrs at the end to ensure the
3913 ctors have been properly initialized when the attributes are defined
3914 in the current assembly.
3916 Thu Jun 20 13:46:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3918 * reflection.c: handle correctly multiple-nested types.
3920 Thu Jun 20 11:49:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
3922 * row-indexes.h: fix typos.
3923 * reflection.c: adjust for typos and fix method_def_or_ref
3924 encoding in MethodImpl table.
3926 Wed Jun 19 21:57:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3928 * reflection.c: fix entry point patching (thanks Serge!).
3930 2002-06-18 Dietmar Maurer <dietmar@ximian.com>
3932 * verify.c: add check for System.Exception
3934 Mon Jun 17 20:23:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3936 * image.c, class.c: minifix for code just c&p'ed.
3937 * reflection.c: warning fix.
3938 * object.h, loader.h, domain.c: load also StringBuilder.
3940 Mon Jun 17 17:29:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3942 * marshal.h, marshal.c: some support code to handle complex marshaling.
3944 Mon Jun 17 16:32:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3946 * class.h, class.c, reflection.c: handle ignorecase in GetType ().
3947 Better signatures with vtable error dump.
3949 Mon Jun 17 16:13:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
3951 * reflection.c, reflection.h, icall.c: fixes for multiple-nested types.
3953 2002-06-17 Dietmar Maurer <dietmar@ximian.com>
3955 * icall.c (ves_icall_Type_GetField): impl.
3957 Mon Jun 17 16:08:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3959 * metadata.h, metadata.c: added mono_metadata_get_marshal_info()
3960 to retrieve a marshal description blob for a field or param.
3962 Mon Jun 17 14:57:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3964 * reflection.h, reflection.c: change order of nested type emission
3965 to avoid table corruption. The NestedTypes table is sorted.
3966 * icall.c: change order of GetConstructor results to workaround mcs bug.
3968 Fri Jun 14 16:24:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3970 * reflection.h, reflection.c: handle field and param marshal
3973 Wed Jun 12 16:30:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3975 * icall.c, marshal.c marshal.h: more Marshal class implementation.
3977 Tue Jun 11 17:29:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3979 * reflection.c: fix call convention.
3981 Tue Jun 11 16:52:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3983 * reflection.h, reflection.c: mono_image_get_memberref_token()
3984 takes a type instead of a class, now. Added
3985 mono_image_get_array_token() to create tokens for the special
3986 multi-dim array methods.
3988 Tue Jun 11 13:21:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
3990 * assembly.c: handle modules (no assembly table). Split
3991 loading references in its own function.
3992 * class.c: handle moduleref resolution scope.
3993 * image.c, image.h: cache module name in image.
3995 2002-06-07 Martin Baulig <martin@gnome.org>
3997 * reflection.c (mono_image_get_type_info): Only add a class layout entry
3998 if we actually have a `tb->class_size' (ie. it's not UnspecifiedTypeSize).
4000 Fri Jun 7 22:07:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
4002 * icall.c: more signature fixes that used uint instead of int.
4004 Fri Jun 7 20:41:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4006 * reflection.c: fixed signature of field refs.
4008 Fri Jun 7 19:41:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4010 * class.c, reflection.c: handle typerefs of nested types
4011 (both on read and when writing files).
4013 Fri Jun 7 17:46:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
4015 * icall.c: fix method signatures that tried to workaround the previous
4018 Fri Jun 7 17:36:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
4020 * debug-helpers.c: fix typo.
4022 Fri Jun 7 17:00:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
4024 * cil-coff.h, icall.c, image.c, reflection.c, reflection.h:
4025 rewrote the PE/COFF writing code (our programs are understood by the
4028 Tue Jun 4 18:10:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
4030 * gc.c, gc.h, icall.c: weakreference support.
4032 Tue Jun 4 16:06:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4034 * Makefile.am, mono-config.c: use $(sysconfdir).
4036 Mon Jun 3 13:13:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
4038 * icall.c: changed default precision of Double.ToString() to 15.
4039 Fixed memory leak. Unified with Single.ToString.
4041 Sat Jun 1 14:26:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
4043 * sysmath.c: workaround systems missing NAN and/or HUGE_VAL.
4045 Sat Jun 1 13:46:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
4047 * pedump.c, appdomain.c, appdomain.h, assembly.c, domain.c,
4048 gc.c, icall.c, image.c, mono-config.c, reflection.c: killed
4049 warnings and compilation fixes from Dennis Haney (davh@davh.dk)
4052 Fri May 31 16:58:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4054 * debug-symfile.c, sysmath.c: yet more compilation fixes.
4056 Fri May 31 16:35:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4058 * reflection.c, socket-io.c: more compilation fixes.
4060 Fri May 31 15:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
4062 * appdomain.c, class.c, class.h, debug-symfile.c, decimal.c,
4063 domain.c, loader.c, object.c, object.h, reflection.c, string-icalls.h,
4064 unicode.c: warning and compiler compatibility fixes.
4066 Fri May 31 15:36:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
4068 * class.h, metadata.c: fixed warnings/compilation errors.
4070 Fri May 31 13:08:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
4072 * Makefile.am, mono-config.c, mono-config.h: configuration file
4074 * loader.c, loader.h: make Dll mapping configurable at runtime in the
4075 config file. Export methods to insert and lookup mappings.
4077 Fri May 31 12:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
4079 * reflection.c: handle types and boxed objects in custom attr
4082 2002-05-30 Martin Baulig <martin@gnome.org>
4085 (ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token): Removed.
4087 Thu May 30 14:15:02 CEST 2002 Paolo Molaro <lupus@ximian.com>
4089 * metadata.c, metadata.h: added mono_metadata_implmap_from_method()
4090 to lookup the implmap row for a P/Invoke method.
4091 * loader.c: added mono_lookup_pinvoke_call(): we only lookup a
4092 P/Invoke method from the runtime on an as needed basis.
4094 2002-05-28 Dietmar Maurer <dietmar@ximian.com>
4096 * metadata.c (mono_metadata_parse_signature): impl.
4098 Tue May 28 16:02:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4100 * class.c: handle .pack directive.
4102 Tue May 28 11:04:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
4104 * object.c: initialize static fields with RVA data.
4106 2002-05-25 Martin Baulig <martin@gnome.org>
4109 (ves_icall_Debugger_DwarfFileWriter_get_type_token): Removed.
4111 2002-05-24 Martin Baulig <martin@gnome.org>
4114 (ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig): Removed.
4115 (ves_icall_Debugger_MonoSymbolWriter_method_from_token): Renamed to
4116 `ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token'.
4118 Thu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
4120 * object.c: special case string ctros in invoke.
4121 * gc.c: silly whitespace changes.
4123 2002-05-23 Dietmar Maurer <dietmar@ximian.com>
4125 * threadpool.[ch]: impl. a threadpool that can
4126 be used by mint and mono.
4128 2002-05-22 Martin Baulig <martin@gnome.org>
4130 * debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
4131 The first argument is now a `MonoReflectionModuleBuilder *', the return
4132 value is a `MonoReflectionModuleBuilder *'. Use the AssemblyBuilder's
4133 `methods' field to get the method builder. The `token' argument is the
4136 * unicode.c (iconv_get_length, iconv_convert): Silently ignore all
4137 invalid characters instead of g_assert_not_reached()ing. This seems
4138 to be the behaviour of mscorlib.
4140 2002-05-22 Dietmar Maurer <dietmar@ximian.com>
4142 * object.c (mono_runtime_invoke_array): applied patch from Rachel
4143 Hestilow to fix bug #25104
4145 2002-05-21 Martin Baulig <martin@gnome.org>
4147 * debug-symfile.c (mono_debug_find_source_location): New function.
4148 Looks up an IL offset in the line number table and returns the source
4149 location as a string.
4151 2002-05-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4154 (mono_double_ToStringImpl): changed %f by %g until we have something
4157 2002-05-21 Nick Drochak <ndrochak@gol.com>
4159 * icall.c : Use different name for Math.Pow's icall. Needed to check
4160 parameters first in C#.
4162 Mon May 20 17:36:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4164 * icall.c, reflection.h: added icall to get info about an event.
4166 2002-05-20 Radek Doulik <rodo@ximian.com>
4168 * object.c (mono_value_box): don't use memcpy for boxing on BIG
4170 (mono_value_box): don't use memcpy for small sizes on
4171 architectures with unaligned access
4173 2002-05-20 Martin Baulig <martin@gnome.org>
4175 * reflection.c (mono_reflection_setup_internal_class): Don't crash
4176 if `tb->parent == NULL'.
4177 (mono_reflection_create_internal_class): New function. This is
4178 called from TypeBuilder.CreateType() and sets `klass->enum_basetype'
4181 * icall.c ("System.Reflection.Emit.TypeBuilder::create_internal_class"):
4184 2002-05-19 Martin Baulig <martin@gnome.org>
4186 * unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
4187 argument to get the length, don't default to the array length.
4189 2002-05-18 Miguel de Icaza <miguel@ximian.com>
4191 * assembly.c (mono_assembly_setrootdir): New function used to
4192 override the MONO_ASSEMBLIES directory.
4194 Fri May 17 20:39:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
4196 * icall.c: ValueType_GetHashCode() initialize local var.
4198 Thu May 16 17:20:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
4200 * reflection.c: sort custom attributes table.
4202 Thu May 16 16:08:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
4204 * reflection.c: support named args in custom attributes (write support).
4206 Thu May 16 13:04:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
4208 * reflection.c: fix finally position calculation.
4210 2002-05-15 Radek Doulik <rodo@ximian.com>
4212 * reflection.c: fixed endianess at many places
4214 * icall.c (ves_icall_InitializeArray): comment out debug msg
4216 2002-05-15 Dietmar Maurer <dietmar@ximian.com>
4218 * object.c (mono_unhandled_exception): new function to handle
4219 unhandled exceptions.
4220 (mono_unhandled_exception): call the UnhandledException event.
4221 (mono_runtime_delegate_invoke): impl.
4223 Wed May 15 15:59:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
4225 * metadata.h, metadata.c, class.c: mono_metadata_field_info ()
4226 returns the RVA, not the direct pointer to the data. Handle the case
4227 when the class size is fixed.
4229 Tue May 14 16:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
4231 * reflection.c: fix some endianess issues.
4233 2002-05-14 Dietmar Maurer <dietmar@ximian.com>
4235 * object.c (mono_runtime_invoke): is now able to catch exceptions.
4237 * threads.c (mono_thread_init): added a callback which is invoked
4240 2002-05-14 Dan Lewis <dihlewis@yahoo.co.uk>
4242 * icall.c: make GetHashCode return non-negative values.
4244 2002-05-14 Dan Lewis <dihlewis@yahoo.co.uk>
4246 * object.c, icall.c, gc.c: revert to address-based hashcode.
4248 2002-05-13 Miguel de Icaza <miguel@ximian.com>
4250 * icall.c (mono_double_ParseImpl): Added ParseImpl method.
4252 Mon May 13 16:40:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
4254 * icall.c, class.c: special case <Module>.
4256 2002-05-13 Dan Lewis <dihlewis@yahoo.co.uk>
4258 * icall.c: fix bug in GetNow().
4260 2002-05-11 Dietmar Maurer <dietmar@ximian.com>
4262 * object.c (mono_runtime_class_init): make sure that we call all
4263 static class constructors.
4265 Fri May 10 18:14:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
4267 * reflection.c: sort methodsemantics table.
4269 Fri May 10 16:31:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
4271 * reflection.h, reflection.c: honour init locals setting.
4273 Thu May 9 18:50:00 EDT 2002 Daniel Morgan <danmorg@sc.rr.com>
4275 * icall.c: copied Double ToStringImpl for Single ToStringImpl
4277 Wed May 8 12:28:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
4279 * reflection.c: support ContructorBuilders in attribute blob creation.
4281 Wed May 8 12:06:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4283 * reflection.c: some changes to build a binary that can be run
4284 directly in windows.
4286 Mon May 6 13:10:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
4288 * loader.c: print a big message when an icall can't be found.
4290 2002-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4292 * string-icalls.c: fix bug 24248.
4294 Sat May 4 14:03:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
4296 * appdomain.c, appdomain.h, assembly.c, assembly.h, image.h,
4297 icall.c, reflection.h: separate assembly loading by pathname and by
4298 assembly name. Use the MONO_PATH env var to search for assemblies.
4300 Thu May 2 17:56:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
4302 * assembly.c, image.h: add some support for assemblies
4303 with multiple modules.
4304 * class.c, class.h: export mono_class_from_typeref().
4305 * loader.c: remove duplicated code and use mono_class_from_typeref(),
4308 Thu May 2 15:51:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4310 * unicode.c: Char.IsNumber doesn't include hex digits as the ms
4311 documentation says (the ECMA one is correct).
4313 2002-05-02 Dick Porter <dick@ximian.com>
4315 * threads.c: Use GC_debug_register_finalizer with GC_debug_malloc.
4316 Don't name the synchronisation mutex.
4318 2002-04-30 Jeffrey Stedfast <fejj@ximian.com>
4321 (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetBytes):
4322 Make the prototypes match.
4323 (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetNonZeroBytes):
4327 (ves_icall_System_CurrentTimeZone_GetTimeZoneData): Fixed for
4328 systems that use 'timezone' rather than tm.tm_gmtoff. Also, not
4329 all systems have tm.tm_zone, so use strftime() with %Z to print
4330 the timezone abreviation into a temp string.
4332 * object.c (mono_ldstr): Fixed to use mono_string_chars() macro
4333 rather than mono_array_addr() on a MonoString on Big Endian
4336 2002-04-30 Dietmar Maurer <dietmar@ximian.com>
4338 * string-icalls.c (ves_icall_System_String_InternalReplace_Str):
4341 2002-04-30 Dick Porter <dick@ximian.com>
4343 * socket-io.c: Cope with SOCKET being an integer rather than a
4346 * threads.c: Added Thread_free_internal, to deal with thread
4347 handle cleanup. Moved calls to handle_store() and handle_remove()
4348 to start_wrapper(), so each can only be called once. Allocate
4349 synchronisation blocks with GC_malloc(), and use GC finalisation
4350 to close the handles.
4352 * icall.c: added System.Threading.Thread::Thread_free_internal
4354 Mon Apr 29 15:33:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4356 * icall.c: support Environment.Exit, CommandLineArgs().
4358 Mon Apr 29 15:15:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
4360 * object.c, object.h: added mono_runtime_run_main () and
4361 mono_runtime_get_main_args () for use in System.Environment.
4363 Mon Apr 29 13:45:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4365 * gc.c: fix thinko, enable actual finalization since the jit is now
4368 Mon Apr 29 12:47:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4370 * gc.c, object.c: take into account that an object may be offset wrt the address
4371 returned by GC_malloc().
4373 Mon Apr 29 12:14:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
4375 * image.c: handle files without entries in the assembly table (modules).
4377 2002-04-28 Patrik Torstensson <patrik.torstensson@intel.com>
4379 * reflection.c (mono_reflection_setup_internal_class): remove g_assert_not_reached() to allow
4380 mcs selfhosting again (build breaker) and did move the check to class instead. parent is
4381 allowed to be null when it's System.Object class setup.
4383 2002-04-27 Martin Baulig <martin@gnome.org>
4385 * reflection.c (mono_reflection_setup_internal_class): g_assert_not_reached()
4386 if `tb->parent == NULL' rather than crashing.
4388 2002-04-28 Nick Drochak <ndrochak@gol.com>
4390 * sysmath.c (ves_icall_System_Math_Asin): Fix copy-paste error. Was
4391 calling acos() where asin() should have been called.
4393 2002-04-26 Martin Baulig <martin@gnome.org>
4395 * assembly.c (default_assembly_name_resolver): Use G_FILE_TEST_IS_REGULAR
4396 instead of G_FILE_TEST_EXISTS - if you're in mcs/class/corlib/System/Test,
4397 there's a subdirectory called `System', but we don't want to read that
4398 subdirectory as an assembly.
4400 2002-04-25 Martin Baulig <martin@gnome.org>
4402 * debug-symfile.c: Reflect latest MonoString changes.
4404 Thu Apr 25 16:38:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
4406 * rand.c, rand.h: instance method icalls need to have an explicit
4407 this pointer as first argument in the C implementation.
4409 2002-04-25 Nick Drochak <ndrochak@gol.com>
4411 * icall.c: Fix typo in map for GetNonZeroBytes
4413 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4415 * string-icalls.c : String does now passes unit tests without any
4416 errors, the following changes has been made:
4418 Implemented replace methods.
4419 Renaming of methods to (try) follow the standard.
4420 Fixed compare ordinal
4421 Made all memory allocated directly to function instead of via icall function.
4422 Small performance fix in is_in_array function
4424 (2002-04-23) Changes from Duncan Mak <duncan@ximian.com>
4426 c (mono_string_Internal_ctor_charp_int_int):
4427 (mono_string_Internal_ctor_sbytep_int_int): Removed check for
4428 sindex < 0, throw ArgumentOutOfRangeException instead of
4429 ArgumentNullException.
4431 Added new check for length == 0, however
4432 I need to make it return String.Empty from the C code.
4434 (mono_string_Internal_ctor_sbytep): Use mono_string_new, and let
4435 that calculate the length for us here.
4437 (mono_string_Internal_ctor_sbytep_int_int): Replaced
4438 mono_string_new_utf16 with mono_string_new, since value is utf8.
4440 Wed Apr 24 18:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4442 * object.c: register the object for finalization if needed.
4443 Allocate one more char in the string for the terminating 0 char.
4445 Wed Apr 24 18:22:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4447 * class.c, class.h, image.c: check if a type implemenst a destructor.
4448 Use the proper key for array class lookups.
4449 * icall.c: register the icalls in the System.GC class.
4450 * gc.c, gc.h: GC-related functions and icalls.
4452 2002-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4456 * unicode.c: free some strings gotten from mono_string_to_utf8 and
4457 changed a couple of free () by g_free ().
4459 * decimal.c: one-liner in the comments for decimal2string ().
4461 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4463 * object.c (mono_runtime_invoke_array) : Bug because of my incompetence.
4465 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4467 * reflection.c (mono_reflection_get_custom_attrs) : fixed image bug (crash)
4468 * object.c (mono_runtime_invoke_array) : handle null in params
4470 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4472 * string-icalls.c: fixed bug in split (one off bug)
4474 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4476 * string-icalls.c: fixed bug in remove and lastindexofany, add equals icall.
4477 * icalls.c: added String::Equals as internal method
4479 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4481 * threads.c: fixed bug in the double interlocked functions
4483 2002-04-22 Patrik Torstensson <patrik.torstensson@labs2.com>
4485 * threads.c: implemented all of the new interlocked icalls.
4486 * string-icalls.c: fix a bug in insert.
4487 * icalls.c: added the icalls for interlocked, removed old string functions.
4489 Mon Apr 22 19:44:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4491 * loader.c: fix off-by-one error when reading argument names.
4493 Mon Apr 22 19:28:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4495 * profiler.c: win32 counter implementation (untested).
4496 * icall.cs: win32 GetNow() and GetTimeZoneData() implementations
4497 (the latter needs testing and more complete impl. from win32 folks).
4499 2002-04-21 Dan Lewis <dihlewis@yahoo.co.uk>
4501 * object.c: mono_array_new_full workaround mono_array_class_get
4504 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4506 * string-icalls.c (mono_string_InternalRemove): Fixed overwrite bug.
4507 * object.h (mono_string_chars): Changed casting type.
4509 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4511 * string-icalls.c: Fixed trim method, added the constructors done by Duncan, fixed
4512 method signatures to use gunichar2 instead of gint16.
4514 2002-04-20 Dan Lewis <dihlewis@yahoo.co.uk>
4516 * object.h, object.c: domain-specific versions of mono_object_new and
4519 2002-04-20 Dietmar Maurer <dietmar@ximian.com>
4521 * object.c: changed String layout
4523 * string-icalls.c (mono_string_Internal_ctor_chara): added
4524 internal string constructors.
4526 Sat Apr 20 13:33:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
4528 * threads.c: pass 'this' to the thread start routine.
4530 2002-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4532 * string-icalls.c: fix IndexOf and LastIndexOf. Now
4533 InternalCompareStr don't call twice mono_string_cmp_char for the last
4534 character. Improved performance in mono_string_cmp_char.
4536 Fri Apr 19 19:26:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
4538 * Makefile.am, appdomain.c, class.c, object.c: split runtime-depended
4539 code into its own library: libmonoruntime.
4541 2002-04-19 Dan Lewis <dihlewis@yahoo.co.uk>
4543 * object.h, object.c: changed array format so that szarrays do not
4544 require a bounds structure.
4545 * icall.c, appdomain.c: support for new szarray format.
4547 Fri Apr 19 18:04:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
4549 * metadata.c: compare also the retuns type when comparing signatures:
4550 we didn't do this as an optimization since really overloaded methods
4551 must differ also in the arguments, but this doesn't work with
4552 low-level IL code (or when using explicit conversion operators: see
4553 bug#23498 for an example).
4555 Fri Apr 19 16:14:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
4557 * loader.c: SZARRAY types can be saved as TYPESPEC, too.
4559 Thu Apr 18 17:15:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
4561 * icall.c: make MonoType::GetElementType its own icall.
4563 Thu Apr 18 16:41:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
4565 * icall.c: remove MonoMethod_get_Name().
4566 * reflection.c, reflection.h, verify: cache the method name in the MonoMethod
4569 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4571 * string-icalls.c: optimized a few methods.
4573 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4575 * icall.c: added all new string internal calls
4576 * string-icalls.c: added, new string internal call implementation.
4577 * object.c: added mono_string_new_size for allocating a string a size
4579 2002-04-17 Dietmar Maurer <dietmar@ximian.com>
4581 * object.c (mono_object_isinst): use the same code as in the
4582 optimized x86 version.
4584 Wed Apr 17 14:14:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4586 * profiler.c: TSC-based timer code (faster and more accurate).
4587 Not hooked up in configure, yet (set USE_X86TSC to 1).
4589 Wed Apr 17 12:33:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
4591 * profiler.c, profiler.h: track time spent compiling methods.
4592 * threads.c: track thread creation/destruction.
4594 Tue Apr 16 20:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
4596 * profiler.c, profiler.h, profiler-private.h: profiling interface
4597 and sample implementation. Moved here so that it can be used also by
4600 Tue Apr 16 12:58:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
4602 * reflection.c, reflection.h: keep types and other handles separate in
4603 the hash tables for referred tokens. Add guid for modules.
4605 Mon Apr 15 11:37:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
4607 * assembly.c: fix bugs found with valgrind.
4608 * metadata.h, metadata.c: added mono_metadata_guid_heap().
4610 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
4612 * threads: added icall support for getting current domain for
4615 2002-04-13 Martin Baulig <martin@gnome.org>
4617 * debug-symfile.h (MonoDebugLocalInfo): Renamed to MonoDebugVarInfo.
4618 (MonoDebugVarInfo): Added `index' field for register based addresses.
4619 (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 9.
4620 (MonoDebugMethodInfo): Replaced `guint32 *param_offsets' with
4621 `MonoDebugVarInfo *params' and `guint32 this_offset' with
4622 `MonoDebugVarInfo *this_var'.
4624 * debug-symfile.c (relocate_variable): New static function to write
4625 a location description for a local variable or method parameter.
4627 2002-04-12 Martin Baulig <martin@gnome.org>
4629 * debug-symfile.h (MonoDebugLocalInfo): New type. This contains the
4630 stack offset and begin/end scope address of a local variable.
4631 (MonoDebugMethodInfo): Replaced `guint32 *local_offsets' with
4632 'MonoDebugLocalInfo *locals', added `prologue_end' and `epilogue_begin'.
4633 (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 8.
4635 * debug-symfile.c (MRT_variable_start_scope, MRT_variable_end_scope):
4636 Added new relocation types for start/end scope of a local variable.
4638 Fri Apr 12 18:30:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4640 * object.h: add mono_object_domain() macro.
4641 * reflection.c: handle typespecs.
4642 * icall.c: MonoMethod::get_Name() implementation.
4644 Thu Apr 11 12:29Ni:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4646 * icall.c: String::GetHashCode() icall implementation.
4648 Wed Apr 10 21:16:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4650 * icall.c: String::IndexOfAny icall.
4651 * object.c, object.h: make array->max_length more useful.
4652 Intrduced mono_object_class() and mono_string_length() macros.
4654 2002-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4656 * unicode.c (ves_icall_System_Char_IsNumber): use g_unichar_isxdigit
4657 instead of g_unichar_isdigit.
4659 2002-04-11 Nick Drochak <ndrochak@gol.com>
4661 * icall.c: Implement a simple Double.ToString().
4663 Tue Apr 9 21:31:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4665 * appdomain.h: only io-layer.h is supposed to be included.
4666 * icall.c: explicitly import environ. Fix warning.
4668 2002-04-10 Nick Drochak <ndrochak@gol.com>
4670 * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData) :
4671 return true even if it's not Daylight Savings time.
4672 Only return false for the case where the function isn't
4673 implemented for a plaform (read Windows).
4675 Tue Apr 9 13:05:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4677 * appdomain.h, appdomain.c, class.c, object.c: protect MonoDomain
4680 2002-04-09 Dietmar Maurer <dietmar@ximian.com>
4682 * mempool.c (mono_mempool_alloc): only use g_malloc when
4683 absolutely necessary.
4685 2002-04-08 Dietmar Maurer <dietmar@ximian.com>
4687 * mempool.c (MEM_ALIGN): hardcode MEM_ALIGN to 8
4689 * class.c (mono_class_vtable): use domain mempool to allocate vtable
4690 (mono_class_proxy_vtable): use domain mempool
4692 Mon Apr 8 17:17:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
4694 * appdomain.h, appdomain.c: split initialization that requires the
4695 execution engine support into mono_runtime_init().
4697 2002-04-08 Dietmar Maurer <dietmar@ximian.com>
4699 * class.c (mono_class_init): don't include vtable inside MonoClass
4700 to save some memory, gather some statistics.
4701 (mono_class_vtable): use g_malloc instead of GC_malloc when possible
4703 Sat Apr 6 20:07:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4705 * icall.c: internalcall implementation for ValueType.Equals().
4707 2002-04-06 Dietmar Maurer <dietmar@ximian.com>
4709 * object.c (mono_message_init): moved
4710 (mono_runtime_exec_main): new arch. independent impl.
4711 (mono_runtime_invoke_array): new method - like
4712 mono_runtime_invoke, but you can pass an array of objects.
4713 (mono_remoting_invoke): new arch. independent impl.
4714 (mono_message_invoke): new arch. independent impl.
4715 (mono_runtime_class_init): new arch. independent impl.
4716 (mono_runtime_object_init): new arch. independent impl.
4718 Fri Apr 5 18:29:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4720 * metadata.c, object.c, reflection.c: documented the exported
4723 Fri Apr 5 15:42:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
4725 * icall.c: simpler code to pass the assembly builder data to corlib.
4726 Implement GetNestedTypes() internalcall.
4728 Thu Apr 4 21:46:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4730 * class.c: warn if a type can't be loaded.
4732 2002-04-04 Dietmar Maurer <dietmar@ximian.com>
4734 * image.h: typedef MonoImageOpenStatus
4735 * types.h: removed unused file
4737 2002-04-04 Dan Lewis <dihlewis@yahoo.co.uk>
4739 * icall.c: Enum_ToObject accepts enum value arguments.
4741 Thu Apr 4 11:35:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
4743 * class.c: move initialization of properties, events and nested
4744 classes, so that they happen for interfaces, too.
4746 Wed Apr 3 20:03:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
4748 * icall.c: cleanup some ugly casts in Array_SetValue*.
4750 Wed Apr 3 19:49:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
4752 * icall.c: the values array fro enums is of the correct type, now.
4753 Implement (correctly) getFullName instead of assQualifiedName for
4755 * reflection.h, reflection.c: added mono_type_get_name ().
4757 Wed Apr 3 17:56:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
4759 * assembly.c, image.h: for each MonoImage, record from wich assembly
4761 * reflection.h, icall.c: added System_Reflection_Assembly_GetTypes().
4762 Make Type.Assembly work.
4764 2002-04-03 Dietmar Maurer <dietmar@ximian.com>
4766 * debug-symfile.h: use char* instead of gpointer to avoid
4769 * appdomain.c (mono_jit_info_table_find): use char* instead of gpointer
4771 * icall.c (ves_icall_InternalExecute): impl. FielSetter
4772 (ves_icall_System_Array_SetValueImpl): removed strange MonoArray cast
4774 2002-03-30 Dietmar Maurer <dietmar@ximian.com>
4776 * icall.c (mono_message_init): impl. (code cleanup)
4777 (ves_icall_InternalExecute): impl. FieldGetter
4779 * class.c (mono_class_init): added exerimental EXT_VTABLE_HACK, if
4780 defined we call all (non-static)methods through the vtable.
4782 Fri Mar 29 18:09:08 CET 2002 Paolo Molaro <lupus@ximian.com>
4784 * class.c: it seems GC_debug_malloc() makes the Boehm GC call the
4785 finalizer even though the memory is still referenced (and the chunk of
4786 memory is not freed).
4788 Fri Mar 29 17:43:04 CET 2002 Paolo Molaro <lupus@ximian.com>
4790 * assembly.c: fix brokeness.
4792 Fri Mar 29 16:09:54 CET 2002 Paolo Molaro <lupus@ximian.com>
4794 * class.c: kill some warnings. Check explicit interface method
4795 implementation also without considering the namespace.
4796 Load also literal strings in static class data.
4798 2002-03-29 Miguel de Icaza <miguel@ximian.com>
4800 * assembly.c (default_assembly_name_resolver): Kill memory leak.
4801 (default_assembly_name_resolver): Make the resolver take the
4802 "base" directory where the assembly was originally defined, so we
4803 can load DLLs that are in the same directory as the assembly that
4804 is being referenced.
4806 2002-03-28 Dick Porter <dick@ximian.com>
4812 * unicode.c: Warning cleanups
4814 Thu Mar 28 18:06:14 CET 2002 Paolo Molaro <lupus@ximian.com>
4816 * object.h, reflection.h: use the correct type instead of MonoObject.
4818 2002-03-28 Martin Baulig <martin@gnome.org>
4820 * debug-symfile.c (mono_debug_class_get): Don't look in referenced assemblies.
4821 (mono_debug_update_symbol_file): Initialize classes if necessary.
4823 Thu Mar 28 15:58:43 CET 2002 Paolo Molaro <lupus@ximian.com>
4825 * assembly.c, debug-helpers.c, image.c, image.h, metadata.c, pedump.c,
4826 rawbuffer.c, reflection.c, verify.c: mare warning cleanups.
4828 Thu Mar 28 15:20:39 CET 2002 Paolo Molaro <lupus@ximian.com>
4830 * assembly.h: fix function prototype.
4831 * metadata.h, metadata.c, object.h, private.h: get rid of warnings.
4832 * mono-endian.h: use const cast.
4834 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
4836 * icall.c (ves_icall_MonoMethodMessage_InitMessage): moved from message.c
4838 Thu Mar 28 12:32:00 CET 2002 Paolo Molaro <lupus@ximian.com>
4840 * loader.c: don't assert when a typeref can't be loaded, give
4841 a chance to the runtime to trow an exception instead.
4842 * loader.h: fix warning.
4844 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
4846 * class.c (mono_class_proxy_vtable): added proxy support
4848 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
4850 * icall.c: removed last of PAL calls, added System.Environment
4851 * file-io.h, file-io.c: MonoIO implementation
4852 * object.h, object.c: mono_string_to_utf16() now returns gunichar2*
4854 Tue Mar 26 19:56:10 CET 2002 Paolo Molaro <lupus@ximian.com>
4856 * appdomain.c: do not use the byte marker in ldstr table lookup.
4857 * debug-helpers.c: allow two ':' to separate class and method name.
4858 * object.c: allocate arrays bounds with the GC, too.
4859 * verify: add a few more checks.
4861 Tue Mar 26 18:45:46 CET 2002 Paolo Molaro <lupus@ximian.com>
4863 * reflection.c: output also literal strings. Allocate parameter data
4864 with GC_malloc() (thanks, Martin, for catching this!).
4866 2002-03-26 Martin Baulig <martin@gnome.org>
4868 * debug-symfile.h (MonoDebugMethodInfo): Added `this_offset', don't
4869 include the `this' offset in the `param_offsets'.
4871 2002-03-25 Martin Baulig <martin@gnome.org>
4873 * debug-symfile.c (mono_debug_update_symbol_file): Use a new
4874 mono_debug_get_class() function to get the classes. Added new
4875 relocation types for arrays and strings.
4876 (mono_debug_get_class): New static function to search in all
4877 referenced assemblies for a metadata token.
4879 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 7.
4881 Mon Mar 25 13:08:18 CET 2002 Paolo Molaro <lupus@ximian.com>
4883 * reflection.h, reflection.c: use a gc-safe hash for hash tables that
4884 hold gc-allocated objects. Make the string heap a stream like the
4885 others. Removed duplicated code when writing stream info.
4886 Added asserts to catch possible buffer overflows. Set the sorted map
4887 for tables that need sorting. Added some documentation.
4889 Mon Mar 25 13:04:56 CET 2002 Paolo Molaro <lupus@ximian.com>
4891 * appdomain.h, appdomain.c, class.c, object.c: use a GC-safe hash table
4892 for interned strings and vtables.
4894 2002-03-24 Martin Baulig <martin@gnome.org>
4896 * icall.c (ves_icall_Type_GetFields): Reverse the list before storing
4897 it in the array since it was created with g_slist_prepend().
4899 2002-03-24 Martin Baulig <martin@gnome.org>
4901 * debug-symfile.c (mono_debug_local_type_from_signature): Renamed
4902 to ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig().
4903 (mono_debug_method_from_token): Renamed to
4904 ves_icall_Debugger_MonoSymbolWriter_method_from_token().
4905 (ves_icall_Debugger_DwarfFileWriter_get_type_token): New interncall.
4907 * debug-symfile.c (MRT_type_sizeof, MRT_type_field_offset): New
4910 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 6.
4912 2002-03-24 Martin Baulig <martin@gnome.org>
4914 * debug-symfile.c (mono_debug_local_type_from_signature): New func.
4915 (mono_debug_method_from_token): New func.
4917 * icall.c (Mono.CSharp.Debugger.MonoSymbolWriter::get_local_type_from_sig):
4918 New interncall, calls mono_debug_local_type_from_signature().
4919 (Mono.CSharp.Debugger.MonoSymbolWriter::get_method): New interncall,
4920 calls mono_debug_method_from_token().
4922 2002-03-23 Martin Baulig <martin@gnome.org>
4924 * unicode.c (ves_icall_iconv_get_char_count): The `count' argument
4925 specifies the number of bytes to be converted, not the array size.
4926 Return the number of chars, not the number of bytes.
4927 (ves_icall_iconv_get_chars): The `byteCount' argument
4928 specifies the number of bytes to be converted, not the array size.
4930 2002-03-23 Martin Baulig <martin@gnome.org>
4932 * reflection.h (MonoReflectionSigHelper): New type.
4934 * reflection.c (mono_reflection_sighelper_get_signature_local),
4935 (mono_reflection_sighelper_get_signature_local): New functions.
4937 * icall.c (System.Reflection.Emit.SignatureHelper::get_signature_local),
4938 (System.Reflection.Emit.SignatureHelper::get_signature_field): New
4941 2002-03-23 Martin Baulig <martin@gnome.org>
4943 * rawbuffer.c (mono_raw_buffer_load_mmap): Use MAP_SHARED when
4944 is_writeable is set.
4945 (mono_raw_buffer_update): New function to write the modified map
4948 * debug-symfile.h (MonoDebugSymbolFile): Added `raw_contents_size'.
4950 * debug-symfile.c (mono_debug_update_symbol_file): Call
4951 mono_raw_buffer_update() when done writing.
4953 2002-03-23 Martin Baulig <martin@gnome.org>
4955 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 5.
4957 * debug-symfile.c: Added support for arguments and local variables.
4959 2002-03-23 Dick Porter <dick@ximian.com>
4961 * debug-symfile.c: Remove extraneous 'include <elf.h>' that wasn't
4962 protected by ifdefs, hence breaking the w32 build.
4964 Thu Mar 21 17:35:01 CET 2002 Paolo Molaro <lupus@ximian.com>
4966 * object.c: implement is_interned() the right way.
4968 2002-03-21 Martin Baulig <martin@gnome.org>
4970 * debug-symfile.[ch]: New files to handle debugging information
4971 files. There's also support to dynamically update these symbol
4972 files to include machine dependent information.
4974 2002-03-20 Dietmar Maurer <dietmar@ximian.com>
4976 * threads.c (mono_thread_create): new function to create thread
4979 2002-03-20 Martin Baulig <martin@gnome.org>
4981 * icall.c (ves_icall_InternalInvoke): Create a new object if the
4982 method is a constructor.
4983 (icall_map): Added "System.Reflection.MonoCMethod::InternalInvoke",
4984 points to ves_icall_InternalInvoke().
4986 2002-03-20 Dan Lewis <dihlewis@yahoo.co.uk>
4988 * file-io.c: Flush shouldn't throw exceptions.
4990 2002-03-19 Dan Lewis <dihlewis@yahoo.co.uk>
4992 * file-io.c: FileStream flush support; FileSetLength now
4993 restores file pointer.
4995 Tue Mar 19 18:17:21 CET 2002 Paolo Molaro <lupus@ximian.com>
4997 * class.c: set image for pointer classes.
4999 2002/03/19 Nick Drochak <ndrochak@gol.com>
5001 * sysmath.c: Forgot one.
5003 2002-03-18 Miguel de Icaza <miguel@ximian.com>
5005 * sysmath.c: Avoid redefining existing names.
5007 2002-03-18 Dan Lewis <dihlewis@yahoo.co.uk>
5009 * sysmath.c, sysmath.h, icall.c, Makefile.am: math routines now
5010 handled by runtime as icall rather than dllimport from libm.so
5011 * file-io.c, file-io.h: fixed handle argument type.
5013 2002-03-18 Dick Porter <dick@ximian.com>
5015 * reflection.c (mono_image_get_type_info): rename interface to
5016 iface, because of "#define interface struct" on windows.
5018 Sat Mar 16 19:18:38 CET 2002 Paolo Molaro <lupus@ximian.com>
5020 * class.c, class.h: rename and export mono_ptr_class_get().
5021 * metadata.c: support MONO_TYPE_ARRAY in MonoType compare.
5022 * reflection.c, reflection.h, icall.c: better/saner type name
5023 parsing and MonoType creation. Handle MONO_TYPE_ARRAY in
5026 2002-03-14 Dietmar Maurer <dietmar@ximian.com>
5028 * class.c (mono_class_init): removed hardcoded GHC_SLOT
5030 * icall.c (ves_icall_InternalInvoke): impl.
5032 Wed Mar 13 00:27:30 CET 2002 Paolo Molaro <lupus@ximian.com>
5034 * reflection.c: output the interface map table, too.
5036 2002-03-12 Dietmar Maurer <dietmar@ximian.com>
5038 * class.c (class_compute_field_layout): separate computation of
5041 2002-03-12 Dan Lewis <dihlewis@yahoo.co.uk>
5043 * icall.c: added System.Buffer support.
5044 * file-io.c: moved file icalls from PAL to FileStream.
5046 2002-03-12 Dietmar Maurer <dietmar@ximian.com>
5048 * icall.c (ves_icall_System_Object_GetHashCode): impl.
5050 2002-03-11 Dietmar Maurer <dietmar@ximian.com>
5052 * icall.c (ves_icall_System_ValueType_GetHashCode): impl.
5054 Mon Mar 11 14:45:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5056 * verify.c, verify.h: moved here the corlib/runtime consistency checks.
5058 Mon Mar 11 11:12:23 CET 2002 Paolo Molaro <lupus@ximian.com>
5060 * debug-helpers.{c,h}: moved here from monograph some useful functions
5061 to locate a method by name/signature in a class or image. Included
5062 also a small and flexible IL disassembler.
5064 Fri Mar 8 16:29:29 CET 2002 Paolo Molaro <lupus@ximian.com>
5066 * reflection.c: fixup tokens in methods with small header size, too.
5068 2002-03-08 Dietmar Maurer <dietmar@ximian.com>
5070 * object.c (mono_string_to_utf8): remove assert(!error), instead
5073 Thu Mar 7 18:55:15 CET 2002 Paolo Molaro <lupus@ximian.com>
5075 * icall.c: update to the new mono_Array_class_get interface.
5077 Thu Mar 7 17:23:26 CET 2002 Paolo Molaro <lupus@ximian.com>
5079 * appdomain.c, object.c: Boehm-GC enable.
5080 * icall.c: make get_data_chunk() support split data requests.
5081 Ensure a class is initialized in more cases. Return only the first
5082 property found in GetProperties() or the compiler gets confused.
5083 Implemented GetEvents(). Temporary fix to GetType(), needs rewriting.
5084 * reflection.h, reflection.c: add fixup mechanism for field and method
5085 tokens. Initialize assembly->typeref in a single place. Output
5086 properties after events. Support custom attributes for events, too.
5087 Typo fix for paramter custom attrs.
5089 2002-03-07 Martin Baulig <martin@gnome.org>
5091 * icall.c (ves_icall_System_Array_FastCopy): Small fix.
5093 2002-03-07 Dietmar Maurer <dietmar@ximian.com>
5095 * class.c (mono_array_class_get): fix. for multi. dim. arrays
5097 2002-03-06 Martin Baulig <martin@gnome.org>
5099 * icall.c (ves_icall_System_Array_CreateInstanceImpl): Make this work with
5100 non-zero lower bounds. See testcases #F10-#F13.
5102 2002-03-05 Martin Baulig <martin@gnome.org>
5104 * exception.c (mono_get_exception_argument_out_of_range): New exception.
5106 * icall.c (ves_icall_System_Array_GetValue): Moved actual implementation to
5107 ves_icall_System_Array_GetValue(), only calculate the absolute array position
5109 (ves_icall_System_Array_SetValue): Likewise.
5110 (ves_icall_System_Array_GetValueImpl): New interncall. Takes an array position
5111 as argument and does the actual work. This function is used when copying a
5112 multi-dimensional array.
5113 (ves_icall_System_Array_SetValueImpl): Almost completely rewrote this. It can
5114 now do all the widening conversions of value types.
5115 (ves_icall_System_Array_CreateInstanceImpl): Implemented.
5117 Tue Mar 5 18:14:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5119 * class.c: remove some magic numbers and use the smbolic names,
5120 instead. Added init_events() to load event info at class init time.
5121 * metadata.h, metadata.c: added mono_metadata_events_from_typedef()
5122 and mono_metadata_methods_from_event().
5123 * reflection.h, reflection.c: added support for writing out the evnets
5124 related information.
5126 Mon Mar 4 20:32:43 CET 2002 Paolo Molaro <lupus@ximian.com>
5128 * reflection.h, icall.c: use a different method (GetInterfaces)
5129 to gather interface info and add isbyref, isprimitive and
5130 ispointer to the ves_icall_get_type_info() return value.
5132 Mon Mar 4 11:22:26 CET 2002 Paolo Molaro <lupus@ximian.com>
5134 * class.h: stared adding support for events.
5135 * icall.c: split find_members implementation. Added debug icall to get
5136 the address of an object.
5137 * reflection.c: handle TypeBuilders in mono_type_get_object().
5139 2002-03-01 Martin Baulig <martin@gnome.org>
5141 * icall.c (ves_icall_System_Array_GetLength): This must throw an
5142 ArgumentOutOfRangeException(), not an ArgumentException().
5143 (ves_icall_System_Array_GetLowerBound): Likewise.
5144 (ves_icall_System_Array_GetValue): Improved argument checking.
5145 (ves_icall_System_Array_SetValue): Improved argument checking.
5147 2002-03-01 Martin Baulig <martin@gnome.org>
5149 * icall.c (ves_icall_System_Array_GetValue): Raise an exception when
5150 called with invalid arguments rather than just dying with g_assert().
5151 (ves_icall_System_Array_SetValue): Likewise.
5152 (ves_icall_System_Array_CreateInstanceImpl): Don't g_assert_not_reached(),
5153 raise a NotImplementedException instead.
5154 (ves_icall_System_Array_GetLength): Added argument checking.
5155 (ves_icall_System_Array_GetLowerBound): Added argument checking.
5157 2002-03-01 Dietmar Maurer <dietmar@ximian.com>
5159 * object.h (mono_assert): new macros mono_assert and
5160 mono_assert_not_reached
5162 2002-02-28 Martin Baulig <martin@gnome.org>
5164 * icall.c: Rename "System::String::Intern" to "System::String::_Intern"
5165 and "System::String::IsInterned" to "System::String::_IsInterned".
5167 Thu Feb 28 19:19:35 CET 2002 Paolo Molaro <lupus@ximian.com>
5169 * icall.c: remove hacks for typebuilder. Added icall to create a
5170 modified type from a tybebuilder.
5171 * reflection.c: removed hacks for TypeBuilder. Create also a MonoImage
5172 in mono_image_basic_init (). Added mono_reflection_setup_internal_class ()
5173 to create a backing MonoClass for a TypeBuilder.
5175 Thu Feb 28 15:35:51 CET 2002 Paolo Molaro <lupus@ximian.com>
5177 * class.c, class.h: more refactoring of class init.
5178 Export mono_class_setup_mono_type() and mono_class_setup_parent().
5180 Thu Feb 28 12:33:41 CET 2002 Paolo Molaro <lupus@ximian.com>
5182 * marshal.c, marshal.h: start of marshaling interface.
5184 Wed Feb 27 22:15:17 CET 2002 Paolo Molaro <lupus@ximian.com>
5186 * icall.c: fix order in assembly qualified name icall.
5188 Wed Feb 27 18:45:03 CET 2002 Paolo Molaro <lupus@ximian.com>
5190 * class.c: do not free str, since we store it in the hash table.
5191 * reflection.h: add label field to MonoILExceptionInfo.
5192 * reflection.c: handle references to more than one assembly. Handle
5193 case when there isn't a module created in the assembly.
5195 Wed Feb 27 12:35:10 CET 2002 Paolo Molaro <lupus@ximian.com>
5197 * class.c: Fix typo. Start refactoring of class init code.
5199 Wed Feb 27 12:23:00 CET 2002 Paolo Molaro <lupus@ximian.com>
5201 * appdomain.c: exit with 1 on error.
5202 * class.c: we already have the name in MonoClassField.
5203 * image.c, image.h, metadata.c, pedump.c: use directly a pointer in
5204 MonoStreamHeader instead of an offset of image->raw_metadata.
5206 2002-02-26 Miguel de Icaza <miguel@ximian.com>
5208 * appdomain.c (mono_init): Be even more descriptive about the error.
5210 Tue Feb 26 16:18:07 CET 2002 Paolo Molaro <lupus@ximian.com>
5212 * appdomain.c: give the user an informative message when corlib can't
5215 2002-02-26 Martin Baulig <martin@gnome.org>
5217 * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData):
5218 New icall to get the time zone data.
5220 Mon Feb 25 15:51:51 CET 2002 Paolo Molaro <lupus@ximian.com>
5222 * reflection.c: set virtual and raw size of section correctly.
5223 * threads.c: transfer domain information to newly created threads.
5225 Fri Feb 22 18:55:57 CET 2002 Paolo Molaro <lupus@ximian.com>
5227 * class.c: when instancing a class in a domain, load the default
5228 vaules for static fields from the constant table. Fix System.Enum to
5230 * icall.c: implement Object::GetType() internalcall. Implemented
5231 MonoField::GetValue() internalcall. Avoid SEGV in search_method().
5232 Fixed checking of binding flags in find_members().
5233 * metadata.c, metadata.h: introduce mono_metadata_type_hash().
5234 * reflection.c: handle enumerations when writing to the constant
5235 table. Use a different object cache for types.
5238 2002-02-22 Dietmar Maurer <dietmar@ximian.com>
5240 * object.c (mono_object_isinst): fix for arrays
5242 * icall.c (ves_icall_type_is_subtype_of): fix for 2 interfaces
5244 Thu Feb 21 21:00:13 CET 2002 Paolo Molaro <lupus@ximian.com>
5246 * object.c: don't use mprotect () and fix intern pool hash table
5247 lookup for big endian systems.
5249 Thu Feb 21 19:30:29 CET 2002 Paolo Molaro <lupus@ximian.com>
5251 * icall.c: change type_is_subtype_of () signature.
5253 2002-02-21 Mark Crichton <crichton@gimp.org>
5255 * rand.c, rand.h: Added random number generator for
5256 System.Security.Cryptography classes.
5258 * exception.c, exception.h: Added mono_get_exception_not_implemeted.
5260 * icall.c: Added System.Security.Cryptography calls.
5262 Thu Feb 21 16:45:34 CET 2002 Paolo Molaro <lupus@ximian.com>
5264 * class.c, icall.c, metadata.c: better support for pointer types.
5265 Create a class for them as suggested by dietmar. Fix TYPE_ARRAY class.
5266 * reflection.c: Add support for getting custom attrs for properties
5267 and simplify some code.
5269 Wed Feb 20 22:20:29 CET 2002 Paolo Molaro <lupus@ximian.com>
5271 * icall.c: change getToken () and add custom attribute GetBlob()helper
5273 * reflection.h: add custom attrs array to the reflection builder structures.
5274 * reflection.c: encode and emit custom attributes for all the relevant
5275 reflection objects. Cache fieldref and methodref tokens. Change
5276 mono_image_create_token() interface to take a MonoDynamicAssembly.
5277 More complete custom attributes decoder. Load custom attributes for
5278 Assembly, Field, Method and Constructor objects, too. Make the
5279 returned array an Attribute[] one, not object[]. Added
5280 mono_reflection_get_custom_attrs_blob() to encode the arguments of a
5281 custom attribute constructor.
5283 2002-02-20 Dick Porter <dick@ximian.com>
5287 * socket-io.c: Windows portability fixes (sometimes just ifdeffing
5288 problem code out for now).
5290 2002-02-19 Radek Doulik <rodo@ximian.com>
5292 * object.c (mono_ldstr): use hash table to avoid multiple swapping
5294 Tue Feb 19 20:23:11 CET 2002 Paolo Molaro <lupus@ximian.com>
5296 * icall.c: register the GetCustomAttributes method.
5297 * object.c, object.h: add mono_string_new_len ().
5298 * reflection.h, reflection.c: added mono_runtime_invoke(),
5299 mono_install_runtime_invoke(). Added
5300 mono_reflection_get_custom_attrs () to load custom attributes and
5301 create the attribute objects.
5303 2002-02-19 Dick Porter <dick@ximian.com>
5304 * threads-dummy-types.c:
5305 * threads-dummy-types.h:
5308 * threads-pthread-types.c:
5309 * threads-pthread-types.h:
5310 * threads-pthread.c:
5311 * threads-pthread.h: Deleted obsolete files
5313 2002-02-19 Dietmar Maurer <dietmar@ximian.com>
5315 * class.c (mono_class_vtable): runtime init the class when we
5316 allocate static class data.
5318 * icall.c (ves_icall_System_Array_SetValue): check for null values.
5320 * appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
5321 and String - but we will need generic marshalling support in the
5323 (mono_init): set the domain name in a ms compatible way
5325 * object.c (mono_string_new_utf16): bug fix: use char[] instead of
5328 2002-02-18 Dietmar Maurer <dietmar@ximian.com>
5330 * object.c (mono_array_clone): use alloca() instead of g_malloc
5333 * appdomain.c (mono_domain_unload): impl.
5335 Mon Feb 18 15:52:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5337 * appdomain.c, object.c: fix intern pool implementation.
5338 * class.c: fix alignment code.
5340 2002-02-16 Radek Doulik <rodo@ximian.com>
5342 * icall.c (ves_icall_System_Enum_ToObject): in case of big endian
5343 and s2 > s1, just copy lower bytes to be compatible with little
5344 endian (i.e. 64bit value & 0xffffffff --> 32bit value)
5345 (ves_icall_System_Enum_ToObject): and likewise for s1 > s2
5347 * unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
5348 force big_endian to be 1 for big endian machines
5349 (ves_icall_iconv_new_decoder): ditto
5351 2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
5353 * socket-io.c (convert_sockopt_level_and_name): If the system
5354 doesn't define SOL_IP or SOL_TCP, get them by hand using
5355 getprotobyname() and caching the values (because this could be a
5357 (ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
5358 Use the appropriate struct when the system does support it. Ie,
5359 not all systems have struct ip_mreqn so use struct ip_mreq when
5362 Fri Feb 15 18:15:44 CET 2002 Paolo Molaro <lupus@ximian.com>
5364 * reflection.c: handle finally clauses.
5366 Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <lupus@ximian.com>
5368 * socket-io.c: use g_snprintf() instead of snprintf.
5370 2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
5372 * reflection.c (mono_param_get_objects): Cast second argument to
5373 mono_method_get_param_names to a const char** to silence the
5376 * appdomain.c (mono_domain_assembly_open): Put parens around the
5377 truth statement in the for-loop.
5379 * unicode.c (iconv_convert): Got rid of a compiler warning about
5380 int i being unused when the system has a new iconv.
5381 (iconv_get_length): Same.
5383 * image.c (load_class_names): Cast the second argument to
5384 g_hash_table_insert() to char* to hush compiler warnings about the
5386 (mono_image_open): Same here.
5388 * socket-io.c: Don't conditionally include sys/filio.h or
5389 sys/sockio.h here anymore since we now get them from
5391 (inet_pton): If the system doesn't support inet_aton, implement
5392 using inet_addr and also #define INADDR_NONE if it isn't defined
5395 Thu Feb 14 19:01:06 CET 2002 Paolo Molaro <lupus@ximian.com>
5397 * metadata.c, metadata.h: added function to get packing and size info
5399 * reflection.h, reflection.c: handle field RVA data. Save info about
5400 the table layout if needed. Assign typedef indexes to all the types
5401 before dumping the info about them to avoid forward reference problems.
5403 2002-02-14 Dietmar Maurer <dietmar@ximian.com>
5405 * socket-io.c (convert_sockopt_level_and_name): ifdef
5406 SO_ACCEPTCONN because it is not defined on my system (old debian)
5408 Thu Feb 14 11:49:30 CET 2002 Paolo Molaro <lupus@ximian.com>
5410 * opcode.c: use stddef.h to get NULL.
5412 2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
5414 * socket-io.c: conditionally include sys/filio.h and sys/sockio.h
5415 for FIONBIO, FIONREAD and SIOCATMARK.
5416 (ves_icall_System_Net_Dns_GetHostByAddr_internal): SunOS doesn't
5417 define INADDR_NONE and besides, inet_addr() is deprecated and
5418 should not be used. Use inet_pton() instead - it also has the
5419 added bonus that it can easily handle IPv6 addresses as well.
5420 (inet_pton): Implement using inet_aton() ifndef HAVE_INET_PTON.
5422 Wed Feb 13 23:00:21 CET 2002 Paolo Molaro <lupus@ximian.com>
5424 * decimal.c: remove _MSC_VER conditional.
5426 2002-02-13 Dick Porter <dick@ximian.com>
5429 * icall.c: Internal calls for Blocking, Select, Shutdown,
5430 GetSocketOption and SetSocketOption
5432 Wed Feb 13 19:20:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5434 * assembly.cs: better resolver: use it instead of some kludgy
5437 Wed Feb 13 18:25:55 CET 2002 Paolo Molaro <lupus@ximian.com>
5439 * reflection.c: the best way to speed-up the compiler is to avoid
5442 2002-02-13 Dietmar Maurer <dietmar@ximian.com>
5444 * class.c (mono_class_vtable): changed the object layout
5445 (obj->vtable->class).
5446 (mono_class_create_from_typespec): consider MONO_TYPE_PTR
5448 Tue Feb 12 20:06:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5450 * assembly.c: look for assemblies in the assembly dir, too.
5452 Tue Feb 12 14:03:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5454 * class.c: fix thinko in mono_class_from_type().
5456 Mon Feb 11 19:43:51 CET 2002 Paolo Molaro <lupus@ximian.com>
5458 * exception.h, exception.c: added TypeLoadException.
5459 * object.h, object.c: added mono_array_clone ().
5460 * icall.c: handle throwOnError in AssemblyGetType().
5461 Added Array.Clone().
5462 * opcode.h, opcode.c: use a single value for the opcode val.
5463 Compile fix for non-gcc compilers.
5465 Fri Feb 8 12:26:37 CET 2002 Paolo Molaro <lupus@ximian.com>
5467 * opcodes.c, opcodes.h: export interesting info about opcodes.
5469 2002-02-05 Dietmar Maurer <dietmar@ximian.com>
5471 * object.h (MONO_CHECK_ARG, MONO_CHECK_ARG_NULL): new macro for
5474 * class.c (class_compute_field_layout): set element_class for enums
5475 (mono_class_create_from_typedef): set element_class for normal classes
5477 * icall.c (ves_icall_System_Enum_get_value): impl.
5479 * class.c (mono_class_create_from_typedef): do not set valuetype
5480 flag for System.ValueType and System.Enum
5482 2002-02-04 Dietmar Maurer <dietmar@ximian.com>
5484 * unicode.c (iconv_convert): fix big endian problem.
5486 Fri Feb 1 16:13:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5488 * class.c: add asserts if we are ever going to scribble over memory.
5489 * socket-io.c: not all systems have AF_IRDA defined.
5491 2002-01-31 Dietmar Maurer <dietmar@ximian.com>
5493 * class.c (class_compute_field_layout): do not consider static
5494 fields to compute alignment
5496 2002-01-25 Dietmar Maurer <dietmar@ximian.com>
5498 * appdomain.c (mono_appdomain_get): impl.
5499 (ves_icall_System_AppDomain_ExecuteAssembly): impl.
5501 Thu Jan 24 12:59:23 CET 2002 Paolo Molaro <lupus@ximian.com>
5503 * icall.c: ignore "file://" prefix when loading an assembly.
5505 2002-01-23 Dick Porter <dick@ximian.com>
5509 * Makefile.am: Added socket support
5511 2002-01-23 Miguel de Icaza <miguel@ximian.com>
5513 * icall.c (ves_icall_appdomain_get_default_assemblies): put this
5514 code back. This should return the assemblies that are loaded by
5515 the runtime on behalf of an application domain.
5517 The current implementation is still broken, it just returns every
5518 assembly loaded, but until we get real applications domain this
5521 2002-01-23 Dietmar Maurer <dietmar@ximian.com>
5523 * icall.c (ves_icall_appdomain_get_cur_domain): runtime_init the
5526 2002-01-23 Miguel de Icaza <miguel@ximian.com>
5528 * icall.c (ves_icall_appdomain_get_cur_domain): Cache the value of
5529 the mono_class_from_name lookup.
5530 (ves_icall_get_parameter_info): ditto.
5531 (ves_icall_appdomain_get_assemblies, add_assembly): Implement new internal
5533 (ves_icall_System_Reflection_Assembly_get_code_base): Another new call.
5535 Tue Jan 22 22:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
5537 * class.c: load also nested classes on class init.
5538 System.ValueType instance methods gets passed boxed
5539 values, unless methods in derived classed that get a pointer to the
5541 * icall.c: use better name parsing code in GetType().
5542 * image.c, image.h: add mono_image_loaded ().
5543 * metadata.c, metadata.h: add mono_metadata_nesting_typedef ().
5544 * reflection.c, reflection.h: added mono_reflection_parse_type().
5546 2002-01-22 Veronica De Santis <veron78@interfree.it>
5548 * icall.c : Added mapping of internal calls for Manual and Auto reset events
5549 * threads.c : Added the implementation of internal calls for events
5550 * threads.h : Added prototypes of internal calls for events
5552 2002-01-21 Radek Doulik <rodo@ximian.com>
5554 * icall.c (ves_icall_InitializeArray): swap bytes on big endians
5556 2002-01-21 Dietmar Maurer <dietmar@ximian.com>
5558 * class.c (mono_class_init): set min_align to 1 (instead of 0)
5559 (mono_class_value_size): use min_align
5561 2002-01-20 Dick Porter <dick@ximian.com>
5564 * threads.c: Replaced all instances of WapiHandle * with HANDLE,
5565 so it compiles on w32.
5567 2002-01-17 Dietmar Maurer <dietmar@ximian.com>
5569 * metadata.c (mono_type_stack_size): impl.
5571 * class.c (mono_class_get_field): impl. memberref token
5573 2002-01-16 Veronica De Santis <veron78@@interfree.it>
5575 * icall.h : Added the internal calls mapping for CreateMutex_internal
5576 and ReleaseMutex_internal.
5577 * threads.h : Added the prototype of mutexes internal calls.
5578 * threads.c : Added the implementations of mutexes internal calls.
5580 Tue Jan 15 22:47:57 CET 2002 Paolo Molaro <lupus@ximian.com>
5582 * metaparse.h: removed unused file.
5583 * reflection.c, reflection.h: added stream_data_align () function
5584 to align data in streams and keep stream aligned. Add support for
5585 exception support in method headers.
5587 Tue Jan 15 19:42:50 CET 2002 Paolo Molaro <lupus@ximian.com>
5589 * unicode.c: make iconv_convert () return the number of bytess written
5590 in the output buffer.
5592 2002-01-15 Dick Porter <dick@ximian.com>
5593 * threads.c: Make the runtime's idea of infinite timeouts coincide
5594 with the class library's
5596 Fix a particularly egregious bug in mono_thread_cleanup(). That
5597 code was so utterly bogus it must have been written on a Monday.
5599 Mon Jan 14 17:01:03 CET 2002 Paolo Molaro <lupus@ximian.com>
5601 * reflection.h: add subtypes field to TypeBuilder.
5602 * reflection.c: encode constants for literal fields.
5603 Handle subtypes. Fix user string token (and add a zero byte)
5606 2002-01-14 Dietmar Maurer <dietmar@ximian.com>
5608 * class.c (mono_class_init): bug fix: assign slot numbers for
5611 Fri Jan 11 18:54:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5613 * reflection.c: don't try to output a code RVA for abstract methods.
5614 Small fixes for method header format. Output parameter info to the
5615 ParamDef table. Save method overriding info to MethodImpl table.
5616 Fix property support. Allow typedef.extends to be a type in the
5618 * verify.c: fix off-by-one error.
5620 Thu Jan 10 19:36:27 CET 2002 Paolo Molaro <lupus@ximian.com>
5622 * class.c: fix mono_class_from_mono_type () for szarray types.
5623 Remove unused cache check in mono_class_from_type_spec().
5624 * icall.c: *type_from_name () functions handle simple arrays and byref.
5625 * reflection.c: handle byref and szarray types. Handle methods without
5626 body (gets P/Invoke compilation working). Handle types and fields in
5628 * reflection.h: add rank to MonoTypeInfo.
5630 2002-01-10 Dick Porter <dick@ximian.com>
5632 * threads.c: Implemented WaitAll(), WaitAny() and WaitOne()
5635 Wed Jan 9 19:27:13 CET 2002 Paolo Molaro <lupus@ximian.com>
5637 * icall.c: initialize class in type_from_handle ().
5638 Loop also in parent classes for get_method ().
5639 * reflection.c: properly encode class and valuetype types.
5640 Start on encoding TypeBuilder types. Handle fieldrefs.
5641 Use correct length when registering a user string.
5642 Handle ConstructorBuilder and MonoMethod in get_token ().
5643 Make mono_type_get_object () aware of cached types.
5644 * object.c: back out change to mono_string_new ().
5646 Tue Jan 8 22:47:44 EST 2002 Matt Kimball <matt@kimball.net>
5647 * object.c: mono_string_new should return a NULL when the string
5648 passed in is NULL -- not try to deference it.
5650 Sat Jan 5 15:48:04 CET 2002 Paolo Molaro <lupus@ximian.com>
5652 * icall.c: hack to make IsSubType work for TypeBuilders.
5653 * reflection.c: emit constructors before methods.
5654 Retrieve param names in mono_param_get_objects().
5656 2002/01/05 Nick Drochak <ndrochak@gol.com>
5658 * Makefile.am: fix list of headers and sources so automake 1.5
5659 doesn't complain. Removed \# at end of list.
5661 Thu Jan 3 23:17:17 CET 2002 Paolo Molaro <lupus@ximian.com>
5663 * reflection.c: get token for a method ref. Set return type of
5664 constructor to void.
5665 * loader.c: debug message.
5666 * class.c: typo fix.
5668 Mon Dec 24 17:18:10 CET 2001 Paolo Molaro <lupus@ximian.com>
5670 * icall.c: fix array init with rank > 1. FindMembers
5671 loops in parent class as well.
5672 * image.c: do not insert nested types in name cache.
5673 * reflection.c: warning fix.
5674 * reflection.h: add override method (for interface impl).
5676 Mon Dec 24 16:16:56 CET 2001 Paolo Molaro <lupus@ximian.com>
5678 * metadata.c: fix customattr decoding.
5680 2001-12-21 Miguel de Icaza <miguel@ximian.com>
5682 * rawbuffer.cs: Added native Win32 implementation, avoids using
5683 mmap on Cygwin. This patch is from Dan Lewis (dihlewis@yahoo.co.uk)
5685 Thu Dec 20 20:11:26 CET 2001 Paolo Molaro <lupus@ximian.com>
5687 * class.c: make the low-level routines handle the cache.
5689 Thu Dec 20 15:20:35 CET 2001 Paolo Molaro <lupus@ximian.com>
5691 * image.c: fopen (file, "rb") ("David Dawkins" <david@dawkins.st>).
5693 Tue Dec 18 18:50:00 CET 2001 Paolo Molaro <lupus@ximian.com>
5695 * class.c: fix mono_array_element_size() for objects.
5696 * class.h, class.c: add properties to MonoClass and load them
5698 * icall.c: check with isinst() when assigning a value to an array
5699 instead of requiring the classes to match exactly.
5700 Implemented icall for System.Type::GetType().
5701 Implemented icalls to get ParameterInfo, ProprtyInfo and info about
5702 enums. Handle bindingflags when looking for methods and fields.
5703 * metadata.h, metadata.c: implemented mono_metadata_properties_from_typedef()
5704 and mono_metadata_methods_from_property().
5705 * reflection.h, reflection.c: added structures for propreties,
5706 parameters and enums. Implemented mono_property_get_object() and
5707 mono_param_get_objects().
5709 2001-12-18 Dick Porter <dick@ximian.com>
5711 * file-io.c: Use mono_string_to_utf16() instead of
5714 * object.c: Added mono_string_to_utf16(), which copies the non
5715 NULL-terminated MonoString into a new double-null-terminated
5718 2001-12-17 Dietmar Maurer <dietmar@ximian.com>
5720 * icall.c (ves_icall_System_DateTime_GetNow): added EPOCH adjustment
5722 2001-12-16 Dietmar Maurer <dietmar@ximian.com>
5724 * file-io.c: raise exceptions if handle is invalid.
5726 Thu Dec 13 20:27:08 CET 2001 Paolo Molaro <lupus@ximian.com>
5728 * assembly.c: yet another check for mscorlib.
5729 * class.c, class.h: load nesting info for classes.
5730 * icall.c: many new functions to support the Reflection classes.
5731 * metadata.c, metadata.h: mono_metadata_nested_in_typedef() added.
5732 * reflection.h, reflection.c: mono_image_create_token(),
5733 mono_assembly_get_object(), mono_type_get_object(),
5734 mono_method_get_object(), mono_field_get_object(): methods to return
5735 objects that parallel the C representation of assemblies, types,
5738 2001-12-11 Dick Porter <dick@ximian.com>
5741 * file-io.c: Internal calls for file IO.
5743 Thu Dec 6 16:21:30 CET 2001 Paolo Molaro <lupus@ximian.com>
5745 * tabledefs.h: missing FileAttributes.
5746 * verify.h, verify.c: use is_valid_string () to simplify and check for
5747 valid strings more correctly. Fix warnings and speeling.
5748 Check more tables: Filed, File, ModuleRef, StandAloneSig.
5749 Check code: branches, maxstack, method calls.
5751 2001-12-04 Dietmar Maurer <dietmar@ximian.com>
5753 * object.c (mono_object_allocate): removed static, so that the jit
5754 can allocate value types.
5756 * icall.c (ves_icall_System_DateTime_GetNow): impl.
5758 Mon Dec 3 17:02:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5760 * class.c: init enum types right away and register the
5761 token->MonoClass map in mono_class_create_from_typedef ().
5762 * verify.h, verify.c: first cut of the verifier.
5763 * pedump.c: add --verify switch to verify metadata tables.
5764 * tabledefs.h: add some missing enums.
5766 2001-11-30 Dietmar Maurer <dietmar@ximian.com>
5768 * class.c (mono_install_runtime_class_init): impl.
5769 (mono_class_init): renamed mono_class_metadata_init to
5770 mono_class_init, also removed the metadata_inited flag
5772 * object.c (mono_object_isinst): use faster algorithm
5774 2001-11-30 Radek Doulik <rodo@ximian.com>
5776 * mono-endian.h: reverted last change
5777 added function prototypes
5779 * Makefile.am (libmetadata_a_SOURCES): reverted my last change and
5780 add mono-endian.c back
5782 * mono-endian.c: returned back, as Paolo pointed out, it's needed
5783 for unaligned access, I've mistaked it with endianess. I am
5785 (mono_read16): fix reverted endianess
5786 (mono_read64): ditto
5787 (mono_read32): ditto
5789 2001-11-30 Dick Porter <dick@ximian.com>
5791 * exception.c: Implement mono_exception_from_name()
5793 Fri Nov 30 12:01:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5795 * metadata.h, metadata.c: remove params_size and locals_size and their
5796 calculation from the metadata code: they are only usefult to the
5799 2001-11-29 Radek Doulik <rodo@ximian.com>
5801 * object.c (mono_ldstr): swap bytes here, it's probably not the
5802 best place, but works for me now, I'll redo it once I know mono
5803 better, also note that I add PROT_WRITE and don't reset back, also
5804 note that it's only affects big endians, so x86 should be OK
5806 * mono-endian.h (read16): use just glib macros for both endians
5808 * mono-endian.c: removed as glib macros are used in in
5809 mono-endian.h so we don't need to care about endianess for read
5810 macros as glib does that for us already
5812 Thu Nov 29 18:20:58 CET 2001 Paolo Molaro <lupus@ximian.com>
5814 * class.h, class.h: take minimum alignment into consideration so
5815 that the fields of a class remain aligned also when in an array.
5817 Tue Nov 27 16:39:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5819 * loader.h, loader.c: add mono_method_get_param_names().
5820 * class.c: 0-init class fields.
5822 2001-11-26 Dick Porter <dick@ximian.com>
5826 * threads.c: New file that handles System.Threading on all platforms
5829 * object.h: Remove the synchronisation struct from MonoObject,
5830 replace it with a pointer that gets initialised on demand
5832 * Makefile.am: Replace all the system-specific threading code with
5833 a single file that uses the new wrapper library
5835 Mon Nov 19 11:37:14 CET 2001 Paolo Molaro <lupus@ximian.com>
5837 * class.c, class.h: add mono_install_trampoline() so that the runtime
5838 can register a function to create a trampoline: removes the ugly
5839 requirement that a runtime needed to export arch_create_jit_trampoline.
5840 * object.h, object.c: added mono_install_handler() so that the runtime
5841 can install an handler for exceptions generated in C code (with
5842 mono_raise_exception()). Added C struct for System.Delegate.
5843 * pedump.c: removed arch_create_jit_trampoline.
5844 * reflection.c: some cleanups to allow registering user strings and
5845 later getting a token for methodrefs and fieldrefs before the assembly
5847 * row-indexes.h: updates and fixes from the new ECMA specs.
5849 Thu Nov 15 17:44:49 CET 2001 Paolo Molaro <lupus@ximian.com>
5851 * class.h, class.c: add enum_basetype field to MonoClass.
5852 * metadata.h, metadata.c: add mono_metadata_get_constant_index()
5853 to get index in the constant table reated to a field, param or
5855 * reflection.h, reflection.c: handle constructors. Set public-key and
5856 version number of the built assembly to 0.
5857 * row-indexes.h: update from new ECMA spec.
5859 Wed Nov 14 19:26:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5861 * class.h, class.c: add a max_interface_id to MonoClass.
5862 * icall.c: rename my_mono_new_object() to my_mono_new_mono_type()
5863 since it's used to do that. Added mono_type_type_from_obj().
5864 Make GetType() return NULL instead of segfaulting if the type was not
5865 found. Handle simple arrays in assQualifiedName.
5866 * object.h: add a struct to represent an Exception.
5867 * reflection.c: output call convention in method signature.
5868 Add code to support P/Invoke methods and fixed offsets for fields.
5870 Mon Nov 12 12:41:32 CET 2001 Paolo Molaro <lupus@ximian.com>
5872 * decimal.c, decimal.h: mono_double2decimal() get the sign bit from
5874 * icall.c: use mono_array_addr instead of array->vector: fixes the
5875 reflection image writing.
5876 * reflection.c: init call convention byte to 0 in method signature.
5877 Encode the property signature. Don't output property-related methods
5878 twice. Really process the properties for a type (don't cast a field to
5879 a property, my mom always told me that).
5880 Fix 64 bit issues in pointer alignment in a different and more
5883 2001-11-10 Sean MacIsaac <macisaac@ximian.com>
5885 * loader.h: Removed type class from MonoDefaults, added monotype
5887 * loader.c: Loaded MonoType, removed loading of Type
5889 * icall.c (my_mono_new_object): Now returns a System.MonoType,
5890 and fills in System.Type._impl with a RuntimeTypeHandle rather
5891 than the actual MonoClass *
5893 (ves_icall_type_from_handle): change from type_class to
5896 (ves_icall_System_Runtime_InteropServices_Marshal_ReadIntPtr):
5899 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAuto):
5902 (ves_icall_System_Reflection_Assembly_LoadFrom): implemented
5904 (ves_icall_System_Reflection_Assembly_GetType): implemented
5906 (ves_icall_System_MonoType_assQualifiedName): implemented
5908 (ves_icall_System_PAL_OpSys_GetCurrentDirecotry): implemented
5910 2001-11-09 Miguel de Icaza <miguel@ximian.com>
5912 * assembly.c (mono_assembly_open): Implement a cache for the
5915 (mono_assembly_close): only destroy the assembly when the last
5918 2001-11-09 Dick Porter <dick@ximian.com>
5920 * Makefile.am (pedump_LDADD): Don't need THREAD_LIBS any more
5922 2001-11-09 Dietmar Maurer <dietmar@ximian.com>
5924 * class.c (mono_class_metadata_init): bug fix: compute the right slot
5926 Fri Nov 9 15:48:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5928 * icall.c, decimal.h, decimal.c: integrated decimal internalcalls
5929 from Martin Weindel.
5930 * object.h: add mono_string_chars ().
5932 2001-11-07 Miguel de Icaza <miguel@ximian.com>
5934 * reflection.c (build_compressed_metadata): Eliminates warnings
5935 and uses 64-bit clean code.
5937 * metadata.c (mono_type_hash): Change signature to eliminate warnings.
5938 (mono_type_equal): Change signature to eliminate warnings.
5940 Wed Nov 7 15:40:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5942 * icall.c, loader.c: remove the internalcall array constructors.
5943 Changes to match the new MonoArray structure.
5944 * object.h, object.c: an array object doesn't allocate an extra
5945 vector. Add mono_array_new_full () to create jagged arrays easily.
5947 Mon Nov 5 19:51:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5949 * metadata.h, metadata.c: add mono_metadata_field_info () to
5950 retreive all the info about a field from vairous tables.
5951 * icall.c: implement S.Runtime.CServices::InitializeArray () icall.
5952 * class.h, class.c: augment MonoClassField with more info.
5953 Implemented mono_ldtoken for fields. Implemented ExplicitLayout
5954 policy and load a field's RVA if needed.
5956 2001-11-05 Dietmar Maurer <dietmar@ximian.com>
5958 * class.c (mono_class_metadata_init): create a trampoline for all
5959 virtual functions instead of actually compiling them.
5961 Fri Nov 2 19:37:51 CET 2001 Paolo Molaro <lupus@ximian.com>
5963 * class.h, class.c: include name in MonoClassField.
5964 * class.c: fix fundamental type of System.Object and System.String.
5965 Set the right fundamental type for SZARRAY, too. Handle TypeSpec
5967 * icall.c: remove internalcalls for the Reflection stuff that is now
5969 * loader.c: mono_field_from_memberref () implementation.
5970 * mono-endian.c: thinko (s/struct/union/g).
5971 * object.c, object.h: make the mono_string_* prototypes actually use
5972 MonoString instead of MonoObject.
5973 * reflection.c, reflection.h: updates for changes in the reflection
5974 code in corlib: we use C structures that map to the actual C# classes.
5975 Handle SZARRAYs when encoding types. Handle locals in methods. Use a
5976 fat method header if needed and use the info from the ILGenerator for
5977 methods. Handle fields in types. Misc fixes.
5979 2001-10-17 Dietmar Maurer <dietmar@ximian.com>
5981 * class.c (mono_class_metadata_init): bug fix: always allocate
5982 space for static class data
5984 2001-10-25 Dietmar Maurer <dietmar@ximian.com>
5986 * class.c (mono_compute_relative_numbering): use relative
5987 numbering to support fast runtime type checks.
5989 2001-10-17 Sean MacIsaac <macisaac@ximian.com>
5991 * class.c (mono_class_create_from_typeref): added debugging output
5992 to print class name when MonoDummy is returned instead of real class
5994 2001-10-15 Dietmar Maurer <dietmar@ximian.com>
5996 * class.c (mono_class_metadata_init): interface offset table now
5997 contains pointers into the vtable - this is more efficient for the jit
5999 2001-10-12 Dietmar Maurer <dietmar@ximian.com>
6001 * class.c (mono_class_metadata_init): use a temporary vtable (the
6002 old algorithm only worked for the interpreter, but not for the jit)
6004 2001-10-11 Dietmar Maurer <dietmar@ximian.com>
6006 * loader.c (method_from_memberref): use mono_class_get to get the
6007 class of an array instead of using System.Array directly.
6008 (mono_get_method): also add MEMBERREF methods to the method cache
6009 which usefull for arrays.
6011 2001-10-10 Dietmar Maurer <dietmar@ximian.com>
6013 * pedump.c (arch_compile_method): added to compute vtable entry
6015 * metadata.c (mono_metadata_interfaces_from_typedef): also return the
6016 number of interfaces.
6018 * class.h: merged MonoArrayClass into MonoClass
6020 * class.c (mono_class_create_from_typedef): compute the vtable size and
6021 allocate space to include the vtable inside MonoClass
6022 (mono_class_metadata_init): initialize the vtable
6024 Mon Oct 8 16:12:38 CEST 2001 Paolo Molaro <lupus@ximian.com>
6026 * metadata.c, metadata.h: use MonoArrayType to describe the shape of an array.
6027 Guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux).
6028 * image.c: endian fixes by Laurent Rioux.
6029 * object.h, object.c: rename MonoStringObject to MonoString and
6030 MonoArrayObject to MonoArray. Change some function names to conform to
6031 the style mono_<object>_<action>. mono_string_new_utf16 () takes a
6032 guint16* as first argument, so don't use char*.
6033 Provide macros to do the interesting things on arrays in a portable way.
6034 * threads-pthread.c: updates for the API changes and #include <sched.h>
6035 (required for sched_yield()).
6036 * icall.c: updates for the API changes above.
6037 * Makefile.am, mono-endian.c. mono-endian.h: include unaligned read routines for
6038 platforms that need them.
6040 Mon Oct 8 10:43:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
6042 * class.c: set the correct type for all the fundamental
6043 type when loading the class.
6045 2001-10-05 Dick Porter <dick@ximian.com>
6047 * threads-pthread.c (pthread_mutex_timedlock): Simple
6048 compatibility version for C libraries that lack this call.
6050 Thu Oct 4 19:10:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
6052 * class.c: MonoTypes stored in MonoClass are stored as
6053 fundamental MonoTypes when the class represents a
6054 fundamental type (System.Int32, ...).
6055 The TypeHandle return by ldtoken is a MonoType*.
6056 * icall.c: ves_icall_get_data_chunk () write out all the
6057 PE/COFF stuff. Implement ves_icall_define_method (),
6058 ves_icall_set_method_body (), ves_icall_type_from_handle ().
6059 * image.c: properly skip unknown streams.
6060 * loader.h, loader.c: add type_class to mono_defaults.
6061 * metadata.c, metadata.h: export compute_size () as
6062 mono_metadata_compute_size () with a better interface.
6064 * pedump.c: don't try to print the entry point RVA if there is no entry point.
6065 * reflection.c, reflection.h: many cleanups, fixes, output method
6066 signatures and headers, typedef and typeref info, compress the metadata
6067 tables, output all the heap streams, cli header etc.
6068 * row-indexes.h: typo fixes.
6070 2001-10-04 Dick Porter <dick@ximian.com>
6072 * object.h: Add a synchronisation mutex struct to MonoObject
6074 * object.c (mono_new_object): Initialise the object
6075 synchronisation mutexes
6077 * icall.c: System.Threading.Monitor internal calls
6079 * threads-pthread.h:
6080 * threads-pthread.c: System.Threading.Monitor internal calls
6082 * threads-types.h: New file, includes the system-specific thread
6085 * threads-pthread-types.h:
6086 * threads-pthread-types.c: New files, handle pthread-specific
6087 synchronisation types
6089 * threads-dummy-types.h:
6090 * threads-dummy-types.c: New files of dummy support for
6091 thread-specific types
6095 * pedump.c: include mono-endian.h not endian.h
6097 * Makefile.am: More threads files.
6098 Name mono-endian.h not endian.h
6100 Tue Oct 2 20:33:48 CEST 2001 Paolo Molaro <lupus@ximian.com>
6102 * Makefile.am, reflection.h, reflection.c: move here the reflection related
6103 stuff and implement a few more bits.
6104 * icall.c: a field needs to be dereferenced twice. Do not use the same
6105 name for two variables in the same scope.
6106 * image.c, image.h: cleanups.
6108 2001-10-02 Dietmar Maurer <dietmar@ximian.com>
6110 * class.c (mono_class_metadata_init): bug fix: compute the right size
6112 Mon Oct 1 20:43:57 CEST 2001 Paolo Molaro <lupus@ximian.com>
6114 * icall.c: implemented some of the Reflection internalcalls.
6115 * image.c, image.h: start writing out the PE/COFF image.
6116 * metadata.h, metadata.c: implement mono_metadata_encode_value ()
6117 that does the reverse than decode_blob_size ().
6118 * object.c: use mono_metadata_encode_value (). Move here
6119 temporary implementation of mono_string_to_utf8 ().
6120 * rawbuffer.c: make malloc_map static.
6122 Fri Sep 28 19:26:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
6124 * metadata.c: fix type comparison for arrays.
6125 * loader.h, loader.c: half-assed fix to get more tests work in cygwin.
6126 Added a couple of new classes to monodefaults.
6127 * icall.c: added a couple of Reflection-related internalcalls.
6128 * class.h, class.c: implemented mono_ldtoken () for RuntimeTypeHandles.
6129 Added a byval_arg MonoType to MonoClass.
6131 2001-09-28 Dick Porter <dick@ximian.com>
6134 * threads-pthread.h:
6135 * threads-pthread.c: Implemented internal calls for
6136 LocalDataStoreSlot operations. Applied mutexes around all shared
6137 data. Reworked the thread creation and Start() operations to
6138 avoid a race condition.
6141 * threads-dummy.c: Dummy calls for the LocalDataStoreSlot operations
6143 Thu Sep 27 21:45:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
6145 * rawbuffer.c: disable mmap on cygwin since it seems to be broken there.
6147 Thu Sep 27 19:52:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
6149 * class.c, loader.c: warn and return NULL instead of erroring out.
6150 * icall.c: added System.AppDomain::getCurDomain().
6151 * loader.c: we don't need to lookup the typedef again for p/invoke calls.
6153 2001-09-25 Dick Porter <dick@ximian.com>
6155 * threads-pthread.h:
6156 * threads-pthread.c: Implemented timed thread joining and added
6157 System.Threading.Thread::Join_internal internal call
6159 * icall.c: Added System.Threading.Thread::Join_internal internal call
6162 * threads-dummy.c: Dummy calls for System.Thread.Thread::Join_internal
6164 Mon Sep 24 18:56:59 CEST 2001 Paolo Molaro <lupus@ximian.com>
6166 * object.c, object.h: added mono_ldstr (), mono_string_is_interned () and
6167 mono_string_intern () to implement the semantics of the ldstr opcode
6168 and the interning of System.Strings.
6169 * icall.c: provide hooks to make String::IsIntern and String::Intern
6172 2001-09-23 Dick Porter <dick@ximian.com>
6175 * threads-dummy.h: New files of dummy threading routines
6177 * Makefile.am (THREAD_SOURCE): Arrange to compile different thread
6178 support code based on system specifics
6180 Rename PTHREAD_LIBS to THREAD_LIBS
6182 2001-09-23 Dick Porter <dick@ximian.com>
6184 * threads-pthread.c: Implement the System.Threading.Thread::Sleep,
6185 Schedule (called when asked to Sleep for 0 ms) and CurrentThread
6187 (mono_thread_init): Set up a Thread object instance to return when
6188 the main thread calls Thread.CurrentThread
6189 (mono_thread_cleanup): Wait for all subthreads to exit
6191 * icall.c: New internal calls for System.Threading.Thread::Sleep
6192 (including Schedule) and CurrentThread
6194 * threads.h: New file, to insulate thread-specific stuff from the
6197 2001-09-21 Dick Porter <dick@ximian.com>
6199 * threads-pthread.h:
6200 * threads-pthread.c: New file, for handling pthreads-style
6201 threading support. Start() now starts a new thread and executes
6202 the ThreadStart delegate instance.
6204 * icall.c: Added the internalcall for
6205 System.Threading.Thread::Start_internal
6207 * Makefile.am: Added new files, and PTHREADS_LIBS to the link line
6209 Thu Sep 20 19:37:39 CEST 2001 Paolo Molaro <lupus@ximian.com>
6211 * loader.c: work around the different signatures for delegates
6212 constructors csc generates in compiled code vs the ones compiled in mscorlib.
6214 Tue Sep 18 13:16:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
6216 * class.h, class.c: add mono_class_get_field_from_name ().
6217 * *: Fix C comments and other ANSI C issues.
6219 Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
6221 * endian.h, assembly.c: fix some endianness issues.
6223 Fri Sep 7 18:40:40 CEST 2001 Paolo Molaro <lupus@ximian.com>
6225 * loader.h, load.c: add delegate_class to mono_defaults.
6226 Handle runtime provided methods in mono_get_method ().
6228 2001-08-29 Dietmar Maurer <dietmar@ximian.com>
6230 * loader.c (mono_get_method): use pinvoke for internal call
6232 * icall.c: use pinvoke for internal call
6234 * loader.c (method_from_memberref): set the method name
6236 Wed Aug 29 12:43:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
6238 * metadata.c: help the compiler generate better code for
6239 mono_class_from_mono_type ().
6241 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
6243 * class.c (mono_class_metadata_init): delayed computing of the
6244 class size to mono_class_metadata_init ()
6246 Tue Aug 28 15:47:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
6248 * class.c, class.h: add an interfaces member to MonoClass.
6249 * image.c, image.h: add assembly_name field to MonoImage
6250 from the assembly table.
6251 * metadata.c, metadata.h: add mono_metadata_interfaces_from_typedef ().
6253 Mon Aug 27 20:12:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
6255 * class.c: Handle Array in mono_class_from_mono_type ().
6256 * metadata.c, pedump.c: some endian fixes.
6258 Mon Aug 27 15:23:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
6260 * class.c, loader.c, loader.h: More types handled in mono_class_from_mono_type ().
6261 * metadata.c: fix small problem introduced with the latest commit.
6263 Mon Aug 27 12:17:17 CEST 2001 Paolo Molaro <lupus@ximian.com>
6265 * loader.c, metadata.c, metadata.h: Export mono_metadata_type_equal().
6266 We don't need a MonoMetadata pointer anymore to compare signatures in
6267 mono_metadata_signature_equal (), update callers.
6268 Reduced memory usage an number of allocations for MonoMethodHeader and
6269 MonoMethodSignature.
6271 Sun Aug 26 23:03:09 CEST 2001 Paolo Molaro <lupus@ximian.com>
6273 * metadata.c: added compare for szarray.
6275 Sun Aug 26 11:34:24 CEST 2001 Paolo Molaro <lupus@ximian.com>
6277 * class.h, class.c, loader.h, loader.c: export mono_class_from_mono_type ()
6278 and add a couple more types to it and mono_defaults. Give an hint on
6279 classes that need implementing in our corlib and are referenced
6282 Sat Aug 25 12:52:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
6284 * class.h, class.c: keep track if a class is also an Enum.
6285 * loader.c: Implement a couple more types for use in libffi
6286 marshalling. Gives better diagnostics when failing to dlopen
6287 a library. Set method->klass for P/Invoke methods, too.
6289 Fri Aug 24 19:30:25 CEST 2001 Paolo Molaro <lupus@ximian.com>
6291 * class.c, class.h: add a MonoType this_arg to MonoClass that
6292 represents a pointer to an object of the class' type that
6293 can be used by the interpreter and later the type cache.
6294 Add best guess alignment info for valuetype objects.
6296 Fri Aug 24 15:50:31 CEST 2001 Paolo Molaro <lupus@ximian.com>
6298 * metadata.h, metadata.c, class.h, class.c: squeezed MonoParam
6299 into MonoType: one less level of indirection and allocation and
6300 simplifies quite a bit of code. Added cache for MonoTypes that are
6301 used frequently, so that we don't need to allocate them all the time.
6303 2001-08-24 Dietmar Maurer <dietmar@ximian.com>
6305 * class.c (mono_class_create_from_typedef): System.Enum is also a
6306 value type, although it does not derive from System.ValueType
6307 (maybe a bug in the ms compiler?)
6309 * metadata.c (mono_type_size): return the right size for value types
6311 * loader.c (mono_get_method): only initialize method header if not abstract
6313 * class.c (mono_class_from_mono_type): use mono_default values.
6315 2001-08-23 Dietmar Maurer <dietmar@ximian.com>
6317 * *: use MonoClass pointers instead of <type_tokens>
6319 * class.h: new flag: metadata_inited.
6321 * class.c (mono_class_metadata_init): impl.
6322 (mono_class_instance_size): impl.
6323 (mono_class_data_size): impl.
6325 Wed Aug 22 16:27:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
6327 * metadata.c, loader.h, loader.c, image.h, image.c, class.h, class.c:
6328 MonoClass now has the name and name_space fields.
6329 MonoMethod has a pointer to its MonoClass, instead of MonoImage.
6330 mono_get_method () takes and optional MonoClass as argument.
6331 Removed mono_typedef_from_name() and added mono_class_token_from_name()
6332 instead that takes advantage of a map from class names to typedef
6333 tokens in MonoImage.
6335 Tue Aug 21 18:54:58 CEST 2001 Paolo Molaro <lupus@ximian.com>
6337 * metadata.c: zero is not a valid alignment boundary.
6338 Merge MONO_TYPE_VOID in default decoding code.
6340 2001-08-21 Dietmar Maurer <dietmar@ximian.com>
6342 * image.h: merged MonoMetadata into MonoImage
6344 * class.h: cleanup of MonoArrayClass, use a MonoClass pointer to
6345 identify the type of elements.
6347 Mon Aug 20 19:39:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
6349 * blob.h: fix MONO_TYPE_TYPEDBYREF value.
6350 * cil-coff.h: split MonoMSDOSHeader and add size info.
6351 * image.c: add some consistency checks.
6352 * metadata.c: fix row size computation: one programmer
6353 error and one LAMESPEC. Handle MONO_TYPE_TYPEDBYREF.
6354 add explanation for the locator routine.
6355 Fix decoding of size in method header.
6357 2001-08-20 Miguel de Icaza <miguel@ximian.com>
6359 * assembly.c (g_concat_dir_and_file): Use _S for string concat.
6360 (g_concat_dir_and_file): Bring g_concat_dir_and_file
6361 function from gnome-libs. This uses the right path separator
6362 based on the OS, and also works around a bug in some systems where
6363 a double slash is not allowed.
6364 (default_assembly_name_resolver): Use g_concat_dir_and_file
6365 (mono_assembly_open): ditto.
6367 2001-08-20 Dietmar Maurer <dietmar@ximian.com>
6369 * metadata.c (mono_metadata_signature_equal): impl.
6371 * *: void is now a realy MonoType (instead of using NULL)
6373 * metadata.c (do_mono_metadata_parse_type): use
6374 mono_metadata_parse_type to parse void value.
6376 Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
6378 * metadata.c, metadata.h: in the signature and method header store
6379 only the space required for holding the loca vars and incoming arguments.
6381 2001-08-15 Dietmar Maurer <dietmar@ximian.com>
6383 * metadata.c (do_mono_metadata_parse_type): treat void like any
6384 other type (instead of assigning NULL);
6386 2001-08-14 Dietmar Maurer <dietmar@ximian.com>
6388 * metadata.c (mono_metadata_parse_mh): fixxed pinned/byref value
6390 2001-08-09 Dietmar Maurer <dietmar@ximian.com>
6392 * image.c (do_mono_image_open): added a cache for arrays.
6394 Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6396 * metadata.h, metadata.c: add mono_metadata_decode_row_col () to
6397 decode a single column from a row in a metadata table and changes
6398 to take advantage of it in the typedef locator (gives a nice speed up).
6399 Store offset info for function params.
6401 2001-08-02 Dietmar Maurer <dietmar@ximian.com>
6403 * image.h (MONO_IMAGE_IS_CORLIB): removed
6405 Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
6407 * assembly.c: how could mono_assembly_close () had ever worked?
6408 * metadata.c, metadata.h: provide offset info for local vars.
6409 Implement mono_type_size () to take care of alignment as well
6410 as size (it was mono_field_type_size in cli/class.c before).
6412 2001-08-01 Dietmar Maurer <dietmar@ximian.com>
6414 * image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
6416 * assembly.h (CORLIB_NAME): set to corlib.dll
6418 * assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
6420 Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6422 * metadata.h, metadata.c, Makefile.am, private.h, assembly.c, blob.h,
6423 cil-coff.h, image.c, image.h, pedump.c, rawbuffer.c, rawbuffer.h, row-indexes.h,
6424 tokentype.h: massive namespace cleanup.
6426 Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
6428 * metadata.h, metadata.c: decode exception clauses when parsing method header.
6430 2001-07-27 Dietmar Maurer <dietmar@ximian.com>
6432 * metadata.c (mono_metadata_free_type): added check for type !=
6433 NULL (void) before calling mono_metadata_free_type()
6435 Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
6437 * metadata.h, row_indexes.h: added header with enumerations to use
6438 to index in the columns from tables in metadata and to decode coded
6439 tokens: we should start using this instead of embedding magic numbers
6442 Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
6444 * assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
6445 Move metadata_t info from cli_image_info_t to MonoImage, where
6446 it's easily accessible. Changed all the uses accordingly.
6447 Added the method and class caches to MonoImage.
6448 * metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
6449 and mono_metadata_decode_value () signature to be more consistent
6450 with the other parse functions (and simplify code). Taken advantage
6451 of zero-length array allocation with GCC. Removed reduntant (and
6452 wrong) MonoFieldType struct and use MonoParam instead. Changed
6453 mono_metadata_parse_field_type () to use common code for parsing.
6454 Added mono_metadata_typedef_from_field () and
6455 mono_metadata_typedef_from_method () to lookup a typedef index from a
6456 field or method token.
6457 Pack the MonoRetType structure more tightly (fits in 8 bytes now).
6459 2001-07-23 Miguel de Icaza <miguel@ximian.com>
6461 * metadata.c (mono_metadata_parse_field_type): Implement.
6462 (do_mono_metadata_parse_type): Split engine from
6463 mono_metadata_parse_type, so that we can create smaller structures
6464 for things that just have one pointer to the MonoType (look at
6467 2001-07-20 Miguel de Icaza <miguel@ximian.com>
6469 * metadata.c (mono_metadata_parse_mh): Correct the implementation,
6470 as Jan Gray found out, it is incorrect.
6472 2001-07-18 Miguel de Icaza <miguel@ximian.com>
6474 * assembly.c: Implement asssembly loading. This loads an image
6475 and loads all the referenced assemblies. Come to think of it, we
6476 could always do lazy loading of the assemblies.
6478 * image.c (mono_image_open): Keep loaded images in a hashtable.
6480 * image.h (MonoImage): Add reference count.
6482 2001-07-17 Miguel de Icaza <miguel@ximian.com>
6484 * assembly.c (mono_assembly_open): Keep track of the file name in
6485 case the assembly has no ASSEMBLY table.
6487 * metadata.h: Fixed Paolo's quick hack. Put the documnentation
6490 Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
6492 * metadata.c, metadata.h: decode local vars in method header
6493 parse function. Change callers accordingly.
6495 Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
6497 * metadata.h, cil-coff.h: protect against multiple inclusion.
6498 Added some new structures to hold information decoded from metadata:
6499 MonoType, MonoParam, MonoArray, MonoMethod, MonoMethodSignature
6500 and relevant decoding/free functions.
6501 * metadata.c: implement decoding functions. Add warning for out of bounds
6502 index in mono_metadata_locate(). Implement mono_get_method () to retreive
6503 all the info about a method signature and invocation. Remove check on
6504 uninitialized local var in parse_mh() and fix memory leak.
6506 2001-07-12 Miguel de Icaza <miguel@ximian.com>
6508 * metadata.h: More macros.
6510 * tokentype.h: New file.
6512 Fri Jul 6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
6514 * assembly.c: added a consistency check and initialize
6515 some structures with g_new0().
6516 * metadata.c: fixed a couple more bugs in table size computation
6517 and add other checks for out-of bound access to metadata.
6519 Thu Jul 5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
6521 * metatada.c: fix bugs computing table sizes. Spew a
6522 warning when index in string heap is out of bounds.
6524 2001-07-04 Miguel de Icaza <miguel@ximian.com>
6526 * metadata.h: Add a couple of macros to manipulate tokens.
6528 Tue Jul 3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
6530 * assembly.c: g_free(ii->cli_sections) (and avoid double free of
6531 cli_section_tables).
6533 2001-07-01 Miguel de Icaza <miguel@ximian.com>
6535 * metadata.c (mono_metadata_user_string): New function, provides
6536 access to the UserString heap.
6538 2001-06-27 Miguel de Icaza <miguel@ximian.com>
6540 * metadata.c: Add inline documentation.
6542 2001-06-26 Miguel de Icaza <miguel@ximian.com>
6544 * propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
6547 2001-06-22 Miguel de Icaza <miguel@ximian.com>
6549 * typeattr.h: New file, TypeAttribute flags.
6551 2001-06-21 Miguel de Icaza <miguel@ximian.com>
6553 * mono/metadata/assembly.c (mono_assembly_ensure_section_idx,
6554 mono_assembly_ensure_section): Section loading code.
6555 (load_section_tables): Load the sections.
6557 * mono/metadata/metadata.c (mono_metadata_locate_token,
6558 mono_metadata_locate): Functions to locate the information
6559 definition given a token or a table and an index.
6560 (mono_metadata_compute_table_bases): New.
6561 (compute_size): New function to compute the sizes of the various
6564 * mono/metadata/metadata.h: Finish listing the different index
6567 * mono/metadata/pedump.c: Improve to dump new information.
6569 2001-06-19 Miguel de Icaza <miguel@ximian.com>
6571 * mono/metadata/metadata.c: Entered all the tables matching
6574 * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2