1 2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3 * socket-io.c: fixed compilation for systems that define AF_INET6
4 and don't define SOL_IP/SOL_IPV6.
6 2003-08-21 Zoltan Varga <vargaz@freemail.hu>
8 * object.c (mono_object_isinst): Fix casts to TransparentProxy in
9 the interpreter. Patch by Bernie Solomon (bernard@ugsolutions.com).
11 * rawbuffer.c rawbuffer.h: Make this module thread safe.
13 * domain.c: Make this module thread safe.
15 * domain.c (mono_init): Call new initialization function.
17 * icall.c (ves_icall_System_Array_SetValueImpl): Check types for
18 reference types too. Fixes #38812.
20 * image.c (mono_image_init): Fixed warnings.
22 * class.c (mono_class_from_typeref): Handle assembly load failure
25 * appdomain.c (add_assemblies_to_domain): Handle the case when
26 the references of an assembly are not yet loaded.
28 * metadata.c image.c assembly.c: Moved initialization of global
29 variables to a separate function called at startup since lazy
30 initialization of these variables is not thread safe.
32 * image.c assembly.c: Made this module thread safe by adding locks in
33 the appropriate places.
35 * domain.c (mono_init): Call the new initialization functions of the
38 2003-08-20 Lluis Sanchez Gual <lluis@ximian.com>
40 * marshal.c: mono_delegate_begin_invoke(): If the target is a proxy,
41 make a direct call. It is proxy's work to make the call asynchronous.
42 mono_delegate_end_invoke(): If the targe is a proxy, just collect
44 * object.cs: mono_method_call_message_new(): read AsyncResult and
45 state object from parameters list, if this info is requested.
46 * object.h: Added fields to store remote call output values in
47 MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.
49 Wed Aug 20 12:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
51 * object.h: add needed fields to MonoThread.
52 * threads.c, threads.h: allow registering a function to cleanup data
53 allocated per thread by the JIT.
55 Tue Aug 19 18:22:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
57 * loader.h: portability fix by Bernie Solomon
58 * <bernard@ugsolutions.com>.
60 2003-08-16 Zoltan Varga <vargaz@freemail.hu>
62 * reflection.h reflection.c (mono_param_get_objects): Changed this to
63 return a MonoArray. This simplifies the code and also ensures that
64 the cache allways contains an object reference as a value.
66 * icall.c (ves_icall_get_parameter_info): Simplified using the new
69 2003-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
71 * socket-io.c: patch by Bernie Solomon <bernard@ugsolutions.com> that
72 fixes a problem with byte ordering when getting the address family for
75 2003-08-15 Zoltan Varga <vargaz@freemail.hu>
77 * .cvsignore: Added monosn.
79 * reflection.h reflection.c loader.c: Added support for parameter
80 marshalling to dynamically created types. Fixes #47295.
82 Fri Aug 15 11:42:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
84 * rand.c: remove useless warnings.
86 Wed Aug 13 15:49:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
88 * class.c: implemented ldtoken for methods and fieldrefs.
90 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
92 * threadpool.c: when mono_async_invoke was called, no one took care of
93 monitoring the queue. So if the method invoked took some time and we
94 got new async invoke requests after 500 ms (the thread created waited
95 that long in WaitForSingleObject), the new async invoke was not called
96 until the previous one finished.
98 This is fixed now. Thanks to Totte for helping with it.
100 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
102 * threadpool.c: set threadpool_thread to TRUE. Patch by totte.
104 2003-08-11 Martin Baulig <martin@ximian.com>
106 * mono-debug-debugger.c (mono_debugger_lookup_type): New function.
108 2003-08-06 Martin Baulig <martin@ximian.com>
110 * mono-debug-debugger.c: Added support for static fields,
111 properties and methods.
113 2003-08-06 Martin Baulig <martin@ximian.com>
115 * mono-debug-debugger.c: Don't store the MonoString's vtable to
116 make this work for applications with multiple application domains.
118 2003-08-04 Martin Baulig <martin@ximian.com>
120 * mono-debug-debugger.c: Completely reworked the type support; the
121 most important thing is that we're now just using one single
122 `MonoType' instance per type.
124 Sat Aug 2 13:05:27 BST 2003 Malte Hildingson <malte@amy.udd.htu.se>
126 * mono-endian.h, mono-endian.c, icall.c: Added icall
127 ves_icall_System_Double_AssertEndianity to assert double word endianity
128 on ARM (FPA). The icall uses a macro defined in mono-endian.h.
130 Fri Aug 1 16:51:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
132 * class.c, class.h, reflection.c, metadata.c, icall.c: more generics
133 support, icalls and fixes.
135 2003-07-31 Miguel de Icaza <miguel@ximian.com>
137 * unicode.c (ves_icall_System_Char_IsPunctuation): The set of
138 classes that are a punctuation character in .NET is not the same a
141 Tue Jul 29 18:07:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
143 * socket-io.c: ipv6 portability fixes from Felix Ortga (guile@lared.es).
145 2003-07-29 Miguel de Icaza <miguel@ximian.com>
147 * icall.c: Add new MemCopy internalcall.
148 (ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
149 Simplified code; It is not necessary to handle all the cases here,
150 as the C# code takes care of it. Only handle the case of the name
151 resource embedded into the assembly.
153 Changed signature to return the data pointer and the size of the
156 2003-07-26 Miguel de Icaza <miguel@ximian.com>
158 * reflection.c (mono_image_get_method_info): Allow for 0x40 to be
159 encoded. (Partition II.22.1.7: PInvokeAttribute:SupportsLastErr).
161 2003-07-29 Lluis Sanchez Gual <lluis@ximian.com>
163 * socket-io.c: ignore EINTR error in select.
165 Tue Jul 29 15:25:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
167 * class.h, class.c: removed unused subclasses field in MonoClass.
169 2003-07-29 Lluis Sanchez Gual <lluis@ximian.com>
171 * icall.c: improve fix of get_base_definition(). If the parent class
172 doesn't have the mehod, look at the parent of the parent.
173 * object.c: mono_message_init(): use the attribute PARAM_ATTRIBUTE_OUT
174 to check if a parameter is an in or out parameter
175 (PARAM_ATTRIBUTE_IN is not set by default).
176 mono_method_return_message_restore(): Use mono_class_value_size to
177 get the size of a value type. mono_type_stack_size (parameterType)
178 does not return the correct value if parameterType is byRef.
179 mono_load_remote_field(), mono_load_remote_field_new(),
180 mono_store_remote_field(), mono_store_remote_field_new():
181 raise exception if the remote call returns an exception.
183 2003-07-28 Martin Baulig <martin@ximian.com>
185 * mono-debug-debugger.c (mono_debugger_runtime_invoke): New
186 method. This is a wrapper around mono_runtime_invoke() which
187 boxes the instance object if neccessary.
189 Fri Jul 25 19:14:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
191 * class.c, class.h, image.c, image.h, loader.c, metadata.c,
192 metadata.h, row-indexes.h, verify.c: first cut of generics support.
194 Thu Jul 24 11:34:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
196 * icall.c: disable mcs bug workaround.
198 2003-07-21 Miguel de Icaza <miguel@ximian.com>
200 * object.c (mono_runtime_class_init): Take the metadata_section
201 mutex before obtaining the domain mutex.
203 * appdomain.h: Added definition of metadata_section mutex here.
205 * object.c: define metadata_mutex here.
207 2003-07-24 Ravi Pratap <ravi@ximian.com>
209 * icall.c: Remove the FIXED_MCS_45127 workarounds - this has been
212 2003-07-24 Lluis Sanchez Gual <lluis@ximian.com>
214 * reflection.c: Fix bug #46669
216 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
221 * object.h: fill in the type name for TypeLoadException.
223 2003-07-23 Ravi Pratap <ravi@ximian.com>
225 * class.c: Fixes from Paolo in response to bug #45415 (Subclass
226 relationship between TypeBuilders while compiling corlib) and bug
227 45993 (Array types returned from the runtime while compiling
228 corlib were from the loaded corlib).
230 2003-07-22 Martin Baulig <martin@ximian.com>
232 * mono-debug-debugger.c: Reworked the type support a bit more;
233 distinguish between types and classes.
235 Tue Jul 22 15:48:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
237 * icall.c: add IsArrayImpl icall.
239 2003-07-22 Zoltan Varga <vargaz@freemail.hu>
241 * class.c (mono_class_layout_fields): Fix gc aware auto layout by
242 initializing real_size only once. Also fix bug #46602.
244 2003-07-21 Jerome Laban <jlaban@wanadoo.fr>
246 * object.c: Renamed mono_metadata_section to metadata_section.
248 2003-07-21 Lluis Sanchez Gual <lluis@ximian.com>
250 * icall.c: in MS.NET ves_icall_Type_GetInterfaces returns an
251 empty array if the type is an array. Fixed.
252 ves_icall_MonoMethod_get_base_definition: if the base method
253 is abstract, get the MethodInfo from the list of methods of
255 * reflection.c: ParameterInfo.PositionImpl should be zero-based
256 and it was 1-based. Fixed in mono_param_get_objects.
258 2003-07-20 Martin Baulig <martin@ximian.com>
260 * mono-debug.h: Set version number to 31.
261 (mono_debug_init): Added `MonoDomain *' argument.
263 * mono-debug-debugger.c: Reworked the type support; explicitly
264 tell the debugger about builtin types; pass the `klass' address to
267 2003-07-20 Jackson Harper <jackson@latitudegeo.com>
269 * image.c: Allow new metadata tables to be loaded without a
270 warning. Also update the warning message to give the new constant value.
272 Fri Jul 18 13:12:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
274 * class.c, class.h, debug-helpers.c, icall.c, image.c, marshal.c,
275 metadata.c, metadata.h, mono-debug-debugger.c, object.c, reflection.c:
276 array type representation changes.
278 Fri Jul 18 11:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
280 * icall.c, appdomain.h, appdomain.c: support full runtime shutdown
281 on Environment.Exit () call.
283 Thu Jul 17 17:21:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
285 * icall.c, reflection.h, reflection.c, verify.c: cleanups,
286 requires a matching corlib.
288 2003-07-17 Lluis Sanchez Gual <lluis@ximian.com>
290 * Changelog: My editor decided to add a CR to each line. Sorry about that.
291 Committed again without the CRs.
293 2003-07-17 Lluis Sanchez Gual <lluis@ximian.com>
295 * socket-io.c: Get system_assembly using mono_image_loaded(), instead
296 getting it from the "this" socket instance. Did not work
297 if the socket is a subclass of Socket.
298 Also fixed bug #35371.
300 Thu Jul 17 13:39:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
302 * metadata.c: fixed size for TypedByRef.
303 * loader.c: when searching for a method, consider the vararg amrker.
304 * unicode.c, decimal.c: constify some arrays.
306 2003-07-15 Dick Porter <dick@ximian.com>
308 * socket-io.c: Fixed compilation for gcc < 3.2.
310 Fixed compilation for machines that don't have AF_INET6 (thanks to
311 Bernie Solomon <bernard@ugsolutions.com> for that part.)
313 Fixed compile warnings.
315 Fixed formatting and line endings.
317 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
320 * socket-io.c: Added IPv6 support.
322 2003-07-13 Zoltan Varga <vargaz@freemail.hu>
324 * class.c (mono_class_is_assignable_from): New function to implement
325 the is_assignable_from logic. Used by mono_object_isinst,
326 Type::IsAssignableFrom () and the interpreter.
328 * class.c (mono_class_is_subclass_of): Make all classes a subclass of
329 Object, even interfaces.
331 * object.c (mono_object_isinst): Implement in terms of
334 * icall.c (ves_icall_type_is_assignable_from): New icall.
336 2003-07-11 Zoltan Varga <vargaz@freemail.hu>
338 * domain.c (foreach_domain): fix compiler warning.
340 2003-07-11 Dietmar Maurer <dietmar@ximian.com>
342 * image.c (load_metadata_ptrs): use g_strndup because strndup is
343 not available on all plattforms
345 2003-07-10 Zoltan Varga <vargaz@freemail.hu>
347 * image.h image.c: Store the metadata version string in MonoImage.
348 * icall.c: New icall to retrieve the image version.
349 * reflection.c (create_dynamic_image): Fill in the image version field
350 * reflection.c (build_compressed_metadata): Use the image version
351 from the image structure.
353 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
355 * appdomain.c: modified comment.
356 * gc.c: finalizer_thread can call finalizers even when finished == TRUE.
357 That will be its last iteration when mono_gc_cleanup is called from
358 mono_runtime_cleanup and before the domain is unloaded.
362 2003-07-04 Dietmar Maurer <dietmar@ximian.com>
364 * marshal.c (mono_marshal_get_native_wrapper): fixes for [out]
367 Thu Jul 3 17:22:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
369 * object.c, file-io.c, metadata.c, mono-endian.h, reflection.c,
370 rawbuffer.c: more 64 bit and picky (or old) compiler fixes from
371 Bernie Solomon <bernard@ugsolutions.com>.
373 Thu Jul 3 17:17:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
375 * object.c, object.h: provide mono_object_new_fast() for faster
376 allocation in some special cases.
378 Wed Jul 2 13:21:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
380 * object.h, reflection.h, verify.c: fixes for some 64bit issues,
381 mostly from a patch by Laramie Leavitt <lar@leavitt.us>.
383 Tue Jul 1 21:24:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
385 * threadpool.c: fix leaks.
387 2003-07-01 Dick Porter <dick@ximian.com>
389 * threadpool.c (mono_async_invoke): Use mono_g_hash_table_remove when
390 using MonoGHashTables. Fixes threadpool bug posted to list.
392 Tue Jul 1 11:45:40 CEST 2003 Paolo Molaro <lupus@ximian.com>
394 * image.h, image.c: added support to load an assembly from a byte array.
395 * Makefile.am, assembly.c, make-bundle.pl, sample-bundle: added
396 assembly bundle support.
398 2003-06-27 Dietmar Maurer <dietmar@ximian.com>
400 * threadpool.c (mono_thread_pool_add): keep a reference to the
401 AsyncResult to prevent GC
403 Thu Jun 26 12:13:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
407 2003-06-25 Dick Porter <dick@ximian.com>
409 * threadpool.c (mono_thread_pool_add): Don't set up a finaliser
410 for the async object, the WaitHandle object will close the handle.
413 Wed Jun 25 18:12:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
415 * class.c: in mono_array_class_get (), lookup from the hash with the
416 same type we insert: this works around a bug in
417 mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
418 lluis. The real fix will have to wait for after the release.
420 Wed Jun 25 13:14:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
422 * icall.c: fix memory leak when getting type members.
424 Mon Jun 23 16:12:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
426 * reflection.c: added more pubtoken special cases.
428 Mon Jun 23 15:29:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
430 * class.c: handle field offset correctly when class size
431 is set (bug# 45182, partially from a patch by jlaban@wanadoo.Fr (Jerome Laban)).
433 2003-06-20 Martin Baulig <martin@ximian.com>
435 * mono-debug-debugger.h (MonoDebuggerSymbolFile): Added `MonoImage
438 2003-06-20 Martin Baulig <martin@ximian.com>
440 * image.h, mono-debug-debugger.h: Fixed compiler warnings.
442 2003-06-20 Martin Baulig <martin@ximian.com>
444 * mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed. We
445 just distinguish between variables in registers and variables at
446 an offset relative to a register.
448 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
450 * icall.c: #ifdef out latest changes until mcs is fixed.
452 Thu Jun 19 11:03:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
454 * icall.c: return members in metadata order.
456 Wed Jun 18 15:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
458 * icall.c: avoid infinite loop in GetTimeZoneData.
460 Wed Jun 18 12:47:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
462 * icall.c: added Marshal.Prelink/All icalls.
464 Wed Jun 18 12:17:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
466 * object.c, object.h: fix warnings and do some overflow checking
467 when creating arrays.
469 2003-06-17 Dick Porter <dick@ximian.com>
472 * file-io.c: File attributes need to be tweaked slightly when
473 passed from the managed to the w32 world.
475 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
476 * profiler.h profiler-private.h profiler.c: Rework last patch
477 based on suggestion by Paolo.
479 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
481 * profiler.h profiler-private.h profiler.c: Added infrastructure for
482 instruction level coverage data collection.
483 * profiler.h profiler.c (: Added new callback function which can be
484 used by the profiler to limit which functions should have coverage
486 * profiler.c (mono_profiler_load): Call g_module_build_path to
487 generate the file name of the profiler library.
489 Mon Jun 16 18:11:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
491 * profiler.c, profiler.h, profiler-private.h: added basic block
492 coverage profiling API.
494 2003-06-15 Zoltan Varga <vargaz@freemail.hu>
496 * reflection.c (mono_reflection_create_runtime_class): Add support
497 for events in dynamically generated code.
499 * gc.c: Start GCHandle indexes from 1, since 0 means the handle is
502 Sat Jun 14 19:01:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
504 * icall.c: when getting timezone info, return reasonable values if we
505 can't get the actual data.
507 2003-06-14 Dick Porter <dick@ximian.com>
509 * threads.c (start_wrapper): Remove the reference to the thread
510 object in the TLS data, so the thread object can be finalized.
511 This won't be reached if the thread threw an uncaught exception,
512 so those thread handles will stay referenced :-( (This is due to
513 missing support for scanning thread-specific data in the Boehm GC
514 - the io-layer keeps a GC-visible hash of pointers to TLS data.)
516 Sat Jun 14 13:16:17 CEST 2003 Paolo Molaro <lupus@ximian.com>
518 * reflection.c: ensure streams and tables are first allocated with
519 ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
521 Sat Jun 14 13:13:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
523 * icall.c: fixed GetElementType for byrefs (bug# 44792).
525 2003-06-13 Zoltan Varga <vargaz@freemail.hu>
527 * reflection.c (mono_reflection_create_runtime_class): Add support for
528 properties to dynamically created classes.
529 * reflection.c: Fix a few places where non-MonoObjects were inserted
530 into the tokens hashtable.
532 Fri Jun 13 19:10:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
534 * object.c: some support to handle out of memory exceptions.
536 2003-06-12 Dietmar Maurer <dietmar@ximian.com>
538 * marshal.c (mono_marshal_get_native_wrapper): support reference
541 Wed Jun 11 18:32:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
543 * object.h, object.c: more portability stuff from Bernie Solomon.
544 Unexport mono_object_allocate(). Added mono_object_unbox ().
545 Set exitcode when an unhandled exception is thrown.
547 2003-06-11 Dietmar Maurer <dietmar@ximian.com>
549 * marshal.c (mono_marshal_get_native_wrapper): use custom
550 marshaler for return types.
552 2003-06-10 Dick Porter <dick@ximian.com>
554 * socket-io.c: Don't assume that one of struct ip_mreqn or struct
557 Tue Jun 10 17:35:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
559 * debug-mono-symfile.c, marshal.c, metadata.c, monitor.c,
560 mono-debug-debugger.c, mono-debug.c, process.c: portability fixes
561 by Bernie Solomon <bernard@ugsolutions.com>.
563 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
565 * gc.c (mono_gc_init): Avoid error message on shutdown when
566 GC_DONT_GC=1 is used.
568 * icall.c (ves_icall_System_Reflection_Module_GetGuidInternal):
569 New icall to return the GUID of a module.
571 Mon Jun 9 19:33:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
573 * class.c: ensure instance size always includes the parent's size
574 even whem class size is set explicitly (fixes bug#44294).
576 Thu Jun 5 19:51:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
578 * profiler.h, profiler.c: made the simple profiler thread-safe,
579 get more accurate timing info. Allow the loading of an
580 externally-developed profiler module.
582 2003-06-05 Dietmar Maurer <dietmar@ximian.com>
584 * marshal.c (mono_marshal_get_native_wrapper): improved
585 class/byref arguments.
586 (mono_marshal_get_native_wrapper): better string marshaling support.
588 Wed Jun 4 18:01:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
590 * class.c: ensure .pack and .size are handled correctly and
591 simplified layout of static fields.
593 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
596 (ves_icall_System_AppDomainSetup_InitAppDomainSetup): fix for bug 42934
598 * loader.c (mono_lookup_pinvoke_call): look for modules in the
599 current directory (fix bug 44008)
601 2003-06-03 Dietmar Maurer <dietmar@ximian.com>
603 * marshal.c (mono_marshal_get_native_wrapper): started support for
605 (mono_delegate_to_ftnptr): consider marshalling specifications
607 Tue Jun 3 11:17:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
609 * reflection.c, reflection.h: emit custom marshal info.
611 2003-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
613 * object.c: free the GError.
614 * icall.c: added CloseEvent_internal.
616 (ves_icall_System_Threading_Events_CloseEvent_internal): new internal
619 2003-06-01 Zoltan Varga <vargaz@freemail.hu>
621 * loader.c (mono_method_get_signature): Add support for dynamic
624 Sat May 31 15:22:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
626 * reflection.c: fixed bug #43905.
628 Fri May 30 12:56:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
630 * class.c, domain.c, icall.c, metadata.h, object.h: support for
631 handling TypedReference and ArgIterator.
632 * loader.c, loader.h: added function to get signature at call site.
634 Thu May 29 11:34:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
636 * metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
637 data readonly. Buglets and warning fixes. Some MethodSpec support.
639 Tue May 27 16:34:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
641 * class.h, class.c, object.c: remove relative numbering support.
643 2003-05-26 Miguel de Icaza <miguel@ximian.com>
645 * marshal.c (mono_marshal_get_native_wrapper): For now, do not
646 free the string, until we get a chance to fix Gtk#
648 2003-05-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
650 * marshal.c: revert last patch.
652 Mon May 26 20:21:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
654 * icall.c: updates for new mono_class_vtable() not calling
655 the type constructor anymore.
657 Mon May 26 12:10:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
659 * object.h, object.c: separate vtable creation from type
660 initialization. Make running the .cctor thread safe.
662 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
664 * marshal.c (mono_marshal_get_native_wrapper): free string return values.
666 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
668 * loader.c (mono_get_method): consider calling convention
670 2003-05-21 Zoltan Varga <vargaz@freemail.hu>
672 * icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
673 to return the invisible global type for a module.
675 * reflection.c (mono_image_build_metadata): Emit global fields too.
677 2003-05-20 Peter Williams <peterw@ximian.com>
679 * loader.c (mono_lookup_internal_call): Add a few newlines.
681 2003-05-20 Zoltan Varga <vargaz@freemail.hu>
683 * reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
686 * appdomain.c (set_domain_search_path): Recalculate search path when
687 AppDomainSetup.PrivateBinPath changes.
689 * object.c (mono_class_compute_gc_descriptor): It turns out some
690 parts of the class libs (like System.Thread) holds pointers to
691 GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
692 to treat native int a pointer type here.
694 Tue May 20 17:18:16 CEST 2003 Paolo Molaro <lupus@ximian.com>
696 * appdomain.h, domain.c: add hashtable for jump target resolution.
698 2003-05-19 Zoltan Varga <vargaz@freemail.hu>
700 * reflection.h reflection.c icall.c: Added new icalls
701 GetManifestResourceInfoInternal, GetModulesInternal and support
704 2003-05-16 Dick Porter <dick@ximian.com>
708 * file-io.c: Implement System.IO.MonoIO::GetTempPath
710 2003-05-14 Lluis Sanchez Gual <lluis@ideary.com>
712 * object.c: mono_store_remote_field: little fix to previous patch.
714 Wed May 14 18:10:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
716 * class.c: add constructors to array classes.
717 * icall.c: special case array construction for InternalInvoke (),
719 2003-05-14 Zoltan Varga <vargaz@freemail.hu>
721 * class.h class.c reflection.c object.c: Added support for field
722 defaults in dynamically generated classes.
724 Wed May 14 13:35:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
726 * reflection.c: properly encode charset for ddlimport.
728 Wed May 14 11:14:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
730 * threads.c: allow compiling without GC.
732 Tue May 13 16:41:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
734 * appdomain.h, object.c, object.h, threads.c, threads.h: added
735 handling of thread static data.
737 Tue May 13 16:36:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
739 * reflection.h, reflection.c: added mono_custom_attrs_free ().
741 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
743 * class.c (mono_array_class_get): always set the serializable flags
744 (mono_array_class_get): always set the SEALED attribute for array types
746 2003-05-12 Dietmar Maurer <dietmar@ximian.com>
748 * loader.c (mono_lookup_pinvoke_call): consider Ansi/Unicode
749 attributes (fix for bug 42021).
751 2003-05-12 Dick Porter <dick@ximian.com>
753 * gc.c: Don't run finalizers when the finalizer thread is
754 finishing up, because the default domain has already been
757 2003-05-11 Miguel de Icaza <miguel@ximian.com>
759 * string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
760 value is null, we should throw an exception. This is slightly
761 different than the other conventions used for the constructor.
763 2003-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
765 * socket-io.c: fixed windows build.
767 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
769 * socket-io.c: patch by Jerome Laban that fixes bug #42393.
771 2003-05-10 Zoltan Varga <vargaz@freemail.hu>
773 * object.c (mono_string_new_wrapper): Compatibility fix for MS
776 2003-05-09 Zoltan Varga <vargaz@freemail.hu>
778 * class.c (mono_class_layout_fields): Add experimental GC aware
779 auto layout facility. Requires class library changes to work correctly.
781 (mono_class_setup_vtable): Avoid overriding explicit interface
782 method implementations. Fixes iface3.exe test.
784 * object.c (mono_class_compute_gc_descriptor): Type I can't hold an
786 (mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
787 (mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
789 * metadata.h: Add new type classification macro which determines
790 whenever the type holds an object reference.
792 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
794 * marshal.c (mono_marshal_get_native_wrapper): cleanups
796 2003-05-07 Zoltan Varga <vargaz@freemail.hu>
798 * gc.c (finalizer_thread): Work around a GC bug.
800 2003-05-07 Dietmar Maurer <dietmar@ximian.com>
802 * marshal.c (emit_struct_conv): allow unions
804 * class.c (class_compute_field_layout): added patches from Jerome Laban <jlaban@wanadoo.fr>
806 2003-05-06 Dietmar Maurer <dietmar@ximian.com>
808 * marshal.c (mono_marshal_get_native_wrapper): free strings after pinvoke
810 2003-05-06 Martin Baulig <martin@ximian.com>
812 * mono-debug-debugger.h: #include <mono/io-layer/io-layer.h>.
814 2003-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
817 (Select_internal): allow NULLs, don't create arrays if not needed.
818 Coupled with Socket.cs changes.
821 (mono_thread_pool_add): use GC_MALLOC to allocate the ASyncCall and
822 register a finalizer for it that will close the semaphore handle. This
823 fixes the leak and make Lupus' test run with > 4080 loops.
825 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
827 * marshal.c (mono_marshal_get_struct_to_ptr): added fixes from
828 Jerome Laban (bug #42287)
830 2003-05-02 Martin Baulig <martin@ximian.com>
832 * debug-mono-symfile.h
833 (MonoSymbolFile): Moved declaration into mono-debug.h.
834 (MonoDebugMethodJitInfo): Likewise.
835 (mono_debug_open_mono_symbol_file): Take the MonoDebugHandle as
837 (_mono_debug_address_from_il_offset): Take a
838 MonoDebugMethodJitInfo instead of a MonoDebugMethodInfo.
841 (MonoDebugDomainData): New struct.
842 (mono_debug_get_domain_data): New function.
843 (mono_debug_add_method): Take an additional `MonoDomain *'
845 (mono_debug_source_location_from_address): Likewise.
846 (mono_debug_il_offset_from_address): Likewise.
847 (mono_debug_address_from_il_offset): Likewise.
849 Thu May 1 19:40:37 CEST 2003 Paolo Molaro <lupus@ximian.com>
851 * reflection.c: one more check for null type in custom attrs.
853 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
855 * reflection.c: avoid warning (comparison is always false due to limited
858 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
860 * icall.c: throw an exception in Type.GetField if the argument 'name'
863 Wed Apr 30 10:53:09 CEST 2003 Paolo Molaro <lupus@ximian.com>
865 * reflection.c: fixed handling of enums in named arguments to custom
866 attributes (bug #42123).
868 Tue Apr 29 19:15:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
870 * reflection.c: use the right array element type and handle
871 a null for a Type argument, too.
873 Tue Apr 29 15:46:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
875 * reflection.c: handle arrays as arguments to custom attributes.
877 Tue Apr 29 11:43:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
879 * reflection.c: handle a string value in a custom attr
880 ctor that takes an object.
882 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
884 * marshal.c (mono_mb_emit_restore_result): support MONO_TYPE_PTR
887 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
889 * icall.c (ves_icall_Type_GetNestedType): Fixed warnings.
891 2003-04-27 Martin Baulig <martin@ximian.com>
893 * mono-debug-debugger.h (MonoDebuggerEvent): Renamed
894 MONO_DEBUGGER_EVENT_BREAKPOINT_TRAMPOLINE to
895 MONO_DEBUGGER_EVENT_BREAKPOINT.
896 (mono_breakpoint_trampoline_code): Removed.
897 (mono_debugger_event_handler): The last argument is now a
899 (mono_debugger_insert_breakpoint_full): Removed the
900 `use_trampoline' argument.
901 (mono_debugger_method_has_breakpoint): Likewise.
902 (mono_debugger_trampoline_breakpoint_callback): Renamed to
903 mono_debugger_breakpoint_callback(); take the method and
904 breakpoint number as arguments.
906 Sat Apr 26 19:25:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
908 * metadata.c: fix off by one when loading parameters attributes.
910 2003-04-24 Martin Baulig <martin@ximian.com>
912 * mono-debug-debugger.c (mono_debugger_io_layer): Put this back.
914 2003-04-24 Martin Baulig <martin@ximian.com>
916 * mono-debug-debugger.c: Moved all code which interacts with the
919 * debug-mono-symfile.c: This code now just deals with the symbol
920 file itself, the debugger code is now in mono-debug-debugger.c.
922 2003-04-23 Martin Baulig <martin@ximian.com>
924 * mono-debug.c (mono_debug_source_location_from_il_offset):
925 New method; like mono_debug_source_location_from_address(), but
926 takes an IL offset instead of a machine address.
928 2003-04-23 Martin Baulig <martin@ximian.com>
930 * debug-mono-symfile.h (MonoDebugLineNumberEntry): Removed the
931 `line' field; this is now computed by the debugger.
933 2003-04-23 Martin Baulig <martin@ximian.com>
935 * mono-debug.[ch]: New files. This is the new debugging interface.
937 * mono-debug-debugger.[ch]: New files. Moved all code which
938 interacts with the Mono Debugger here.
940 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
942 * domain.c (mono_init): initialize mono_defaults.monitor_class
944 2003-04-21 Miguel de Icaza <miguel@ximian.com>
946 * reflection.c (method_encode_code): Add a spicy exception to help
947 future compiler authors.
949 2003-04-21 Martin Baulig <martin@ximian.com>
952 (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
953 Make this work with relative pathnames; g_filename_to_uri() needs
954 an absolute filename.
956 2003-04-18 Zoltan Varga <vargaz@freemail.hu>
958 * icall.c: Track name changes in Object and ValueType.
960 2003-04-18 Dietmar Maurer <dietmar@ximian.com>
962 * metadata.c (mono_type_stack_size): size should be a multiple of
965 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
968 (internal_domain_finalize): moved into mono_domain_finalize. No need
969 to create another thread because the finalizers will be run in the
972 (ves_icall_System_GC_WaitForPendingFinalizers): implemented.
973 (finalizer_notify): if shutting down, wait 2 seconds for the finalizers
974 to be run (MS does this too).
976 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
978 * object.c (mono_class_compute_gc_descriptor): Update comment.
980 * loader.h marshal.h marshal.c: Added synchronized method wrappers.
982 * image.h: Add synchronized wrapper cache.
984 * image.c (do_mono_image_open): Initialize cache.
986 * reflection.c (create_dynamic_mono_image): Initialize cache.
988 2003-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
990 * icall.c: patch by Jerome Laban <jlaban@wanadoo.fr> that fixes
991 ves_icall_System_Buffer_ByteLengthInternal.
993 Tue Apr 15 13:56:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
995 * reflection.c: setup klass->nested_in earlier. Allow
996 a dash in the assembly name.
998 2003-04-15 Dietmar Maurer <dietmar@ximian.com>
1000 * metadata.c (mono_type_to_unmanaged): dont access
1001 type->data.klass for MONO_TYPE_OBJECT
1002 (mono_type_to_unmanaged): consider System.Delegate class
1004 Tue Apr 15 11:16:05 CEST 2003 Paolo Molaro <lupus@ximian.com>
1006 * class.c: just setup supertypes in the proper place instead of
1007 initializing the full element class for arrays.
1009 Tue Apr 15 11:03:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
1011 * class.c: ensure the element class of arrays is initialized.
1012 Setup the supertype info for array classes, too.
1014 2003-04-14 Miguel de Icaza <miguel@ximian.com>
1016 * icall.c (ves_icall_Type_GetNestedType): Add new internal call.
1018 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1020 * Makefile.am: re-added -m option when running cygpath. This way,
1021 MONO_ASSEMBLIES and MONO_CFG_DIR will contain '/' as directory
1023 * mono-config.c: same codepath for locating mono config file for WIN32
1025 * assembly.c: if mono_assembly_setrootdir is called, don't override
1028 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1030 * Makefile.am: patch by Urs Muff <umuff@quark.com> that fixes
1031 MONO_ASSEMBLIES variable.
1033 Fri Apr 11 12:44:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
1035 * icall.c: added Assembly::GetNamespaces() icall.
1037 2003-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1039 * reflection.c: fix from Jaak <jaak@zd.com.pl>.
1041 2003-04-10 Lluis Sanchez Gual <lluis@ideary.com>
1043 * appdomain.c,appdomain.h,icall.c: Added internal method that returns the process guid
1044 * object.c: fixed bug in the construction of vtable for proxies
1046 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
1048 * object.c (mono_array_new): Mark mono_array_new as an icall.
1050 2003-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1052 * class.c: fixed test for public method when overriding interfaces.
1055 Wed Apr 9 15:19:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1057 * appdomain.h, domain.c: added mono_domain_foreach() to
1058 be able to access the currently loaded appdomains.
1059 * object.c: make string interning work across sppdomains.
1060 Mark some functions for use as icalls.
1062 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
1064 * class.c reflection.c: Fix memory leaks reported by ccmalloc.
1066 * reflection.h reflection.c: Allocate long living data using
1067 GC_MALLOC_ATOMIC so the collector does not need to scan it.
1069 * reflection.c: Double the allocation size in streams instead of
1070 increasing it, to prevent unneccesary copying on large assemblies.
1072 * reflection.c (mono_reflection_create_runtime_class): Avoid vtable
1073 creation if the assembly does not have the Run flag set.
1075 Tue Apr 8 11:19:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1077 * class.h: avoid the C++ keywords in header files (Jerome Laban
1078 spotted and fixed this).
1080 2003-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1083 (mono_unhandled_exception): fill in the arguments for the
1084 UnhandledException event. Only trigger that event for the default
1085 domain (as MS does).
1087 2003-04-04 Zoltan Varga <vargaz@freemail.hu>
1089 * object.c: Improve typed allocation stuff based on suggestions from
1090 Paolo. Also turn it on if the GC library supports it.
1092 2003-04-03 Zoltan Varga <vargaz@freemail.hu>
1094 * object.c object.h class.h: Added experimental typed allocation
1095 facility using the interfaces in gc_gcj.h.
1097 * os/gc_wrapper.h: Added new include files.
1099 2003-04-03 Martin Baulig <martin@ximian.com>
1101 All the following changes are conditional to `WITH_INCLUDED_LIBGC'
1102 which is not yet enabled by default.
1104 * gc.c (mono_gc_init): Set the gc_thread_vtable to our thread
1106 (mono_gc_lock, mono_gc_unlock): New static functions.
1108 * threads.c (mono_gc_stop_world, mono_gc_start_world): New public
1109 functions; stop/start the world for the garbage collector. This
1110 is using the windows API; we need to complete the SuspendThread()/
1111 ResumeThread() implementation in the io-layer to make this work on Unix.
1112 (mono_gc_push_all_stacks): New public function; tells the garbage
1113 collector about the stack pointers from all managed threads.
1115 2003-04-03 Martin Baulig <martin@ximian.com>
1117 * object.h (MonoThread): Added `gpointer stack_ptr'.
1119 * threads.c (start_wrapper): Save the stack pointer in `stack_ptr'.
1121 2003-04-03 Martin Baulig <martin@ximian.com>
1123 * Makefile.am: It's called `cygpath -w', not `cygpath -m'.
1125 2003-04-03 Zoltan Varga <vargaz@freemail.hu>
1127 * reflection.c (typebuilder_setup_fields): Initialize field.first and
1130 2003-04-02 Miguel de Icaza <miguel@ximian.com>
1132 * loader.c (mono_lookup_internal_call): Report the corlib that is
1135 2003-03-05 Aleksey Demakov <avd@openlinksw.com>
1137 * icall.c (ves_icall_type_GetTypeCode): fixed check for
1138 System.DBNull (it's class not valuetype).
1140 Wed Apr 2 18:37:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
1142 * reflection.c: set table_idx in MonoReflectionArrayMethod object even
1143 if the array method was already assigned a token (fixes bug#40646).
1145 2003-04-02 Zoltan Varga <vargaz@freemail.hu>
1147 * reflection.c (mono_reflection_get_type): Attempt type resolve even
1148 if no assembly is given.
1150 2003-04-01 Miguel de Icaza <miguel@ximian.com>
1152 * metadata.h: Added the new tables.
1154 * row-indexes.h: Added definitions for new tables.
1156 * metadata.c: Add schemas for new tables, and add support for
1157 computing the sizes of them.
1159 * class.c: Update for handling the new type cases.
1161 2003-04-01 Dietmar Maurer <dietmar@ximian.com>
1163 * metadata.h (MONO_TYPE_IS_VOID): new macro
1165 2003-03-31 Martin Baulig <martin@ximian.com>
1167 * threads.h (MonoThreadCallbacks): Added `thread_created'.
1169 * threads.c (mono_thread_new_init): Call `thread_created' in the
1170 mono_thread_callbacks.
1172 2003-03-31 Lluis Sanchez Gual <lluis@ideary.com>
1174 * loader.h: added marshalbyrefobject_class to mono_defaults
1175 * domain.c: added initialization of mono_defaults.marshalbyrefobject_class
1176 * icall.c: ves_icall_InternalExecute: fixed bug in field setter and in the
1177 generation of output parameters.
1178 ves_icall_Remoting_RealProxy_GetTransparentProxy: added support for interfaces.
1179 * marshal.c: mono_remoting_wrapper(): avoided call through proxy when the type is
1180 contextbound and the target object belongs to the context of the caller.
1181 * object.h: added context and unwrapped_server variables in MonoRealProxy.
1182 * object.c: Implemented support for interfaces and abstract classes
1183 in mono_class_proxy_vtable. Fixed several methods to avoid unneeded calls through
1184 proxy. Fixed problem when dealing with output parameters in mono_runtime_invoke_array.
1186 2003-03-30 Zoltan Varga <vargaz@freemail.hu>
1188 * class.h class.c (mono_class_is_subclass_of): New function.
1190 * icall.c (ves_icall_System_Array_FastCopy): Added optimized copy
1191 routines for most common case (calls from ArrayList::ToArray).
1193 * icall.c (ves_icall_System_Environment_Exit): Call profiler shutdown
1194 routine so programs which call Environment::Exit() can be profiled.
1196 * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
1197 Added MONO_ARCH_SAVE_REGS.
1199 * icall.c (ves_icall_type_is_subtype_of): Use new function.
1201 2003-03-29 Miguel de Icaza <miguel@ximian.com>
1203 * blob.h: Add a couple of new MonoType types definitions.
1205 * tabledefs.h: Add a couple of new call convs.
1207 2003-03-27 Zoltan Varga <vargaz@freemail.h>
1209 * reflection.h (MonoReflectionDynamicAssembly): track changes in
1210 the layout of the class.
1212 * reflection.c (alloc_table): double the size on overflow to avoid
1213 unnecessary copying.
1215 * reflection.h reflection.c: If AssemblyBuilderAccess is Run, then
1216 avoid filling out metadata tables and blobs. Also set mb->ilgen to
1217 null so it can be garbage collected.
1219 2003-03-27 Zoltan Varga <vargaz@freemail.hu>
1221 * reflection.c (mono_reflection_get_type): Return the resolved type
1222 only if it is in the assembly we searched.
1224 * reflection.c (ensure_runtime_vtable): Initialize method slots.
1226 * class.c (mono_class_setup_vtable): Set the slot of the overriding
1229 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1232 (set_domain_search_path): allow 'file://blah'. It's an invalid URI,
1233 the right one is 'file:///blah', but MS allows it.
1235 (mono_assembly_open): allow 'file://blah'
1237 Fixes bug #40306. Thanks to Mitko Iliev (imitko@openlinksw.co.uk).
1239 2003-03-26 Aleksey Demakov <avd@openlinksw.com>
1241 * socket-io.c: fixes bug #40310.
1243 2003-03-25 Zoltan Varga <vargaz@freemail.hu>
1245 * reflection.c (mono_reflection_parse_type): handle deeply nested
1248 * reflection.c (mono_image_create_token): Use unique token values
1249 since they will be put into a hash table.
1251 * class.c (mono_class_setup_vtable): If a method occurs in more than
1252 one place in the vtable, and it gets overriden, then change the
1253 other occurances too.
1255 * marshal.c (mono_marshal_get_managed_wrapper): Added support for
1256 object as return type.
1258 2003-03-22 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1260 * icall.c: Deleted "ToString" implementation for double and float
1261 because they are full implemented in managed code.
1263 Wed Mar 19 18:05:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1265 * reflection.c, reflection.h: implemented and exported functions
1266 to retrieve info about custom attributes.
1268 2003-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1270 * appdomain.c: moved Uri handling to assembly.c
1271 * assembly.c: use g_filename_from_uri (). This makes assembly.LoadFrom
1272 work when using a file Uri in *nix and windows.
1274 * icall.c: fixed Assembly.CodeBase to return a valid Uri. The same for
1275 GetReferencedAssemblies.
1277 2003-03-18 Dick Porter <dick@ximian.com>
1279 * icall.c: Rename a couple of internal calls
1281 * threads.c: Set the thread state to Stopped when a thread exits.
1284 2003-03-17 Zoltan Varga <vargaz@freemail.hu>
1286 * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
1289 * object.c (mono_class_vtable): fix warning.
1291 2003-03-17 Zoltan Varga <vargaz@freemail.hu>
1293 * icall.c (ves_icall_type_is_subtype_of): Avoid vtable creation.
1295 * reflection.c (mono_blob_entry_hash): Avoid reading uninitialized
1297 (method_encode_clauses): Create exception info structures in the right
1299 (mono_reflection_setup_internal_class): Initialize supertypes field.
1301 * class.c object.c: Handle interfaces which implement other interfaces
1304 * class.h class.c: Move the supertypes array initialization code into
1305 a separate function so it can be used for dynamic types too. Also call
1306 it earlier, in mono_class_init(), since it can be used before the
1307 type is initialized.
1309 2003-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1313 * icall.c: make MONO_ASSEMBLIES and MONO_CFG_DIR work on windows.
1318 * object.c: remove warnings.
1320 2003-03-13 Martin Baulig <martin@ximian.com>
1322 * debug-mono-symfile.h (MonoSymbolFileLexicalBlockEntry): New type.
1323 (MonoDebugLexicalBlockEntry): New types.
1325 * debug-mono-symfile.c
1326 (_mono_debug_address_from_il_offset): Moved here from ../jit/debug.c.
1328 2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1330 * process.c: ret can be any non-zero value accroding to MS doc.
1332 2003-03-07 Miguel de Icaza <miguel@ximian.com>
1334 * class.c (mono_marshal_load_type_info): Fix buglet: Noticed when
1335 fixing a warning for a miss-used prototype, would have cause
1336 random memory corruption.
1338 2003-03-07 Martin Baulig <martin@ximian.com>
1340 * marshal.c (mono_marshal_free_array): That "TESTFREE %p" was
1341 getting really annoying ....
1343 2003-03-07 Zoltan Varga <vargaz@freemail.hu>
1345 * reflection.c (fixup_method): added support for array methods.
1347 Tue Mar 4 18:03:27 CET 2003 Paolo Molaro <lupus@ximian.com>
1349 * socket-io.c: handle case when AF_INET6 and AF_IPX are not defined
1350 (pointed out by Michael Adams).
1352 2003-03-04 Dick Porter <dick@ximian.com>
1354 * icall.c: Temporarily reverted the Double and Single ToString()
1355 change, because it broke nunit.
1357 Tue Mar 4 12:40:58 CET 2003 Paolo Molaro <lupus@ximian.com>
1359 * object.h, threads.h: make include files compatible with C++
1360 (patch by Jerome Laban <jlaban@wanadoo.fr>).
1362 2003-03-04 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1364 * icall.c: Erased ToString helper functions for Double and Single.
1365 Now, that implementations ar all in managed code (Double and Single
1368 2003-03-03 Lluis Sanchez Gual <lluis@ideary.com>
1370 * appdomain.c: Added method for initializing the default context of
1371 a domain. Added internal call for getting the default context.
1372 * appdomain.h: Added context variable in MonoDomain struct.
1373 * domain.c: mono_domain_set also sets the default context of the domain
1374 * icall.c: Mapped internal method InternalGetDefaultContext.
1375 * object.c: mono_object_get_virtual_method returns always a remoting
1376 wrapper if the object is a transparent proxy.
1377 mono_runtime_invoke_array: when creating an object by calling the
1378 constructor, if the created object is a proxy, then the constructor should
1379 be called using the a remoting wrapper.
1381 2003-03-03 Dick Porter <dick@ximian.com>
1383 * socket-io.c (create_sockaddr_from_object): Rename sockaddr_un
1384 variable so it compiles on solaris. Problem spotted by
1385 Christopher Taylor <ct@cs.clemson.edu>
1387 2003-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1390 (get_info_from_assembly_name): don't leak value.
1393 (ves_icall_System_Reflection_Assembly_GetFilesInternal): initialize
1396 Sat Mar 1 15:32:56 CET 2003 Paolo Molaro <lupus@ximian.com>
1398 * assembly.c: export mono_image_load_references ().
1399 * class.c: handle function pointers. mono_class_from_name() now
1400 supports nested type names directly.
1402 2003-02-28 Zoltan Varga <vargaz@freemail.hu>
1404 * reflection.h reflection.c: Encode already created dynamic methods
1405 and fields correctly as a DEF instead of a REF.
1407 * reflection.c: Get rid of the force_ref argument to
1408 mono_image_typedef_or_ref since it was wrong in the first place.
1410 * string-icalls.c: add error checking to string constructors according
1413 * reflection.c: Emit types in the order their TypeBuilders were
1414 created. Previously, a new table index was assigned to each type before
1415 the tables were emitted. This was wrong because the signature blob
1416 might already refer to a type by its original table index.
1418 2003-02-27 Zoltan Varga <vargaz@freemail.hu>
1420 * metadata.c (mono_metadata_nesting_typedef): fix bug in previous
1423 2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1425 * Makefile.am: make assemblies dir have \ instead of / on windows.
1427 2003-02-27 Zoltan Varga <vargaz@freemail.hu>
1429 * metadata.c metadata.h (mono_metadata_nesting_typedef): changed to
1430 iterate over the NESTEDCLASS table using a linear search since the
1431 table is not guaranteed to be sorted by the secondary key.
1433 * class.c (mono_class_create_from_typedef): fixed up call to
1434 mono_metadata_nesting_typedef.
1436 2003-02-27 Dietmar Maurer <dietmar@ximian.com>
1438 * marshal.c (mono_string_to_byvalstr): clear the memory as
1439 suggested by Jerome Laban <jlaban@wanadoo.fr>
1441 2003-02-26 Dick Porter <dick@ximian.com>
1443 * process.c: Cope with padding in .rsrc blocks
1445 2003-02-26 Dietmar Maurer <dietmar@ximian.com>
1447 * metadata.h: reverted the filter_len change, it breaks reflection
1449 2003-02-26 Dietmar Maurer <dietmar@ximian.com>
1451 * metadata.h: added a new field to store the filter_len
1454 Tue Feb 25 10:56:16 CET 2003 Paolo Molaro <lupus@ximian.com>
1456 * reflection.c: handle custom attributes for types and members
1457 created with Reflection.Emit (bug#38422).
1459 2003-02-22 Zoltan Varga <vargaz@freemail.hu>
1461 * reflection.c: define RTSpecialName automatically for constructors for
1462 compatibility with MS.NET.
1464 * reflection.c (mono_reflection_create_runtime_class): initialize
1465 nested_in field of dynamically created classes.
1467 2003-02-22 Martin Baulig <martin@ximian.com>
1469 * debug-mono-symfile.h: Incremented version number.
1471 2003-02-21 Zoltan Varga <vargaz@freemail.hu>
1473 * object.h icall.c process.c: fix warnings.
1475 2003-02-21 Zoltan Varga <vargaz@freemail.hu>
1477 * appdomain.h appdomain.c:
1478 (mono_domain_try_type_resolve): split the
1479 name_or_tb argument into a name and a tb argument.
1480 (mono_domain_has_type_resolve): new function to check whenever the
1481 application has registered a TypeResolve event handler.
1483 * icall.c reflection.h reflection.c: move the type resolve logic into
1484 mono_reflection_get_type () so it will be invoked when
1485 Assembly::GetType () is called.
1488 (mono_reflection_get_type): renamed to get_type_internal.
1489 (mono_reflection_get_type): fixed type name generation so it works
1490 for nested types too.
1491 (mono_reflection_get_type): call has_type_resolve () to avoid the
1492 costly type name generation if there is no resolve event handler.
1494 Fri Feb 21 11:36:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1496 * class.c, image.c: load exported types from file references.
1498 2003-02-19 Lluis Sanchez Gual <lluis@ideary.com>
1500 * appdomain.h: Added in MonoDomain a couple of MonoMethod* variables
1501 used to cache the managed methods used to create proxies and make
1502 remote invocation of methods.
1503 * class.h: Added in MonoVTable a flag to indicate that a class needs
1504 to be remotely created.
1505 * object.c: Modified the method mono_class_vtable(). It now initializes
1506 the remote flag of the vtable. Modified mono_object_new_specific(),
1507 so now it checks the remote flag.
1508 * icall.c: Added a couple of internal methods, one for enabling instance
1509 creation interception for a type, and one for creating objects bypassing
1512 2003-02-18 Martin Baulig <martin@ximian.com>
1514 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethodToken):
1515 New interncall to get a method's metadata token.
1517 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethodToken"):
1518 New interncall for the debugger.
1520 2003-02-18 Dietmar Maurer <dietmar@ximian.com>
1522 * class.c (mono_class_setup_vtable): allocate supertype array
1524 2003-02-18 Martin Baulig <martin@ximian.com>
1526 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Added `has_this'.
1528 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1531 (assembly_name_to_aname): jump over unknown properties (i've found
1532 something like: 'type, assembly, version=xxx, custom=null, public...',
1533 so now will ignore custom=null and still get the rest of the values).
1535 2003-02-17 Dick Porter <dick@ximian.com>
1537 * threads.c: Have Thread.Start() wait for a semaphore to signal
1538 that the thread has set up all its local data. This fixes bug
1539 34323, where Abort() raced the new thread's TLS data.
1541 Also removes the handle_store() call from start_wrapper, because
1542 threads are now always created suspended and there is no longer a
1543 race between the parent and child threads to store the info.
1545 Mon Feb 17 13:13:31 CET 2003 Paolo Molaro <lupus@ximian.com>
1547 * image.c: explain the #- heap issue in a message, hopefully
1548 avoiding FAQs on mono-list.
1550 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1553 (GetEntryAssembly): if the domain has not invoked
1554 AppDomain.ExecuteAssembly yet, return the assembly of the default
1557 2003-02-16 Zoltan Varga <vargaz@freemail.hu>
1559 * class.c (mono_ldtoken): make it work in dynamic assemblies.
1561 Sun Feb 16 13:10:06 CET 2003 Paolo Molaro <lupus@ximian.com>
1563 * metadata.c, reflection.c: simple speedup to type hash
1566 Sat Feb 15 15:15:03 CET 2003 Paolo Molaro <lupus@ximian.com>
1568 * image.c, image.h, class.c, assembly.c: move module loading
1569 to MonoImage. When loading metadata, consider alignemnet from
1570 the start of metadata, not from the metadata address in memory.
1572 2003-02-13 Zoltan Varga <vargaz@freemail.hu>
1574 * reflection.c (mono_reflection_get_custom_attrs): Added support for
1575 AssemblyBuilder objects. Factored out custom attribute creation into
1576 a separate function.
1577 (create_custom_attr): new function to create custom attributes.
1579 2003-02-12 Miguel de Icaza <miguel@ximian.com>
1581 * Makefile.am: Got tired of typing the full pathname to pedump.
1582 Until there is another option, am installing this.
1584 2003-02-12 Dietmar Maurer <dietmar@ximian.com>
1586 * class.c (class_compute_field_layout): always set field->parent
1587 (mono_ldtoken): use mono_defaults.fieldhandle_class;
1589 2003-02-11 Dick Porter <dick@ximian.com>
1592 * monitor.c: Rewrote Monitor, making lock much faster and
1593 Pulse/Wait work as specified. Also uses much fewer handles, and only
1594 creates them as needed.
1596 * exception.c: Added SynchronizationLockException
1598 * threads.c: Deleted old Monitor implementation. The new one is
1601 Mon Feb 10 17:54:10 CET 2003 Paolo Molaro <lupus@ximian.com>
1603 * class.c: handled TypedReference type code. Set the correct size for
1604 class data. Setup interface_offsets for interface classes, too.
1606 2003-02-09 Martin Baulig <martin@ximian.com>
1608 * debug-mono-symfile.h: Reflect latest symbol writer changes.
1610 Sun Feb 9 18:37:01 CET 2003 Paolo Molaro <lupus@ximian.com>
1612 * loader.c: implemented MEMBERREF_PARENT_TYPEDEF.
1613 * metadata.c, reflection.c: missing MONO_TYPE_TYPEDBYREF handling.
1614 * object.c: fixed mono_object_get_virtual_method () for interfaces.
1615 * verify.c: check for code that runs after the end of the method.
1617 2003-02-08 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1619 * icall.c: Added "System.Math::Floor", "System.Math::Round" and
1620 "System.Math::Round2".
1621 * sysmath.h: Added Floor, Round and Round2 definitions.
1622 * sysmath.c: Modified certain functions that were not 100% compliant
1623 with MS.NET (math precision) and added the implementation of Floor,
1626 2003-02-07 Martin Baulig <martin@ximian.com>
1628 * debug-mono-symfile.c (mono_debug_symfile_add_method): Ignore interncalls.
1630 2003-02-07 Martin Baulig <martin@ximian.com>
1632 * debug-mono-symfile.c: Reflected latest symwriter changes.
1633 (mono_debug_create_mono_symbol_file): Removed.
1634 (mono_debug_open_mono_symbol_file): Take an argument which
1635 specifies whether to create a dynamic symbol file.
1637 2003-02-07 Dietmar Maurer <dietmar@ximian.com>
1639 * class.c (mono_class_from_mono_type): added MONO_TYPE_TYPEDBYREF
1641 2003-02-05 Martin Baulig <martin@ximian.com>
1643 * reflection.c (mono_image_build_metadata): Make this public,
1644 protect it against being called multiple times, don't create
1645 resources and don't build the compressed metadata here.
1646 (mono_image_create_pefile): Do this here.
1649 ("System.Reflection.Emit.AssemblyBuilder::build_metadata"): Added.
1651 2003-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1653 * socket-io.c: fixed bug #36322.
1655 2003-02-06 Piers Haken <piersh@friskit.com>
1659 * debug-mono-symfile.c:
1665 * socket-io.c: warning cleanups
1667 2003-02-06 Dietmar Maurer <dietmar@ximian.com>
1669 * marshal.c (mono_marshal_get_remoting_invoke_with_check): new
1670 function. works like remoting invoke, but does a check for the Proxy first.
1672 2003-02-05 Miguel de Icaza <miguel@ximian.com>
1674 * appdomain.c (ves_icall_System_AppDomain_InternalUnload): Make it compiler.
1676 2003-02-05 Dietmar Maurer <dietmar@ximian.com>
1678 * marshal.c (mono_marshal_get_native_wrapper): only allocate an
1680 (mono_marshal_get_ldfld_wrapper): only generate necessary ldfld wrappers.
1681 (mono_marshal_get_stfld_wrapper): only generate necessary stfld wrappers.
1683 * object.c (mono_store_remote_field_new): used by the new jit
1684 instead of mono_store_remote_field
1685 (mono_load_remote_field_new): used by the new jit
1686 instead of mono_load_remote_field
1688 2003-02-05 Patrik Torstensson
1690 * appdomain.c: changed unload to take the domain id instead
1693 * icall.c: changed icall for AppDomain.Unload to AppDomain.InternalUnload
1696 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1698 * appdomain.c: don't look for assemblies in ApplicationBase if
1699 PrivateBinPathProbe is set.
1701 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1703 * object.c: make the first argument in main_args contain the absolute
1704 path to the assembly. Fixes bug #37511.
1706 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1708 * icall.c: get correct UTC offset for countries not using daylight
1709 time saving. Fixes bug #30030.
1711 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1713 * socket-io.c: support AF_UNIX and use the same layout as MS (bytes 0
1714 and 1 are the family).
1716 2003-02-04 Dietmar Maurer <dietmar@ximian.com>
1718 * icall.c (ves_icall_InternalExecute): removed wrong assertion
1720 * marshal.c (mono_marshal_get_remoting_invoke): generate valid IL
1722 2003-02-04 Zoltan Varga <vargaz@freemail.hu>
1724 * reflection.c: added support for SignatureHelper tokens, which is
1725 needed by the Calli opcode.
1727 * reflection.h: track changes to SignatureHelper class.
1729 * metadata.c (mono_metadata_parse_signature): handle dynamic tokens.
1731 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1733 * appdomain.c: fixed loading assemblies from PrivateBinPath.
1735 2003-02-03 Patrik Torstensson
1736 * appdomain.[c|h], domain.c :
1737 - Added support for getting a domain via domain id
1738 - Support for setting and getting domain from System.AppDomain
1739 (used in cross appdomain channel)
1740 - Added support for get/set for a MonoAppContext on a thread
1741 (Context class in System.Runtime.Remoting.Contexts),
1742 - Removed hack in Get/SetData and ExecuteAssembly.
1744 * icall.c : renamed GetTransparantProxy to InternalGetTransparantProxy to allow
1745 the managed world to get control when a proxy is created.
1747 * icall.c (ves_icall_InternalExecute) : bug fix, must return empty array
1749 2003-02-03 Miguel de Icaza <miguel@ximian.com>
1752 (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
1753 Populate the codebase field as well.
1755 2003-02-02 Martin Baulig <martin@ximian.com>
1757 * debug-mono-symfile.c
1758 (MonoSymbolFileMethodAddress): Added `wrapper_address' field.
1759 (mono_debug_symfile_add_method): Allow interncalls.
1761 2003-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1763 * icall.c: throw parse exception if strtod fails or the string is empty.
1765 Fri Jan 31 16:09:48 CET 2003 Paolo Molaro <lupus@ximian.com>
1767 * marshal.c: handle object type separately from defined
1770 Fri Jan 31 16:01:20 CET 2003 Paolo Molaro <lupus@ximian.com>
1772 * marshal.c: handle NATIVE_LPSTR for strings when it's
1773 explicitly specified.
1775 Fri Jan 31 11:51:43 CET 2003 Paolo Molaro <lupus@ximian.com>
1777 * reflection.c, reflection.h, icall.c: setup the reflection
1778 handle cache for ModuleBuilders and AssemblyBuilders.
1780 2003-01-30 Dietmar Maurer <dietmar@ximian.com>
1782 * reflection.c (reflection_methodbuilder_to_mono_method): set
1785 2003-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1787 * icall.c: implemented ves_icall_MonoMethod_get_base_definition.
1789 2003-01-29 Dick Porter <dick@ximian.com>
1791 * threads.c: No need for the fake_thread kludge now that Thread
1792 doesn't run a class constructor
1794 2003-01-29 Dick Porter <dick@ximian.com>
1796 * threads.c: Use g_direct_hash instead of the rather bogus
1799 2003-01-29 Dietmar Maurer <dietmar@ximian.com>
1801 * marshal.c (mono_marshal_get_native_wrapper): add check for null
1803 (mono_marshal_get_struct_to_ptr): generate valid IL code
1804 (mono_marshal_get_ptr_to_struct): generate valid IL code
1805 (*): correctly set sig->pinvoke, we need to memdup the signature
1808 Tue Jan 28 22:57:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1810 * marshal.c, marshal.h: use larger integers in mono_mb_emit_add_to_local()
1811 to avoid overflows (bug spotted and fixed by Jerome Laban <jlaban@wanadoo.fr>).
1813 Tue Jan 28 18:55:19 CET 2003 Paolo Molaro <lupus@ximian.com>
1815 * profiler.c: provide more callers information.
1817 2003-01-28 Dietmar Maurer <dietmar@ximian.com>
1819 * marshal.c (mono_marshal_get_managed_wrapper): generate valid IL code
1821 * appdomain.h:added fix from Patrik: _MonoAppDomain is a MBR object
1823 * marshal.c (mono_marshal_get_native_wrapper): generate valid IL code
1825 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1827 * icall.c: (ves_icall_System_CurrentTimeZone_GetTimeZoneData): raise an
1828 exception instead of going into an infinite loop on dates which it
1831 * string-icalls.c (ves_icall_System_String_get_Chars): raise
1832 out-of-range exception if needed.
1834 * class.c (mono_class_setup_vtable): allow a virtual method to provide
1835 an implementation for an interface method and to override an inherited
1836 method at the same time.
1837 Imagine a scenario when a virtual method is used to override a
1838 virtual abstract method in a parent class, and this same method
1839 provides an implementation for an method inherited from an interface.
1840 In this case, the interface resolution code will set im->slot, which
1841 means that the virtual method override pass will skip this method
1842 which means a pointer to the abstract method inherited from the parent
1843 will remain in the vtable of this non-abstract class.
1845 * class.c: (mono_class_setup_vtable): continue search for a real
1846 method if only an abstract method is found.
1848 Mon Jan 27 17:12:19 CET 2003 Paolo Molaro <lupus@ximian.com>
1850 * reflection.c: add size to encoding for ByValStr and ByValArray
1851 marshal blob (from "Jerome Laban" <jlaban@wanadoo.fr>).
1853 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1855 * class.c (mono_class_setup_vtable): pass the override info as an
1858 * class.c (mono_class_setup_vtable): set the slot of overriding methods
1861 * reflection.c (ensure_runtime_vtable); add support for method
1864 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1866 * reflection.c (resolution_scope_from_image): Hack to work to work with
1869 * reflection.c (mono_image_typedef_or_ref): renamed to ..._aux and
1870 added a 'force_ref' argument to force this function to allways return
1871 a TypeRef. This is needed by mono_image_get_memberref_token ().
1873 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1875 * reflection.c (mono_image_get_type_info): interfaces really don't have
1878 * reflection.c (mono_image_basic_init): fill out missing fields of
1881 * reflection.c (mono_image_basic_init): Invoke assembly load hooks for
1882 dynamic assemblies. This is required so dynamic assemblies show up in
1883 AppDomain.GetAssemblies (), emit an AssembyLoadEvent, gets searched by
1884 Type::GetType() etc. This is consistent with MS behaviour.
1886 * image.c image.h reflection.c: add newly created classes to the name
1887 cache so mono_class_get () will find them.
1889 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1891 First part of changes to get IKVM.NET running under mono.
1893 * appdomain.h, appdomain.c: added new function
1894 mono_domain_try_type_resolve() which will emit TypeResolve events.
1895 This function will call AppDomain::DoTypeResolve to do the actual work.
1897 * class.h, class.c, loader.c, object.c, reflection.h, reflection.c:
1898 moved existing code dealing with dynamic tokens to a new function
1899 called mono_reflection_lookup_dynamic_token (). This function will
1900 raise TypeResolve events when appropriate. Since reflection.c is not
1901 part of libmetadata, a new hook function called
1902 mono_lookup_dynamic_token() is added to class.c which will call this.
1904 * assembly.h assembly.c: make the invoke_load_hook function public,
1905 so it can be called for dynamic assemblies.
1907 * icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): skip interfaces since they do not have initializers.
1909 * icall.c (ves_icall_type_from_name): emit a TypeResolve event if the
1912 * reflection.c reflection.h: change MonoDynamicAssembly.tokens to a
1913 MonoGHashTable, since it contains pointers to objects which the GC
1916 * assembly.c (search_loaded): remove unused variable.
1918 Mon Jan 27 12:18:45 CET 2003 Paolo Molaro <lupus@ximian.com>
1920 * object.c: fixed issue exposed by gcc-generated IL programs
1921 that use RVA data for pointers.
1923 2003-01-25 Martin Baulig <martin@ximian.com>
1925 * threads.c (start_wrapper): Moved the initialization of
1926 `start_func' above the mono_new_thread_init() call to which we
1927 pass it as argument.
1929 2003-01-24 Martin Baulig <martin@ximian.com>
1931 * threads.h (MonoThreadCallbacks): Pass the thread ID instead of
1932 the MonoThread pointer.
1934 2003-01-21 Miguel de Icaza <miguel@ximian.com>
1936 * icall.c: Rename `PowImpl' to Pow.
1938 2003-01-23 Dick Porter <dick@ximian.com>
1940 * threads.c (start_wrapper): Create a Thread object if needed, so
1941 the Main() thread can do the class initialisation in a subthread
1942 that has been set up to allow managed code execution.
1944 Pass the thread ID instead of the MonoThread pointer to the thread
1945 start and attach callbacks. This change is required, because the
1946 jit thread start callback must be called _before_ the Thread
1947 object can be created.
1949 (mono_thread_init): Removed much object creation code that is no
1950 longer needed. No managed code is called from here now.
1952 * object.c (mono_runtime_exec_managed_code): Create a subthread
1953 for Main, and call back to the runtime to use it.
1954 Set the exit code when Main exits.
1956 * gc.c: Make sure domain finalisation happens in a subthread.
1957 Re-enable threaded GC, fixing bug 31333 (again).
1959 * environment.c: System.Environment internall calls (so far just
1960 ExitCode is here, the others are still in icall.c)
1962 * appdomain.c (mono_runtime_cleanup): All threads running managed
1963 code should have finished before mono_runtime_cleanup() is
1964 reached, so no need to clean up threads.
1966 2003-01-22 Martin Baulig <martin@ximian.com>
1968 * appdomain.h (MonoThreadStartCB): Added `MonoThread *thread' and
1969 `gpointer func' arguments.
1970 (MonoThreadAttachCB): New typedef; like the old MonoThreadStartCB,
1971 but added `MonoThread *thread' argument.
1972 (mono_runtime_init): The last argument is now a MonoThreadAttachCB.
1974 * threads.c (mono_new_thread_init): Added `gpointer func' argument
1975 and pass it to the mono_thread_start_cb callback.
1976 (mono_install_thread_callbacks): New public function to install a
1977 set of callbacks which are set by the debugger.
1978 (mono_thread_init): The last argument is now a MonoThreadAttachCB.
1980 2003-01-22 Martin Baulig <martin@ximian.com>
1982 * Makefile.am: Install debug-mono-symfile.h.
1984 2003-01-21 Aleksey Demakov <avd@openlinksw.com>
1986 * marshal.c: fixed copy_from_managed and copy_to_unmanaged for 0 length.
1988 2003-01-21 Dietmar Maurer <dietmar@ximian.com>
1990 * added the following fix from Jackson Harper <jackson@latitudegeo.com>
1991 * class.c (mono_ptr_class_get): correctly set access levels of pointers
1992 (mono_array_class_get): correctly set access levels of arrays
1994 2003-01-20 Patrik Torstensson
1995 * image.h (MonoAssemblyName): changed major, minor, build, revision
1996 from signed to unsigned.
1998 2003-01-20 sean kasun <skasun@azstarnet.com>
2000 * reflection.c (load_cattr_value): Now this handles
2001 MONO_TYPE_SZARRAY. Fixes bug #35629
2003 2003-01-20 Miguel de Icaza <miguel@ximian.com>
2005 * marshal.c (emit_struct_conv): Handle MONO_TYPE_PTR as an
2008 2003-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2010 * decimal.c: fixed bug #26056.
2012 2003-01-17 Martin Baulig <martin@ximian.com>
2014 * gc.c: Raise an ExecutionEngineException instead of using g_error().
2016 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2019 (mono_get_exception_type_initialization): new function.
2021 * object.c: throw a TypeInitializationException when an exception is
2022 thrown invoking the class constructor.
2024 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2026 * reflection.c: fixed attribute reading.
2028 2003-01-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2031 (ves_icall_type_from_name): make it work as MS. Ie, if no assembly name
2032 provided, look for the type in the calling assembly and then in
2033 mscorlib; if the assembly name is provided, only try that one.
2035 Tue Jan 14 14:52:52 CET 2003 Paolo Molaro <lupus@ximian.com>
2037 * object.c: register the vtable before there is a chance it's
2038 queried again recursively.
2040 2003-01-13 Duncan Mak <duncan@ximian.com>
2042 * Makefile.am (libmonoruntime_la_SOURCES): Change gc.h to
2045 2003-01-12 Patrik Torstensson <totte@race-x-change.com>
2047 * string-icall.[c|h], icall.c: Added support for CompareOrdinal mode
2049 2003-01-11 Martin Baulig <martin@ximian.com>
2051 * debug-mono-symfile.h (MONO_SYMBOL_FILE_DYNAMIC_VERSION): Incremented
2052 this to 20 for the release.
2054 2003-01-10 Dietmar Maurer <dietmar@ximian.com>
2056 * marshal.c (emit_struct_conv): added support for EXPLICIT_LAYOUT
2058 * loader.c (mono_method_get_marshal_info): bug fix
2060 * marshal.c (mono_marshal_get_ptr_to_struct): don't convert
2061 structures with explicit layout
2063 Fri Jan 10 15:58:09 CET 2003 Paolo Molaro <lupus@ximian.com>
2065 * profiler.c: made the output more readable (and sorted).
2066 Added caller information for the allocation profiler.
2068 2003-01-09 Sebastien Pouliot <spouliot@videotron.ca>
2070 * icall.c, rand.c, rand.h: Prepended RNG functions with Internal.
2072 2003-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2074 * icall.c: added ves_icall_System_Activator_CreateInstanceInternal. Used
2077 Thu Jan 9 19:43:11 CET 2003 Paolo Molaro <lupus@ximian.com>
2079 * object.c, profiler.h, profiler.c, profiler-private.h:
2080 Added object allocation profiler.
2082 Thu Jan 9 16:17:00 CET 2003 Paolo Molaro <lupus@ximian.com>
2084 * reflection.h, reflection.c: handle global methods.
2085 Compress blob entries.
2087 Thu Jan 9 15:54:53 CET 2003 Paolo Molaro <lupus@ximian.com>
2089 * marshal.c: fix compilation.
2091 2003-01-09 Dietmar Maurer <dietmar@ximian.com>
2093 * loader.c (mono_method_get_marshal_info): impl.
2095 * metadata.c (mono_metadata_field_info): use mono_metadata_get_marshal_info
2097 2003-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2099 * icall.c: applied fix from Zoltan Varga that fixes Type.IsPrimitive
2100 for reference types.
2102 Wed Jan 8 20:11:46 CET 2003 Paolo Molaro <lupus@ximian.com>
2104 * loader.c: fixed off by one error in loaded parameter names.
2106 2003-01-08 Dietmar Maurer <dietmar@ximian.com>
2108 * marshal.c (mono_marshal_get_icall_wrapper): like
2109 mono_marshal_get_native_wrapper, but simpler and use a MonoMethodSignature
2110 instead of a MonoMethod.
2112 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2114 * decimal.c: fixed bug #36537.
2116 Mon Jan 6 19:37:59 CET 2003 Paolo Molaro <lupus@ximian.com>
2118 * marshal.c: throw a missing method exception if a
2119 P/Invoke method is not found.
2121 Sun Jan 5 11:57:09 CET 2003 Paolo Molaro <lupus@ximian.com>
2123 * icall.c: allow a null this for constructors.
2125 Sat Jan 4 18:28:42 CET 2003 Paolo Molaro <lupus@ximian.com>
2127 * icall.c: raise the proper exceptions if the arguments to the
2128 internal Invoke are incorrect.
2130 2003-01-03 Dietmar Maurer <dietmar@ximian.com>
2132 * marshal.c (mono_marshal_get_ptr_to_struct): code cleanups
2134 2003-01-03 Martin Baulig <martin@ximian.com>
2136 * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2138 2002-12-31 Martin Baulig <martin@ximian.com>
2140 * debug-mono-symfile.c: Completely rewrote the type section.
2141 Instead of using individual malloc()ed fields, we use one big
2142 continuous memory area and offsets into this area.
2143 See the comments in the source code for details.
2145 2002-12-30 Martin Baulig <martin@ximian.com>
2147 * debug-mono-symfile.h (MonoDebugTypeInfo): Renamed to MonoDebugClassInfo.
2149 2002-12-30 Martin Baulig <martin@ximian.com>
2151 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Include the
2152 line number table in this data blob instead of using an external
2155 2002-12-28 Martin Baulig <martin@ximian.com>
2157 * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2159 2002-12-22 Rachel Hestilow <hestilow@ximian.com>
2161 * marshal.c (mono_marshal_get_runtime_invoke): Support MONO_TYPE_CHAR
2162 as a boxed return type.
2164 2002-12-21 Miguel de Icaza <miguel@ximian.com>
2167 (ves_icall_System_AppDomainSetup_InitAppDomainSetup): Use
2168 g_build_filename to properly get separators on the filename created.
2170 * object.h: Small change, introduce MonoMarshalByRefObject to
2171 track the layout of that structure in the C# universe as we make
2174 Thu Dec 19 16:23:19 CET 2002 Paolo Molaro <lupus@ximian.com>
2176 * object.c: removed assert to allow static fields on interfaces.
2177 * loader.c: a TypeSpec may be used for any type, not just arrays.
2179 Thu Dec 19 14:19:42 CET 2002 Paolo Molaro <lupus@ximian.com>
2181 * class.c, class.h: added mono_class_array_element_size ().
2182 Ignore static methods in interfaces.
2184 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2186 * threads.c: fixed the build under cygwin.
2188 Wed Dec 18 18:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
2190 * reflection.c: handle nullref constants. Allocate keys for
2191 reflection handles with the GC.
2193 Wed Dec 18 11:34:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2195 * threads.c, threads.h: added mono_thread_get_abort_signal()
2196 to get a suitable signal for thread abort.
2198 Wed Dec 18 11:26:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2200 * metadata.c: fix handling of ExportedType table.
2202 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2204 * icall.c: added WriteWindowsDebugString internal call.
2206 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2208 * reflection.h: added fields to match C# implementation.
2210 2002-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2212 * icall.c: patch from Jaroslaw Kowalski to fix Environment.MachineName.
2214 2002-12-12 Juli Mallett <jmallett@FreeBSD.org>
2216 * gc.h, gc-internal.h: Rename header for GC internal calls to
2217 gc-internal.h from gc.h as to not clash with Boehm GC having its
2218 header installed as <gc.h> in outside include paths.
2219 * appdomain.c, gc.c, icall.c, object.c: Account for aforementioned.
2220 * threads.c: If SIGRTMIN is not defined, fall back to SIGUSR1.
2222 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2224 * icall.c: assign minor, build and revision in FillName.
2226 2002-12-11 Zoltan Varga <vargaz@freemail.hu>
2228 * image.h reflection.h reflection.c class.h class.c loader.c object.c:
2229 Added support for running code generated by Reflection.Emit.
2231 2002-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2233 * appdomain.c: check for NULL argument in LoadFrom.
2235 2002-12-10 Dick Porter <dick@ximian.com>
2237 * threads.c: WaitHandle fixes from Tum <tum@veridicus.com>
2239 2002-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2241 * appdomain.c: fix buglet when building exe file name. Handle full
2242 assembly name (needed after latest changes to AssemblyName).
2244 (mono_image_close): free some hashtables.
2246 2002-12-05 Dietmar Maurer <dietmar@ximian.com>
2248 * threads.c (ves_icall_System_Threading_Thread_Abort): we use SIGRTMIN
2249 instead of SIGUSR1, because SIGUSR1 is used by the pthread implementation
2250 on some systems (redhat 7.3)
2252 Thu Dec 5 16:13:40 CET 2002 Paolo Molaro <lupus@ximian.com>
2254 * threads.c: delete the critical section of a sync block,
2255 spotted and fixed by tum@veridicus.com (Thong (Tum) Nguyen).
2257 Thu Dec 5 12:52:52 CET 2002 Paolo Molaro <lupus@ximian.com>
2259 * pedump.c, cil-coff.h, monosn.c: add strong name cli header flag.
2261 2002-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2263 * appdomain.[ch]: handle the assembly preload event to try loading the
2264 assemblies using the paths we have in the current domain.
2266 * assembly.[ch]: created an assembly preload hook that is called to try
2267 loading the assembly by other means that the ones provided here.
2269 * domain.c: initialize the domain search path.
2271 From now on, assemblies (TODO: except corlib and System) are loaded
2272 according to these rules when using mono_assembly_load ():
2274 1. It tries to load the assembly from the ApplicationBase
2275 of the current domain appending .dll and .exe (TODO: have to
2276 try loading from name/name.dll and name/name.exe).
2278 2. It tries the search path specified in PrivateBinPath for the
2279 current domain (if any).
2281 3. Previous behavior.
2283 Wed Dec 4 16:02:25 CET 2002 Paolo Molaro <lupus@ximian.com>
2285 * icall.c: implemented GetInterfaceMap() related icall.
2286 * domain.c, loader.h: load MethodInfo in mono_defaults.
2288 Wed Dec 4 11:02:30 CET 2002 Paolo Molaro <lupus@ximian.com>
2290 * gc.c: disable the finalizer thread for now, untill all the issues
2291 with it are resolved.
2293 Wed Dec 4 10:44:01 CET 2002 Paolo Molaro <lupus@ximian.com>
2295 * string-icalls.c: handle embedded nulls in string ctor when the
2296 length is specified.
2298 Tue Dec 3 19:29:20 CET 2002 Paolo Molaro <lupus@ximian.com>
2300 * class.c: look for explicit interface implementation in parent
2303 2002-12-03 Dietmar Maurer <dietmar@ximian.com>
2305 * gc.c (run_finalize): dont run the finalizer (strange behaviour on rh7.3)
2307 Tue Dec 3 12:40:06 CET 2002 Paolo Molaro <lupus@ximian.com>
2309 * gc.c: protect handles with a critical section.
2311 2002-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2314 (ves_icall_type_from_name): it now has throwOnError and ignoreCase
2315 parameters. If no assembly specified, try getting the type from all
2316 the assemblies in the current domain, else, load the assembly and get
2319 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2321 * marshal.c: applied patch from Aleksey Demakov that fixes
2322 ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni.
2324 2002-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2326 * icall.c: fixed get_location.
2328 2002-11-28 Dietmar Maurer <dietmar@ximian.com>
2330 * icall.c: moved MONO_ARCH_SAVE_REGS to the end of the
2331 declarations to make it work with older gcc.
2333 * loader.c (mono_get_method): set signature->pinvoke for native calls
2335 2002-11-20 Dick Porter <dick@ximian.com>
2337 * threads.c (mono_thread_init): Set the main thread's handle
2339 Tue Nov 19 14:15:34 CET 2002 Paolo Molaro <lupus@ximian.com>
2341 * gc.c: allow compilation without GC support. Changed to match the
2344 Mon Nov 18 18:41:51 CET 2002 Paolo Molaro <lupus@ximian.com>
2346 * gc.c: don't start the finalizer thread if the env var GC_DONT_GC is set.
2348 Mon Nov 18 16:35:22 CET 2002 Paolo Molaro <lupus@ximian.com>
2350 * reflection.c: set a public key token on the core assemblies.
2352 2002-11-18 Dick Porter <dick@ximian.com>
2354 * threads.c: Split out some thread initialisation so that other
2355 files can set the start callback function.
2357 * gc.c: Run finalisers in a separate thread, to avoid stack
2358 overflow. Fixes bug 31333.
2360 * appdomain.c: Set up GC finalisation thread.
2364 * domain.c: Use gc.h macros for GC_malloc
2366 2002-11-15 Dick Porter <dick@ximian.com>
2370 * appdomain.c: Removed mono_runtime_init_with_attach(),
2371 mono_thread_create_arg(), and mono_thread_init_with_attach(), by
2372 merging the extra parameter with the existing function. Removed
2373 unneeded code in mono_thread_attach().
2375 2002-11-14 Dietmar Maurer <dietmar@ximian.com>
2377 * image.c (mono_image_loaded_by_guid): a method to get loaded
2379 (load_metadata_ptrs): we store the guid as string.
2381 2002-11-11 Dietmar Maurer <dietmar@ximian.com>
2383 * assembly.c (mono_assembly_open): check the guid of aot compiled lib.
2385 * metadata.c (mono_guid_to_string): imported method form Zoltan
2386 Varga (slightly modified)
2388 * assembly.c (mono_assembly_open): load precompiled code
2390 * loader.h (MonoMethod): we store the method token for use in the
2393 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2395 * appdomain.c: insert the loaded assemblies in the domain->assemblies in
2396 the hook function called when an assembly is loaded.
2398 * domain.c: Modified file.
2399 (mono_domain_assembly_load): removed hash table insertion of assemblies.
2403 2002-11-07 Miguel de Icaza <miguel@ximian.com>
2405 * reflection.c: Map PEFileKind to the value expected by the WinNT
2408 2002-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2410 * rand.c: use /dev/urandom. If it fails to open, use the previous one.
2411 Read until the buffer is filled completely.
2413 2002-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2415 * icall.c: implemented MonoType.InternalGetEvent ().
2417 2002-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2419 * appdomain.c: implemented InitAppDomainSetup. Delayed
2420 AppDomain.SetupInformation until mono_runtime_exec_main, where we get
2423 * assembly.c: base_dir is now an absolute path ending with
2426 * icall.c: modified get_location according to the above changes.
2428 * object.c: init AppDomain.SetupInformation for the default domain after
2429 we have the entry assembly.
2431 * domain.c: when unloading a domain, setup = NULL.
2433 2002-11-04 Dietmar Maurer <dietmar@ximian.com>
2435 * marshal.c (emit_ptr_to_str_conv): try to fix bug 29548
2437 Sun Nov 3 15:39:28 CET 2002 Paolo Molaro <lupus@ximian.com>
2439 * object.h, object.c: introduced mono_object_get_virtual_method ()
2440 to lookup the method invoked on an object when a callvirt is done on
2442 * icall.c: make MethodInfo::Invoke() always do a virtual call.
2444 2002-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2446 * appdomain.c: invoke AssemblyLoad and AsemblyResolve events in the
2447 current domain when loaded an assembly and failed to load it.
2449 * icall.c: changed ...Assembly_GetType to Assembly_InternalGetType.
2451 2002-10-31 Dick Porter <dick@ximian.com>
2455 * file-io.c: Return the error status in a parameter, as the
2456 GetLastError() value has long since been blown away if we try and
2457 look it up in a subsequent internal call invocation. Delete the
2458 GetLastError() internal call, because it's useless.
2460 2002-10-31 Dietmar Maurer <dietmar@ximian.com>
2462 * class.[ch]: added cast_class to fix bug 29517
2464 Wed Oct 30 19:37:32 CET 2002 Paolo Molaro <lupus@ximian.com>
2466 * marshal.c: create valid IL code in the filter clause:
2467 the new JIT is less forgiving:-)
2469 2002-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2471 * icall.c: removed get_property internal call.
2473 2002-10-25 Zoltan Varga <vargaz@freemail.hu>
2475 * appdomain.h domain.c: Added an ID to appdomains.
2477 * threads.c threads.h icall.c: Implement icall
2478 Thread:GetDomainID(), and remove unused icall
2479 CurrentThreadDomain_internal.
2481 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2483 * icall.c: Don't recurse through the base types in GetConstructor.
2486 Thu Oct 24 16:56:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
2488 * mempool.h, mempool.c: added mono_mempool_empty() and
2489 mono_mempool_stats().
2491 2002-10-23 Dick Porter <dick@ximian.com>
2495 * icall.c: Added MonoIO.GetFileType internal call
2497 2002-10-17 Dick Porter <dick@ximian.com>
2499 * appdomain.c (mono_runtime_cleanup): Don't signal the async
2500 delegate semaphore before waiting for all threads to finish,
2501 because new threads can also call async delegates. Fixes bug
2504 * threadpool.c (async_invoke_thread): Only wait for 500ms instead
2505 of 3 seconds, in case another async job is queued. (This part is
2506 needed because the bug fix reintroduced the 3s exit lag.) This
2507 makes the mono_runtime_shutdown flag superfluous.
2509 Thu Oct 17 13:11:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
2511 * reflection.c: include ehader size in method section headers.
2512 Really check for suplicated modules entries.
2514 2002-10-17 Martin Baulig <martin@gnome.org>
2516 * debug-mono-symfile.c: Added back support for locals.
2518 2002-10-14 Martin Baulig <martin@gnome.org>
2520 * debug-mono-symfile.c: Added MONO_TYPE_I, MONO_TYPE_U and
2523 2002-10-14 Martin Baulig <martin@gnome.org>
2525 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetType): Use
2526 mono_class_get() instead of looking in the class cache.
2528 2002-10-13 Martin Baulig <martin@gnome.org>
2530 * debug-mono-symfile.c: Set version number to 28, include the
2531 signature in method names.
2533 2002-10-13 Martin Baulig <martin@gnome.org>
2535 * debug-mono-symfile.h: Set version number to 27.
2537 2002-10-11 Martin Baulig <martin@gnome.org>
2539 * gc.c: Don't register/unregister NULL pointers as disappearing links.
2541 Thu Oct 10 14:56:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
2543 * metadata.c, metadata.h: added helper function to allocate signatures.
2545 2002-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2547 * icall.c: added internal call to get the location of machine.config.
2549 2002-10-08 Martin Baulig <martin@gnome.org>
2551 * debug-mono-symfile.c: Ignore classes with a pending init for the
2554 2002-10-03 Dick Porter <dick@ximian.com>
2556 * threads.c: Freebsd pthread_t is a pointer
2558 2002-10-03 Dick Porter <dick@ximian.com>
2560 * socket-io.c: Implemented GetHostName_internal
2562 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2565 (mono_config_parse_file): don't leak the text.
2567 2002-10-02 Martin Baulig <martin@gnome.org>
2569 * debug-mono-symfile.c: Added support for methods.
2571 2002-10-01 Martin Baulig <martin@gnome.org>
2573 * debug-mono-symfile.c: Don't emit methods and line numbers for
2574 the dynamic symbol file, just write the type table. We can easily
2575 have an external helper program which creates a symbol file for an
2578 2002-10-01 Dick Porter <dick@ximian.com>
2580 * threads.c (ves_icall_System_Threading_Thread_Start_internal):
2581 Only add the handle to the cleanup array when we're about to
2582 launch the thread. Bug 31425 deadlocked when the test was run on
2585 2002-10-01 Martin Baulig <martin@gnome.org>
2587 * debug-mono-symfile.c: Added support for properties.
2589 Fri Sep 27 18:55:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
2591 * reflection.c: unaligned store fix from Mark Crichton
2592 <crichton@gimp.org>.
2594 2002-09-27 Martin Baulig <martin@gnome.org>
2596 * icall.c ("System.Reflection.Assembly::GetReferencedAssemblies"):
2599 Fri Sep 27 15:38:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
2601 * assembly.h, assembly.c: use a sane API to hook into the assembly
2602 loading process instead of a useless special-purpouse hack
2603 (ngen needs a hook, too, for example).
2605 2002-09-27 Dick Porter <dick@ximian.com>
2607 * threads.c (mono_thread_init): Call GetCurrentProcess() so
2608 io-layer can set up some process handle info. Not needed on w32,
2609 but doesn't hurt either.
2611 * process.c: Pass the program name in the second parameter to
2612 CreateProcess, so the path is searched. Include the working
2613 directory. Implemented process name, process enumeration, and some
2614 process detail internal calls.
2616 * icall.c: Added internal calls for process lookup, and some
2619 2002-09-26 Martin Baulig <martin@gnome.org>
2621 * assembly.c (mono_install_open_assembly_hook): New global
2622 function to install a function to be invoked each time a new
2624 (mono_assembly_open): Run this callback function if set.
2626 * debug-mono-symfile.c: Put back line numbers for the dynamic
2627 symbol file and also record the .il file as source file. This
2628 allows us to install the temporary symbol file as `file.dbg' just
2629 like a compiler-generated one.
2631 2002-09-26 Nick Zigarovich <nick@chemlab.org>
2633 * Corrected typo in gc.c (BOHEM vs BOEHM).
2635 2002-09-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2637 * icall.c: fixed bug #31235 by copying a few lines from GetMethods to
2638 GetProperties. Also avoid calling g_slist_length in GetProperties and
2641 Wed Sep 25 22:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
2643 * reflection.c: avoid unaligned stores (bug spotted by
2644 Mark Crichton <crichton@gimp.org>).
2646 2002-09-25 Martin Baulig <martin@gnome.org>
2648 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Use pointers
2649 instead of guint64 for addresses and added prologue/epilogue info.
2651 2002-09-25 Martin Baulig <martin@gnome.org>
2653 * debug-mono-symfile.h (MonoDebugLineNumberEntry): New type to
2654 store line number info. For the dynamic symbol file, we only need
2655 to provide the JIT generated dynamic line number info for the dynamic
2658 2002-09-25 Martin Baulig <martin@gnome.org>
2660 * debug-mono-symfile.h: Incremented version number.
2662 2002-09-24 Martin Baulig <martin@gnome.org>
2664 * class.c (mono_debugger_class_init_func): New global function
2666 (mono_class_init): If mono_debugger_class_init_func is non-NULL,
2669 * debug-mono-symfile.c (mono_debug_symfile_add_type): New
2670 function. This is called via the mono_debugger_class_init_func
2671 hook to add all types to the dynamic type table.
2672 (ves_icall_MonoDebugger_GetType): New interncall to get a class
2673 from its metadata token.
2675 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetType"):
2676 New interncall for the debugger.
2678 2002-09-24 Nick Drochak <ndrochak@gol.com>
2680 * icall.c (ves_icall_System_Enum_ToObject): validate the type parameter
2681 before using it in case it is null.
2683 Tue Sep 24 13:24:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
2685 * metadata.c: allow custom modifiers in local var signatures
2686 (bug spotted by Zoltan Varga).
2688 Tue Sep 24 12:12:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
2690 * class.c: deal with the <Module> class that may have a NULL vtable.
2693 Tue Sep 24 11:28:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2695 * image.c, image.h: more strong name helpers.
2696 * monosn.c: more work: convert pem keys to cryptoapi format.
2698 Tue Sep 24 11:27:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
2700 * string-icalls.c: speedup IndexOf.
2702 Tue Sep 24 11:17:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2704 * icall.c: updates from Zoltan.2.Varga@nokia.com.
2706 Tue Sep 24 11:09:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
2708 * icall.c: cleanup: use mono_object_domain ().
2710 2002-09-23 Martin Baulig <martin@gnome.org>
2712 * debug-mono-symfile.c: Improved type support.
2714 2002-09-22 Martin Baulig <martin@gnome.org>
2716 * debug-mono-symfile.c: Added support for reference types and strings.
2718 2002-09-22 Martin Baulig <martin@gnome.org>
2720 * debug-mono-symfile.c: Started to work on the type table.
2722 2002-09-21 Martin Baulig <martin@gnome.org>
2724 * debug-mono-symfile.c: Largely reworked the symbol table format.
2725 The symbol table is now incrementally updated each time a new
2726 method is added. We're now also using our own magic and version
2727 so that you don't need to recompile all your classes if the
2728 dynamic table changes.
2729 (mono_debug_update_mono_symbol_file): Removed.
2730 (mono_debug_symfile_add_method): New function to add a method.
2732 2002-09-21 Martin Baulig <martin@gnome.org>
2735 ("System.Reflection.Assembly::MonoDebugger_GetLocalTypeFromSignature"):
2738 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetLocalTypeFromSignature):
2739 New interncall to get a method from its metadata token.
2741 2002-09-21 Martin Baulig <martin@gnome.org>
2743 * debug-mono-symfile.c: Create type table.
2745 2002-09-20 Martin Baulig <martin@gnome.org>
2747 * debug-mono-symfile.c: Reflect latest Mono.CSharp.Debugger changes.
2749 2002-09-20 Martin Baulig <martin@gnome.org>
2751 * debug-mono-symfile.c: Provide information about params and locals.
2753 2002-09-20 Martin Baulig <martin@gnome.org>
2755 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
2758 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
2759 interncall to get a method from its metadata token.
2761 2002-09-20 Martin Baulig <martin@gnome.org>
2763 * debug-mono-symfile.c: Added a few checks for method->header
2764 being non-NULL. This should never happen, but for the moment
2765 let's use a g_warning() rather than a g_assert().
2767 2002-09-19 Mark Crichton <crichton@gimp.org>
2769 * gc.c: ves_icall_System_GCHandle_FreeHandle made a call to libgc
2770 even if support for it isn't present. Added an #ifdef to fix this.
2772 * socket-io.c: Added checks back for Solaris support.
2774 2002-09-19 Martin Baulig <martin@gnome.org>
2776 * debug-mono-symfile.c (read_string, write_string): Reflect latest
2777 changes in the symbol file format.
2779 2002-09-18 Martin Baulig <martin@gnome.org>
2781 * debug-mono-symfile.c: Set version number to 21.
2783 2002-09-18 Dick Porter <dick@ximian.com>
2785 * threads.c (mon_new): Use the GC_MALLOC macro to hide differences
2786 on netbsd. Fixes bug 30051.
2788 2002-09-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2791 (set_version_from_string): little fix.
2793 Mon Sep 16 18:57:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2795 * monosn.c, Makefile.am: added strong name utility.
2796 * reflection.h, reflection.c: implemented delayed signing,
2797 locale, version and hash id assembly attributes.
2799 Mon Sep 16 18:51:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
2801 * loader.c, metadata.c: load param attributes in signatures.
2803 2002-09-16 Martin Baulig <martin@gnome.org>
2805 * debug-mono-symfile.c: Added string table with all method names.
2807 2002-09-14 Martin Baulig <martin@gnome.org>
2809 * debug-mono-symfile.h (MonoSymbolFile): Added method range table for
2812 Fri Sep 13 16:04:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
2814 * reflection.c: record the public key token of referenced assemblies.
2816 Fri Sep 13 15:41:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
2818 * image.c, image.h: added functions to get the strong name and the
2819 public key of an assembly.
2820 * pedump.c: use them.
2822 2002-09-12 Dietmar Maurer <dietmar@ximian.com>
2824 * marshal.c (emit_str_to_ptr_conv): support marshalling of delegates.
2826 2002-09-12 Miguel de Icaza <miguel@ximian.com>
2828 * marshal.c (mono_marshal_get_managed_wrapper): Added
2831 2002-09-11 Martin Baulig <martin@gnome.org>
2833 * gc.c: Call GC_unregister_disappearing_link() on all links when
2834 finalizing them, this is necessary to aviod a crash in boehm's
2837 Wed Sep 11 17:06:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
2839 * gc.c: handle GetTarget for finalized objects spotted and fixed by
2842 Wed Sep 11 15:27:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
2844 * icall.c: implemented MonoType::Module.
2845 * reflection.c, reflection.h: mono_module_get_object () from
2846 Tomi Pakarinen <tomi.pakarinen@welho.com>.
2848 Wed Sep 11 12:53:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
2850 * icall.c: ignore overridden methods in GetMethods ().
2851 Fix for FieldInfo::SetValue().
2852 * object.c: handle float/double in runtime invoke.
2854 Tue Sep 10 15:51:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
2856 * object.c: allow a constructor to be called again on an object.
2858 Tue Sep 10 11:58:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2860 * class.h, class.c: move field layout code to it's own function and
2861 export it. Get an interface id earlier. Move fields in MonoClass
2862 so they are more cache friendly and align the bitfields.
2863 * loader.c: temporary handle get_param_names() for a runtime method.
2864 * reflection.c, reflection.h: more code to handle runtime creation of
2867 2002-09-09 Martin Baulig <martin@gnome.org>
2869 * marshal.c (mono_marshal_get_native_wrapper): We need to use a special
2870 signature with the pinvoke field being set for the actual call.
2872 Sat Sep 7 10:12:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
2874 * icall.c: removed some unused icalls. Start of map of glib charsets
2875 to corlib names. Implemented RuntimeMethod::GetFunctionPointer ().
2877 Fri Sep 6 16:08:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
2879 * debug-helpers.c: break infinite loop (found and fixed by
2880 Holger Arnold <harnold@gmx.de>).
2882 Thu Sep 5 18:50:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
2884 * icall.c: target may be null in create_delegate.
2886 Thu Sep 5 17:42:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2888 * marshal.c: handle a boolean return type.
2890 Thu Sep 5 13:09:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2892 * gc.c: put HIDE_POINTER/REVEAL_POINTER only here.
2894 Wed Sep 4 19:23:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
2896 * gc.c: fix weakreferences.
2898 Wed Sep 4 13:59:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
2900 * icall.c: added icall to get default codepage.
2902 2002-09-03 Dick Porter <dick@ximian.com>
2905 * threads.c: Use MonoThread instead of MonoObject where
2908 Store running thread objects in a hash table, so that we have all
2909 the info to hand when waiting for them to finish
2910 (means we don't need OpenThread() any more, so mingw builds should
2911 be fully functional again.)
2914 * object.h: Added thread ID to MonoThread
2916 2002-09-03 Martin Baulig <martin@gnome.org>
2918 * icall.c (System.Reflection.Assembly::get_location): New interncall.
2920 2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2922 * icall.c: fixed leak in get_temp_path. Thanks lupus.
2924 2002-09-03 Martin Baulig <martin@gnome.org>
2926 * debug-helpers.c (mono_disasm_code_one): Added `const guchar **endp'
2927 argument to store the end address of the disassembled instruction.
2929 * debug-mono-symfile.h (MonoDebugMethodInfo, MonoDebugVarInfo): Moved
2930 here from debug-symfile.h.
2931 (MonoDebugMethodJitInfo): Moved all fields which are filled out by the
2932 JIT into this struct.
2933 (MonoSymbolFile): Added `char *image_file' field.
2934 (MonoDebugGetMethodFunc): Removed.
2935 (mono_debug_update_mono_symbol_file): Removed the hash table argument.
2936 (mono_debug_create_mono_symbol_file): Removed the `source_file' argument.
2937 (mono_debug_find_method): New method.
2939 * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): Always
2940 create a full symbol file.
2941 (mono_debug_update_mono_symbol_file): Don't distinguish between dynamic
2942 and static symbol files.
2943 (mono_debug_find_method): The symbol file keeps an internal method hash,
2944 call this to get a MonoDebugMethodInfo from a MonoMethod.
2946 * debug-symfile.[ch]: Removed.
2948 2002-08-29 Miguel de Icaza <miguel@ximian.com>
2950 * image.c (do_mono_image_open): Remove linker version check.
2952 2002-08-29 Dietmar Maurer <dietmar@ximian.com>
2954 * marshal.c (mono_marshal_get_managed_wrapper): don't cache
2955 wrappers for instance methods.
2957 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2959 * icall.c: added ves_icall_System_IO_Path_get_temp_path.
2961 2002-08-28 Dick Porter <dick@ximian.com>
2963 * Makefile.am: Export HOST_CC for w32 builds
2965 Tue Aug 27 18:34:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
2967 * file-io.c process.c: MonoString are null terminated, no
2968 need for mono_string_to_utf16() anymore.
2970 Tue Aug 27 17:51:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
2972 * icall.c, unicode.h, unicode.c: removed unused iconv stuff.
2974 Tue Aug 27 16:38:58 CEST 2002 Paolo Molaro <lupus@ximian.com>
2976 * icall.c, reflection.h: speedup System.MonoType.
2978 Tue Aug 27 16:37:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
2980 * reflection.c: allow null as the value of a string argument in
2981 custom attributes constructors.
2983 2002-08-27 Martin Baulig <martin@gnome.org>
2985 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Removed the
2986 `trampoline_address' field.
2988 2002-08-27 Dietmar Maurer <dietmar@ximian.com>
2990 * marshal.c (mono_marshal_get_native_wrapper): removed wrong null
2991 check (fixes bug #29486)
2993 2002-08-27 Martin Baulig <martin@gnome.org>
2995 * debug-mono-symfile.c: Changed the file format in a way that allows us
2996 open it read-only and to use a specially malloced area for all the
2997 dynamic data. We can now also generate a symbol file on-the-fly if we're
2998 debugging IL code and there is no MCS generated symbol file for it.
3000 Mon Aug 26 16:47:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
3002 * object.c: added a define for a good string and array
3003 creation speedup (not enabled by default because we need to deal with
3006 2002-08-26 Martin Baulig <martin@gnome.org>
3008 * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): New
3009 function to create a dynamic symbol file. This is used by the
3010 debugger to create a symbol file for IL code on-the-fly.
3012 2002-08-26 Martin Baulig <martin@gnome.org>
3014 * loader.c (mono_lookup_pinvoke_call): Include the error message
3015 from g_module_error() in the error message.
3017 2002-08-24 Martin Baulig <martin@gnome.org>
3019 * debug-mono-symfile.c (mono_debug_update_mono_symbol_file): New
3020 function to update the symbol file. The symbol file is mmap()ed
3021 writable, but private. This allows us to install the symbol file
3022 together with the assembly.
3024 2002-08-24 Martin Baulig <martin@gnome.org>
3026 * debug-mono-symfile.[ch]: New files. Similar to debug-symfile.[ch]
3027 but they can read the new symbol file format which mcs is now creating.
3029 * debug-symfile.c (mono_debug_find_source_location): Moved to
3030 debug-mono-symfile.c; this is now operating on the new symbol file.
3032 2002-08-23 Martin Baulig <martin@gnome.org>
3034 * debug-helpers.c (mono_method_desc_from_method): New function to get
3035 a MonoMethodDesc from a MonoMethod.
3037 Fri Aug 23 15:54:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
3039 * object.c: fixes assertion failure caused by multiple ExecuteAssembly
3040 calls for same domain (patch by Tomi Pakarinen <Tomi.Pakarinen@iki.fi>).
3042 Fri Aug 23 12:14:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
3044 * string-icalls.[ch]: make helper methods static.
3046 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3048 * icall.c: re-applied patch to GetValueInternal. Also added R4 and R8
3049 types to it and to SetValueInternal.
3051 * object.c: Moved handle_enum label to its proper place. This was the
3054 This time i compiled mcs and gtk-sharp and they both work.
3056 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3058 * icall.c: reverted partially my previous patch until
3059 object.c:set_value handles enums correcly.
3061 2002-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3064 (ves_icall_MonoField_GetValue): changed to use mono_field_get_value.
3065 (ves_icall_System_Environment_get_MachineName): removed warning when
3066 compiling under cygwin.
3068 Thu Aug 22 18:49:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
3070 * object.c: fixed field_get_value() for reference types.
3072 2002-08-22 Dick Porter <dick@ximian.com>
3074 * socket-io.c (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal):
3075 Don't free a buffer while it's still needed. Patch from Jonathan
3076 Liger <Jonathan.liger@wanadoo.fr>
3078 2002-08-21 Miguel de Icaza <miguel@ximian.com>
3080 * icall.c (ves_icall_System_Environment_get_Platform): Add new
3083 2002-08-21 Dietmar Maurer <dietmar@ximian.com>
3085 * icall.c (ves_icall_get_method_info): s/MonoMethod/MonoReflectionMethod/
3086 (ves_icall_get_parameter_info): s/MonoMethod/MonoReflectionMethod/
3088 * marshal.c (mono_marshal_get_remoting_invoke): save lmf, because
3089 we call unmanaged code which throws exceptions.
3091 Wed Aug 21 12:56:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3093 * appdomain.h: added per-domain entry_assembly.
3094 * appdomain.c: ensure mono_runtime_exec_main () gets non-null
3096 * icall.c: Assembly::GetEntryAssembly icall.
3097 * object.c: set domain->entry_assembly in mono_runtime_exec_main().
3098 Changes above from a patch by Tomi Pakarinen <tomi.pakarinen@welho.com>.
3100 Tue Aug 20 15:42:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3102 * appdomain.h, gc.c: added mono_domain_finalize ().
3104 2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3107 (mono_print_unhandled_exception): changed g_warning by g_printerr
3108 because g_log has a 1024 characters limit (yeah, i got a big stack
3109 trace). Don't print exception name, that should be in ToString
3112 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3114 * icall.c: added ves_icall_FieldInfo_SetValueInternal.
3115 * object.c: added missing MONO_TYPE_ARRAY in mono_runtime_invoke_array.
3117 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3120 (mono_print_unhandled_exception): after previous commit, i realized
3121 that MS calls ToString on the exception. I changed this function to
3122 do that. This way we get stack_trace for free.
3124 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3127 (mono_print_unhandled_exception): invoke Message property instead of
3128 getting 'message' field from Exception. Don't allocate memory for
3129 'trace' and 'message' if not needed.
3131 2002-08-18 Dick Porter <dick@ximian.com>
3133 * unicode.c: Fix asserts to match Encoder.cs checks
3135 Fri Aug 16 21:42:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3137 * marshal.c: fix unaligned store issue and a few wrong
3138 opcode argument types.
3140 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3142 * icall.c: added GetUninitializedObjectInternal internal call.
3144 2002-08-16 Dietmar Maurer <dietmar@ximian.com>
3146 * appdomain.c (mono_runtime_invoke_in_domain): transfer Exception
3147 to the right domain.
3149 2002-08-14 Dietmar Maurer <dietmar@ximian.com>
3151 * marshal.c (mono_marshal_get_runtime_invoke): unbox value types
3153 * class.c (class_compute_field_layout): set blittable to false for Strings
3155 * appdomain.c (mono_domain_transfer_object): added support for ISerializable
3157 Wed Aug 14 17:26:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3159 * appdomain.h, reflection.c, icall.c, object.c, reflection.h:
3160 first chunk of code to create types at runtime. Code to
3161 handle ReflectedType/DeclaringType. Make reflection handles
3164 Wed Aug 14 17:24:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
3166 * class.c: set correct name in arrays.
3168 2002-08-13 Dietmar Maurer <dietmar@ximian.com>
3170 * appdomain.c (mono_domain_transfer_object): make it work with
3171 valuetypes. bug fixes.
3173 2002-08-12 Dick Porter <dick@ximian.com>
3175 * object.h: Rename some parameters to avoid c++ keywords (Patch
3176 from Joseph Wenninger <kde@jowenn.at>)
3178 Thu Aug 8 13:04:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
3180 * icall.c: added icall to implement Assembly.GetFile*.
3182 Thu Aug 8 10:18:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3184 * reflection.h, reflection.c: code to embed managed resources.
3186 Tue Aug 6 17:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3188 * class.c: move all the type size stuff into
3189 class_compute_field_layout().
3191 Tue Aug 6 11:20:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3193 * class.c: ensure enums have always the correct instance size.
3194 * unicode.c: remove wrong assert.
3196 Mon Aug 5 19:30:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
3198 * assembly.c: fix mem corruption issue.
3199 * image.h, image.c: added mono_image_get_resource () to access
3201 * icall.c: implemented Assembly.EntryPoint property and some
3202 Managed Resources related internalcalls.
3205 Mon Aug 5 18:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3207 * image.c, image.h: impemented mono_image_get_entry_point ().
3208 * appdomain.c: use mono_image_get_entry_point.
3210 Mon Aug 5 13:08:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3212 * reflection.c: support the object type argument when loading
3215 2002-08-05 Dietmar Maurer <dietmar@ximian.com>
3217 * marshal.c (mono_marshal_get_managed_wrapper): add suppport for
3218 String as return type.
3220 Fri Aug 2 21:15:42 CEST 2002 Paolo Molaro <lupus@ximian.com>
3222 * reflection.c: fix encoding of named args for custom attrs to match
3223 the ms implementation. Read them back when instantiating custom
3226 2002-08-02 Radek Doulik <rodo@ximian.com>
3228 * marshal.c (mono_mb_add_data): convert ret value to LE, suggested
3229 by Dietmar as quick fix
3230 (mono_marshal_get_delegate_begin_invoke): use sig->param_count +
3231 16 as stack size, used on more places as quick fix before Dietmar
3232 will fix it properly
3234 Fri Aug 2 17:48:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3236 * object.h, object.c: added accessors for fields and properties.
3238 Fri Aug 2 17:45:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3240 * class.c, class.h: made mono_class_get_field_from_name ()
3241 loop on parent types.
3242 Added mono_class_get_property_from_name ().
3244 Fri Aug 2 11:40:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3246 * class.c, class.h: move the code to setup the type vtable in its own
3247 function so that it can be reused also for types created at runtime.
3248 Eliminate the "class" identifier from the header file.
3249 * reflection.c: setup the vtable for enums so that we can create
3250 objects for use in SetConstant ().
3252 2002-08-02 Dietmar Maurer <dietmar@ximian.com>
3254 * marshal.c (mono_delegate_to_ftnptr): pass delegate->target
3255 instead of the delegate itself as this pointer (bug #28383)
3257 2002-08-01 Dietmar Maurer <dietmar@ximian.com>
3259 * marshal.c (mono_marshal_get_managed_wrapper): added return type
3262 Wed Jul 31 16:49:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3264 * loader.c: don't set the pinvoke bit on icalls.
3266 2002-07-31 Dietmar Maurer <dietmar@ximian.com>
3268 * debug-helpers.c (mono_method_full_name): only print a number to
3269 indicate wrapper type (so that the output is more readable in traces).
3271 2002-07-30 Dietmar Maurer <dietmar@ximian.com>
3273 * class.c (mono_class_init): include method override patch from Paolo
3275 Tue Jul 30 15:20:08 CEST 2002 Paolo Molaro <lupus@ximian.com>
3277 * icall.c: fixed GetTypeCode().
3279 2002-07-29 Dietmar Maurer <dietmar@ximian.com>
3281 * threads.c (ves_icall_System_Threading_Thread_Thread_internal):
3282 use real delegate invoke function to make it work with multicast
3283 delegates (fix bug# 28291).
3285 Fri Jul 26 11:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3287 * object.c: load constant strings.
3289 Fri Jul 26 11:36:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3291 * reflection.c: no magic numbers.
3292 * tabledefs.h: security action enum.
3294 Fri Jul 26 11:22:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3296 * assembly.c: fix possible memory corruption.
3298 Thu Jul 25 13:58:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
3300 * reflection.h, reflection.c: added support for linking resources.
3301 * verify.c: check we have an updated corlib.
3303 2002-07-25 Dietmar Maurer <dietmar@ximian.com>
3305 * marshal.c (mono_marshal_get_native_wrapper): correctly marshal
3307 (mono_marshal_string_array): null terminate unmanaged string arrays.
3308 (mono_marshal_get_managed_wrapper): print warning for arrays (not implemented)
3310 Wed Jul 24 13:32:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3312 * icall.c: Type.GetType () can now return also types from the
3315 Wed Jul 24 13:04:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3317 * loader.h, loader.c: stack walking support.
3318 * icall.c: implemented GetCurrentMethod, GetExecutingAssembly,
3321 2002-07-24 Dietmar Maurer <dietmar@ximian.com>
3323 * marshal.c: added optimisations for blittable types
3325 * class.c (mono_array_class_get): do not set blittable attribute on arrays
3326 (mono_class_setup_mono_type): set blittable attribute for single
3329 * marshal.c (mono_string_utf8_to_builder): impl.
3330 (mono_string_builder_to_utf8): impl.
3331 (mono_marshal_get_native_wrapper): impl. StringBuilder marshaling
3333 2002-07-23 Dietmar Maurer <dietmar@ximian.com>
3335 * marshal.c (mono_marshal_get_native_wrapper): impl. byref types
3336 (mono_marshal_get_managed_wrapper): impl. byref types
3338 2002-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3341 (search_method): don't display debug message.
3343 2002-07-22 Dietmar Maurer <dietmar@ximian.com>
3345 * metadata.c (mono_type_stack_size): removed temporary fix for new gcc
3347 Mon Jul 22 18:17:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3349 * appdomain.c: set the missing filename when throwing exception.
3351 2002-07-22 Dietmar Maurer <dietmar@ximian.com>
3353 * metadata.c (mono_type_size): code cleanup
3354 (mono_type_stack_size): removed some test code
3356 2002-07-21 Miguel de Icaza <miguel@ximian.com>
3358 * appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Use
3359 mono_get_exception_file_not_found now.
3361 * exception.c (mono_exception_from_name_two_strings): New version
3362 that will call a constructor with two string arguments.
3363 (mono_get_exception_file_not_found): New helper routine, used to
3364 report file-not-found errors.
3366 2002-07-20 Dick Porter <dick@ximian.com>
3369 * process.c: Pass file handles to CreateProcess
3373 * file-io.c: Implemented CreatePipe
3375 2002-07-19 Dietmar Maurer <dietmar@ximian.com>
3377 * metadata.c (mono_get_param_info): set alignment for value types
3379 Fri Jul 19 18:58:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3381 * appdomain.h, domain.c, threads-types.h: don't include config.h in headers.
3382 Constify mono_domain_assembly_open().
3383 * loader.c: handle null namespace in icalls.
3385 2002-07-19 Dietmar Maurer <dietmar@ximian.com>
3387 * marshal.c (emit_ptr_to_str_conv): marshal object as structs
3388 (emit_str_to_ptr_conv): marshal object as structs
3390 * metadata.c (mono_type_to_unmanaged): marshal object as structs
3392 * marshal.c (mono_marshal_get_runtime_invoke): support value types
3394 2002-07-18 Dietmar Maurer <dietmar@ximian.com>
3396 * marshal.c (mono_marshal_get_runtime_invoke): use exception filters
3397 (mono_marshal_get_native_wrapper): we an now return value types
3399 Wed Jul 17 18:21:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3401 * verify.c: more checks implemented.
3403 2002-07-17 Dietmar Maurer <dietmar@ximian.com>
3405 * marshal.c (mono_delegate_to_ftnptr): invoke the right method
3407 (mono_marshal_get_native_wrapper): allow byref arguments
3408 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringXXX):
3409 impl. PtrToStringXXX methods
3410 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type): impl.
3411 (ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf): impl.
3412 (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi): impl.
3413 (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni): impl.
3414 (ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure): impl.
3416 Tue Jul 16 19:00:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3418 * reflection.c: fix buglet in parsing an assembly name.
3420 2002-07-16 Dietmar Maurer <dietmar@ximian.com>
3422 * marshal.c (emit_ptr_to_str_conv): first impl.
3424 Tue Jul 16 12:39:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
3426 * object.c, class.h: cache the vtable in the class as suggested by
3427 vargaz@freemail.hu (Zoltan Varga).
3429 Tue Jul 16 11:27:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3431 * class.h, loader.c: added mono_field_from_token().
3432 * verify.c: first cut of type checking code.
3434 2002-07-16 Dietmar Maurer <dietmar@ximian.com>
3436 * marshal.c (mono_marshal_get_native_wrapper): support valuetypes
3438 2002-07-15 Dietmar Maurer <dietmar@ximian.com>
3440 * marshal.c (mono_marshal_get_native_wrapper): handle enum types
3442 (mono_marshal_get_remoting_invoke): impl.
3443 (mono_delegate_begin_invoke): impl.
3444 (mono_mb_emit_save_args): impl.
3445 (mono_delegate_end_invoke): impl.
3446 (mono_marshal_get_delegate_begin_invoke):
3447 (mono_marshal_get_delegate_end_invoke):
3448 (mono_marshal_get_delegate_invoke): generate a special name for
3449 those methods (including the signature) and associate them whith
3452 2002-07-13 Gonzalo Paniagua Javier <gonzalo@gnome-db.org>
3455 (mono_reflection_type_from_name): now it has a MonoImage parameter
3456 which is used as the default image to search the type in. If the image
3457 is NULL or getting the type from it fails, it defaults to corlib.
3459 * icall.c: changed 1 call to mono_reflection_type_from_name to match
3462 Sat Jul 13 19:32:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3464 * reflection.c: update the parameter table index.
3466 Sat Jul 13 17:34:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3468 * domain.c: don't include the mark byte in the string hash.
3470 Sat Jul 13 15:06:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3472 * icall.cs: icall for Type.GetTypeCode ().
3473 * verify: a couple of fixes and disabled local initialization checks.
3475 2002-07-12 Dietmar Maurer <dietmar@ximian.com>
3477 * marshal.c: better debugging support (DEBUG_RUNTIME_CODE)
3479 * debug-helpers.c (mono_method_full_name): print the type of the
3482 * metadata.c (mono_signature_hash): a hash function for signatures
3483 (mono_signature_hash): better hash algorithm
3485 * marshal.c (mono_marshal_get_delegate_invoke): cache methods by signature
3487 * debug-helpers.c (mono_method_full_name): this can now generate
3488 method names with signatures
3490 * marshal.c (mono_marshal_get_managed_wrapper): bug fix: unmanaged
3491 method dont have this pointers.
3493 Fri Jul 12 11:35:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
3495 * reflection.c: fixup typebuilder tokens.
3496 * image.c: fix buglet.
3497 * marshal.h: remove whitespace.
3498 * metadata.h, metadata.c: reinstate code that was removed.
3499 * verify.c: handle catch directives and fix another couple of bugs.
3501 2002-07-11 Dietmar Maurer <dietmar@ximian.com>
3503 * marshal.c (mono_marshal_get_native_wrapper): support BOOLEAN
3504 (mono_marshal_get_native_wrapper): make it comp. with the old code
3505 (mono_marshal_get_native_wrapper): support boolean
3506 (mono_marshal_get_managed_wrapper): support more types
3508 2002-06-25 Dietmar Maurer <dietmar@ximian.com>
3510 * class.c (class_compute_field_layout): compute class->blittable attribute.
3512 2002-07-09 Dick Porter <dick@ximian.com>
3514 * threads.c: Make the thread cleaning up cope with threads that
3517 2002-07-08 Radek Doulik <rodo@ximian.com>
3519 * reflection.c (method_encode_code): use non-translated values to
3520 compute finally_start, this fixes exception handling on ppc, yay!
3522 * decimal.h (struct signscale): fix endianess
3524 2002-07-07 Radek Doulik <rodo@ximian.com>
3526 * reflection.c: swap box_val and not val
3528 Mon Jul 8 15:18:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
3530 * reflection.c, reflection.h: handle full assembly info in type name.
3531 Handle Type arguments when loading custom attributes.
3532 * icall.c: updated to use new mono_reflection_type_from_name () method.
3534 2002-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3537 (method_from_memberref): also print assembly name when method not found.
3539 2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3542 (ves_icall_TypeGetProperties): fixed bug #27473.
3544 2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3546 * reflection.c: display image name and token when cannot find the
3547 .ctor for an attribute.
3549 2002-07-05 Martin Baulig <martin@gnome.org>
3551 * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3553 2002-07-04 Dick Porter <dick@ximian.com>
3555 * threads.c (mono_thread_cleanup): Nasty kludge to get this to
3556 compile on mingw. This will cause mingw builds to not wait for
3557 subthreads to terminate after the main thread does. I've lodged a
3558 bug with the mingw developers for them to wrap OpenThread().
3560 2002-07-03 Dick Porter <dick@ximian.com>
3562 * threads.c: Store thread IDs instead of handles, because
3563 GetCurrentThread() returns a pseudohandle and therefore stores
3564 useless values. mono_thread_cleanup() continues checking the
3565 array of threads until it is empty, to cope with subthreads
3566 spawning new threads after the main thread has finished.
3570 * profiler-private.h: Pass the thread ID to thread profiler
3571 functions, instead of a handle
3573 Wed Jul 3 17:43:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3575 * verify.c: fixes to make it more usable.
3576 * pedump.c: added --verify code to verify IL code in an assembly.
3578 Tue Jul 2 20:40:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3580 * reflection.c: turn errors into warnings to allow compiling corlib.
3582 Tue Jul 2 19:33:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
3584 * reflection.c: add special cases to compile corlib.
3586 Mon Jul 1 18:00:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3588 * reflection.c: handle properties with only a set method.
3590 Mon Jul 1 17:11:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
3592 * opcodes.h: add enum with opcodes in opval order.
3594 2002-07-01 Dick Porter <dick@ximian.com>
3597 * object.c (mono_runtime_run_main): Removed unneeded argument
3599 2002-06-28 Martin Baulig <martin@gnome.org>
3601 * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3603 2002-06-27 Dick Porter <dick@ximian.com>
3605 * threads.c: Store the handle in both the parent thread and in the
3606 subthread, to minimise the time between starting a new thread and
3609 2002-06-26 Dick Porter <dick@ximian.com>
3611 * appdomain.c (mono_runtime_cleanup): Close the socket library
3612 after all the threads have finished, not before
3614 2002-06-26 Martin Baulig <martin@gnome.org>
3616 * debug-symfile.c (mono_debug_find_source_location): Added
3617 `guint32 *line_number' argument. If it's not NULL, store the line number
3618 there and return the file name without the line number.
3620 2002-06-25 Dick Porter <dick@ximian.com>
3624 * process.c: Process forking and other support functions
3626 2002-06-25 Dick Porter <dick@ximian.com>
3628 * image.c (do_mono_image_open): Set ref_count to 1, so that bad
3629 things dont happen when the image is closed.
3630 (mono_image_lookup_resource): Walk the resource section looking
3631 for a particular entry
3633 * cil-coff.h: PE resource section decoding
3635 2002-06-25 Dick Porter <dick@ximian.com>
3639 (mono_assembly_foreach): Accessor functions to walk the list of
3641 (mono_assembly_set_main):
3642 (mono_assembly_get_main): Process methods need to know which
3643 assembly is the "main" one
3645 * object.c (mono_runtime_run_main): Record the main assembly
3647 * debug-helpers.c: Fix typo
3649 2002-06-24 Dietmar Maurer <dietmar@ximian.com>
3651 * icall.c (ves_icall_System_Runtime_InteropServices_Marshal_copy_to_unmanaged): impl.
3652 (ves_icall_System_Runtime_InteropServices_Marshal_copy_from_unmanaged): impl.
3654 Sat Jun 22 11:37:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3656 * icall.c: fix off-by-one in Assembly.GetTypes() reported by bob@karr.ath.cx.
3658 2002-06-21 Miguel de Icaza <miguel@ximian.com>
3660 * image.c (do_mono_image_open): Initialize reference count,
3661 otherwise we leak the MonoImage.
3663 Fri Jun 21 19:16:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3665 * reflection.c: small tweak to handle self-hosting.
3667 Thu Jun 20 23:28:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
3669 * reflection.c: fix type name parse code.
3671 Thu Jun 20 19:24:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3673 * reflection.c: break out of the loop.
3674 * image.c: special case corlib.
3676 Thu Jun 20 16:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3678 * reflection.c: add all the custom attrs at the end to ensure the
3679 ctors have been properly initialized when the attributes are defined
3680 in the current assembly.
3682 Thu Jun 20 13:46:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3684 * reflection.c: handle correctly multiple-nested types.
3686 Thu Jun 20 11:49:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
3688 * row-indexes.h: fix typos.
3689 * reflection.c: adjust for typos and fix method_def_or_ref
3690 encoding in MethodImpl table.
3692 Wed Jun 19 21:57:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3694 * reflection.c: fix entry point patching (thanks Serge!).
3696 2002-06-18 Dietmar Maurer <dietmar@ximian.com>
3698 * verify.c: add check for System.Exception
3700 Mon Jun 17 20:23:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3702 * image.c, class.c: minifix for code just c&p'ed.
3703 * reflection.c: warning fix.
3704 * object.h, loader.h, domain.c: load also StringBuilder.
3706 Mon Jun 17 17:29:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3708 * marshal.h, marshal.c: some support code to handle complex marshaling.
3710 Mon Jun 17 16:32:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3712 * class.h, class.c, reflection.c: handle ignorecase in GetType ().
3713 Better signatures with vtable error dump.
3715 Mon Jun 17 16:13:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
3717 * reflection.c, reflection.h, icall.c: fixes for multiple-nested types.
3719 2002-06-17 Dietmar Maurer <dietmar@ximian.com>
3721 * icall.c (ves_icall_Type_GetField): impl.
3723 Mon Jun 17 16:08:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3725 * metadata.h, metadata.c: added mono_metadata_get_marshal_info()
3726 to retrieve a marshal description blob for a field or param.
3728 Mon Jun 17 14:57:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3730 * reflection.h, reflection.c: change order of nested type emission
3731 to avoid table corruption. The NestedTypes table is sorted.
3732 * icall.c: change order of GetConstructor results to workaround mcs bug.
3734 Fri Jun 14 16:24:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3736 * reflection.h, reflection.c: handle field and param marshal
3739 Wed Jun 12 16:30:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3741 * icall.c, marshal.c marshal.h: more Marshal class implementation.
3743 Tue Jun 11 17:29:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3745 * reflection.c: fix call convention.
3747 Tue Jun 11 16:52:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3749 * reflection.h, reflection.c: mono_image_get_memberref_token()
3750 takes a type instead of a class, now. Added
3751 mono_image_get_array_token() to create tokens for the special
3752 multi-dim array methods.
3754 Tue Jun 11 13:21:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
3756 * assembly.c: handle modules (no assembly table). Split
3757 loading references in its own function.
3758 * class.c: handle moduleref resolution scope.
3759 * image.c, image.h: cache module name in image.
3761 2002-06-07 Martin Baulig <martin@gnome.org>
3763 * reflection.c (mono_image_get_type_info): Only add a class layout entry
3764 if we actually have a `tb->class_size' (ie. it's not UnspecifiedTypeSize).
3766 Fri Jun 7 22:07:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3768 * icall.c: more signature fixes that used uint instead of int.
3770 Fri Jun 7 20:41:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3772 * reflection.c: fixed signature of field refs.
3774 Fri Jun 7 19:41:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3776 * class.c, reflection.c: handle typerefs of nested types
3777 (both on read and when writing files).
3779 Fri Jun 7 17:46:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
3781 * icall.c: fix method signatures that tried to workaround the previous
3784 Fri Jun 7 17:36:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
3786 * debug-helpers.c: fix typo.
3788 Fri Jun 7 17:00:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
3790 * cil-coff.h, icall.c, image.c, reflection.c, reflection.h:
3791 rewrote the PE/COFF writing code (our programs are understood by the
3794 Tue Jun 4 18:10:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3796 * gc.c, gc.h, icall.c: weakreference support.
3798 Tue Jun 4 16:06:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3800 * Makefile.am, mono-config.c: use $(sysconfdir).
3802 Mon Jun 3 13:13:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3804 * icall.c: changed default precision of Double.ToString() to 15.
3805 Fixed memory leak. Unified with Single.ToString.
3807 Sat Jun 1 14:26:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
3809 * sysmath.c: workaround systems missing NAN and/or HUGE_VAL.
3811 Sat Jun 1 13:46:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
3813 * pedump.c, appdomain.c, appdomain.h, assembly.c, domain.c,
3814 gc.c, icall.c, image.c, mono-config.c, reflection.c: killed
3815 warnings and compilation fixes from Dennis Haney (davh@davh.dk)
3818 Fri May 31 16:58:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3820 * debug-symfile.c, sysmath.c: yet more compilation fixes.
3822 Fri May 31 16:35:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3824 * reflection.c, socket-io.c: more compilation fixes.
3826 Fri May 31 15:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3828 * appdomain.c, class.c, class.h, debug-symfile.c, decimal.c,
3829 domain.c, loader.c, object.c, object.h, reflection.c, string-icalls.h,
3830 unicode.c: warning and compiler compatibility fixes.
3832 Fri May 31 15:36:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
3834 * class.h, metadata.c: fixed warnings/compilation errors.
3836 Fri May 31 13:08:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3838 * Makefile.am, mono-config.c, mono-config.h: configuration file
3840 * loader.c, loader.h: make Dll mapping configurable at runtime in the
3841 config file. Export methods to insert and lookup mappings.
3843 Fri May 31 12:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
3845 * reflection.c: handle types and boxed objects in custom attr
3848 2002-05-30 Martin Baulig <martin@gnome.org>
3851 (ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token): Removed.
3853 Thu May 30 14:15:02 CEST 2002 Paolo Molaro <lupus@ximian.com>
3855 * metadata.c, metadata.h: added mono_metadata_implmap_from_method()
3856 to lookup the implmap row for a P/Invoke method.
3857 * loader.c: added mono_lookup_pinvoke_call(): we only lookup a
3858 P/Invoke method from the runtime on an as needed basis.
3860 2002-05-28 Dietmar Maurer <dietmar@ximian.com>
3862 * metadata.c (mono_metadata_parse_signature): impl.
3864 Tue May 28 16:02:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3866 * class.c: handle .pack directive.
3868 Tue May 28 11:04:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
3870 * object.c: initialize static fields with RVA data.
3872 2002-05-25 Martin Baulig <martin@gnome.org>
3875 (ves_icall_Debugger_DwarfFileWriter_get_type_token): Removed.
3877 2002-05-24 Martin Baulig <martin@gnome.org>
3880 (ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig): Removed.
3881 (ves_icall_Debugger_MonoSymbolWriter_method_from_token): Renamed to
3882 `ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token'.
3884 Thu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
3886 * object.c: special case string ctros in invoke.
3887 * gc.c: silly whitespace changes.
3889 2002-05-23 Dietmar Maurer <dietmar@ximian.com>
3891 * threadpool.[ch]: impl. a threadpool that can
3892 be used by mint and mono.
3894 2002-05-22 Martin Baulig <martin@gnome.org>
3896 * debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
3897 The first argument is now a `MonoReflectionModuleBuilder *', the return
3898 value is a `MonoReflectionModuleBuilder *'. Use the AssemblyBuilder's
3899 `methods' field to get the method builder. The `token' argument is the
3902 * unicode.c (iconv_get_length, iconv_convert): Silently ignore all
3903 invalid characters instead of g_assert_not_reached()ing. This seems
3904 to be the behaviour of mscorlib.
3906 2002-05-22 Dietmar Maurer <dietmar@ximian.com>
3908 * object.c (mono_runtime_invoke_array): applied patch from Rachel
3909 Hestilow to fix bug #25104
3911 2002-05-21 Martin Baulig <martin@gnome.org>
3913 * debug-symfile.c (mono_debug_find_source_location): New function.
3914 Looks up an IL offset in the line number table and returns the source
3915 location as a string.
3917 2002-05-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3920 (mono_double_ToStringImpl): changed %f by %g until we have something
3923 2002-05-21 Nick Drochak <ndrochak@gol.com>
3925 * icall.c : Use different name for Math.Pow's icall. Needed to check
3926 parameters first in C#.
3928 Mon May 20 17:36:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3930 * icall.c, reflection.h: added icall to get info about an event.
3932 2002-05-20 Radek Doulik <rodo@ximian.com>
3934 * object.c (mono_value_box): don't use memcpy for boxing on BIG
3936 (mono_value_box): don't use memcpy for small sizes on
3937 architectures with unaligned access
3939 2002-05-20 Martin Baulig <martin@gnome.org>
3941 * reflection.c (mono_reflection_setup_internal_class): Don't crash
3942 if `tb->parent == NULL'.
3943 (mono_reflection_create_internal_class): New function. This is
3944 called from TypeBuilder.CreateType() and sets `klass->enum_basetype'
3947 * icall.c ("System.Reflection.Emit.TypeBuilder::create_internal_class"):
3950 2002-05-19 Martin Baulig <martin@gnome.org>
3952 * unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
3953 argument to get the length, don't default to the array length.
3955 2002-05-18 Miguel de Icaza <miguel@ximian.com>
3957 * assembly.c (mono_assembly_setrootdir): New function used to
3958 override the MONO_ASSEMBLIES directory.
3960 Fri May 17 20:39:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
3962 * icall.c: ValueType_GetHashCode() initialize local var.
3964 Thu May 16 17:20:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3966 * reflection.c: sort custom attributes table.
3968 Thu May 16 16:08:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
3970 * reflection.c: support named args in custom attributes (write support).
3972 Thu May 16 13:04:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
3974 * reflection.c: fix finally position calculation.
3976 2002-05-15 Radek Doulik <rodo@ximian.com>
3978 * reflection.c: fixed endianess at many places
3980 * icall.c (ves_icall_InitializeArray): comment out debug msg
3982 2002-05-15 Dietmar Maurer <dietmar@ximian.com>
3984 * object.c (mono_unhandled_exception): new function to handle
3985 unhandled exceptions.
3986 (mono_unhandled_exception): call the UnhandledException event.
3987 (mono_runtime_delegate_invoke): impl.
3989 Wed May 15 15:59:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
3991 * metadata.h, metadata.c, class.c: mono_metadata_field_info ()
3992 returns the RVA, not the direct pointer to the data. Handle the case
3993 when the class size is fixed.
3995 Tue May 14 16:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3997 * reflection.c: fix some endianess issues.
3999 2002-05-14 Dietmar Maurer <dietmar@ximian.com>
4001 * object.c (mono_runtime_invoke): is now able to catch exceptions.
4003 * threads.c (mono_thread_init): added a callback which is invoked
4006 2002-05-14 Dan Lewis <dihlewis@yahoo.co.uk>
4008 * icall.c: make GetHashCode return non-negative values.
4010 2002-05-14 Dan Lewis <dihlewis@yahoo.co.uk>
4012 * object.c, icall.c, gc.c: revert to address-based hashcode.
4014 2002-05-13 Miguel de Icaza <miguel@ximian.com>
4016 * icall.c (mono_double_ParseImpl): Added ParseImpl method.
4018 Mon May 13 16:40:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
4020 * icall.c, class.c: special case <Module>.
4022 2002-05-13 Dan Lewis <dihlewis@yahoo.co.uk>
4024 * icall.c: fix bug in GetNow().
4026 2002-05-11 Dietmar Maurer <dietmar@ximian.com>
4028 * object.c (mono_runtime_class_init): make sure that we call all
4029 static class constructors.
4031 Fri May 10 18:14:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
4033 * reflection.c: sort methodsemantics table.
4035 Fri May 10 16:31:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
4037 * reflection.h, reflection.c: honour init locals setting.
4039 Thu May 9 18:50:00 EDT 2002 Daniel Morgan <danmorg@sc.rr.com>
4041 * icall.c: copied Double ToStringImpl for Single ToStringImpl
4043 Wed May 8 12:28:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
4045 * reflection.c: support ContructorBuilders in attribute blob creation.
4047 Wed May 8 12:06:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4049 * reflection.c: some changes to build a binary that can be run
4050 directly in windows.
4052 Mon May 6 13:10:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
4054 * loader.c: print a big message when an icall can't be found.
4056 2002-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4058 * string-icalls.c: fix bug 24248.
4060 Sat May 4 14:03:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
4062 * appdomain.c, appdomain.h, assembly.c, assembly.h, image.h,
4063 icall.c, reflection.h: separate assembly loading by pathname and by
4064 assembly name. Use the MONO_PATH env var to search for assemblies.
4066 Thu May 2 17:56:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
4068 * assembly.c, image.h: add some support for assemblies
4069 with multiple modules.
4070 * class.c, class.h: export mono_class_from_typeref().
4071 * loader.c: remove duplicated code and use mono_class_from_typeref(),
4074 Thu May 2 15:51:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4076 * unicode.c: Char.IsNumber doesn't include hex digits as the ms
4077 documentation says (the ECMA one is correct).
4079 2002-05-02 Dick Porter <dick@ximian.com>
4081 * threads.c: Use GC_debug_register_finalizer with GC_debug_malloc.
4082 Don't name the synchronisation mutex.
4084 2002-04-30 Jeffrey Stedfast <fejj@ximian.com>
4087 (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetBytes):
4088 Make the prototypes match.
4089 (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetNonZeroBytes):
4093 (ves_icall_System_CurrentTimeZone_GetTimeZoneData): Fixed for
4094 systems that use 'timezone' rather than tm.tm_gmtoff. Also, not
4095 all systems have tm.tm_zone, so use strftime() with %Z to print
4096 the timezone abreviation into a temp string.
4098 * object.c (mono_ldstr): Fixed to use mono_string_chars() macro
4099 rather than mono_array_addr() on a MonoString on Big Endian
4102 2002-04-30 Dietmar Maurer <dietmar@ximian.com>
4104 * string-icalls.c (ves_icall_System_String_InternalReplace_Str):
4107 2002-04-30 Dick Porter <dick@ximian.com>
4109 * socket-io.c: Cope with SOCKET being an integer rather than a
4112 * threads.c: Added Thread_free_internal, to deal with thread
4113 handle cleanup. Moved calls to handle_store() and handle_remove()
4114 to start_wrapper(), so each can only be called once. Allocate
4115 synchronisation blocks with GC_malloc(), and use GC finalisation
4116 to close the handles.
4118 * icall.c: added System.Threading.Thread::Thread_free_internal
4120 Mon Apr 29 15:33:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4122 * icall.c: support Environment.Exit, CommandLineArgs().
4124 Mon Apr 29 15:15:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
4126 * object.c, object.h: added mono_runtime_run_main () and
4127 mono_runtime_get_main_args () for use in System.Environment.
4129 Mon Apr 29 13:45:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4131 * gc.c: fix thinko, enable actual finalization since the jit is now
4134 Mon Apr 29 12:47:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4136 * gc.c, object.c: take into account that an object may be offset wrt the address
4137 returned by GC_malloc().
4139 Mon Apr 29 12:14:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
4141 * image.c: handle files without entries in the assembly table (modules).
4143 2002-04-28 Patrik Torstensson <patrik.torstensson@intel.com>
4145 * reflection.c (mono_reflection_setup_internal_class): remove g_assert_not_reached() to allow
4146 mcs selfhosting again (build breaker) and did move the check to class instead. parent is
4147 allowed to be null when it's System.Object class setup.
4149 2002-04-27 Martin Baulig <martin@gnome.org>
4151 * reflection.c (mono_reflection_setup_internal_class): g_assert_not_reached()
4152 if `tb->parent == NULL' rather than crashing.
4154 2002-04-28 Nick Drochak <ndrochak@gol.com>
4156 * sysmath.c (ves_icall_System_Math_Asin): Fix copy-paste error. Was
4157 calling acos() where asin() should have been called.
4159 2002-04-26 Martin Baulig <martin@gnome.org>
4161 * assembly.c (default_assembly_name_resolver): Use G_FILE_TEST_IS_REGULAR
4162 instead of G_FILE_TEST_EXISTS - if you're in mcs/class/corlib/System/Test,
4163 there's a subdirectory called `System', but we don't want to read that
4164 subdirectory as an assembly.
4166 2002-04-25 Martin Baulig <martin@gnome.org>
4168 * debug-symfile.c: Reflect latest MonoString changes.
4170 Thu Apr 25 16:38:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
4172 * rand.c, rand.h: instance method icalls need to have an explicit
4173 this pointer as first argument in the C implementation.
4175 2002-04-25 Nick Drochak <ndrochak@gol.com>
4177 * icall.c: Fix typo in map for GetNonZeroBytes
4179 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4181 * string-icalls.c : String does now passes unit tests without any
4182 errors, the following changes has been made:
4184 Implemented replace methods.
4185 Renaming of methods to (try) follow the standard.
4186 Fixed compare ordinal
4187 Made all memory allocated directly to function instead of via icall function.
4188 Small performance fix in is_in_array function
4190 (2002-04-23) Changes from Duncan Mak <duncan@ximian.com>
4192 c (mono_string_Internal_ctor_charp_int_int):
4193 (mono_string_Internal_ctor_sbytep_int_int): Removed check for
4194 sindex < 0, throw ArgumentOutOfRangeException instead of
4195 ArgumentNullException.
4197 Added new check for length == 0, however
4198 I need to make it return String.Empty from the C code.
4200 (mono_string_Internal_ctor_sbytep): Use mono_string_new, and let
4201 that calculate the length for us here.
4203 (mono_string_Internal_ctor_sbytep_int_int): Replaced
4204 mono_string_new_utf16 with mono_string_new, since value is utf8.
4206 Wed Apr 24 18:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4208 * object.c: register the object for finalization if needed.
4209 Allocate one more char in the string for the terminating 0 char.
4211 Wed Apr 24 18:22:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4213 * class.c, class.h, image.c: check if a type implemenst a destructor.
4214 Use the proper key for array class lookups.
4215 * icall.c: register the icalls in the System.GC class.
4216 * gc.c, gc.h: GC-related functions and icalls.
4218 2002-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4222 * unicode.c: free some strings gotten from mono_string_to_utf8 and
4223 changed a couple of free () by g_free ().
4225 * decimal.c: one-liner in the comments for decimal2string ().
4227 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4229 * object.c (mono_runtime_invoke_array) : Bug because of my incompetence.
4231 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4233 * reflection.c (mono_reflection_get_custom_attrs) : fixed image bug (crash)
4234 * object.c (mono_runtime_invoke_array) : handle null in params
4236 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4238 * string-icalls.c: fixed bug in split (one off bug)
4240 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4242 * string-icalls.c: fixed bug in remove and lastindexofany, add equals icall.
4243 * icalls.c: added String::Equals as internal method
4245 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4247 * threads.c: fixed bug in the double interlocked functions
4249 2002-04-22 Patrik Torstensson <patrik.torstensson@labs2.com>
4251 * threads.c: implemented all of the new interlocked icalls.
4252 * string-icalls.c: fix a bug in insert.
4253 * icalls.c: added the icalls for interlocked, removed old string functions.
4255 Mon Apr 22 19:44:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4257 * loader.c: fix off-by-one error when reading argument names.
4259 Mon Apr 22 19:28:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4261 * profiler.c: win32 counter implementation (untested).
4262 * icall.cs: win32 GetNow() and GetTimeZoneData() implementations
4263 (the latter needs testing and more complete impl. from win32 folks).
4265 2002-04-21 Dan Lewis <dihlewis@yahoo.co.uk>
4267 * object.c: mono_array_new_full workaround mono_array_class_get
4270 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4272 * string-icalls.c (mono_string_InternalRemove): Fixed overwrite bug.
4273 * object.h (mono_string_chars): Changed casting type.
4275 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4277 * string-icalls.c: Fixed trim method, added the constructors done by Duncan, fixed
4278 method signatures to use gunichar2 instead of gint16.
4280 2002-04-20 Dan Lewis <dihlewis@yahoo.co.uk>
4282 * object.h, object.c: domain-specific versions of mono_object_new and
4285 2002-04-20 Dietmar Maurer <dietmar@ximian.com>
4287 * object.c: changed String layout
4289 * string-icalls.c (mono_string_Internal_ctor_chara): added
4290 internal string constructors.
4292 Sat Apr 20 13:33:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
4294 * threads.c: pass 'this' to the thread start routine.
4296 2002-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4298 * string-icalls.c: fix IndexOf and LastIndexOf. Now
4299 InternalCompareStr don't call twice mono_string_cmp_char for the last
4300 character. Improved performance in mono_string_cmp_char.
4302 Fri Apr 19 19:26:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
4304 * Makefile.am, appdomain.c, class.c, object.c: split runtime-depended
4305 code into its own library: libmonoruntime.
4307 2002-04-19 Dan Lewis <dihlewis@yahoo.co.uk>
4309 * object.h, object.c: changed array format so that szarrays do not
4310 require a bounds structure.
4311 * icall.c, appdomain.c: support for new szarray format.
4313 Fri Apr 19 18:04:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
4315 * metadata.c: compare also the retuns type when comparing signatures:
4316 we didn't do this as an optimization since really overloaded methods
4317 must differ also in the arguments, but this doesn't work with
4318 low-level IL code (or when using explicit conversion operators: see
4319 bug#23498 for an example).
4321 Fri Apr 19 16:14:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
4323 * loader.c: SZARRAY types can be saved as TYPESPEC, too.
4325 Thu Apr 18 17:15:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
4327 * icall.c: make MonoType::GetElementType its own icall.
4329 Thu Apr 18 16:41:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
4331 * icall.c: remove MonoMethod_get_Name().
4332 * reflection.c, reflection.h, verify: cache the method name in the MonoMethod
4335 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4337 * string-icalls.c: optimized a few methods.
4339 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4341 * icall.c: added all new string internal calls
4342 * string-icalls.c: added, new string internal call implementation.
4343 * object.c: added mono_string_new_size for allocating a string a size
4345 2002-04-17 Dietmar Maurer <dietmar@ximian.com>
4347 * object.c (mono_object_isinst): use the same code as in the
4348 optimized x86 version.
4350 Wed Apr 17 14:14:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4352 * profiler.c: TSC-based timer code (faster and more accurate).
4353 Not hooked up in configure, yet (set USE_X86TSC to 1).
4355 Wed Apr 17 12:33:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
4357 * profiler.c, profiler.h: track time spent compiling methods.
4358 * threads.c: track thread creation/destruction.
4360 Tue Apr 16 20:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
4362 * profiler.c, profiler.h, profiler-private.h: profiling interface
4363 and sample implementation. Moved here so that it can be used also by
4366 Tue Apr 16 12:58:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
4368 * reflection.c, reflection.h: keep types and other handles separate in
4369 the hash tables for referred tokens. Add guid for modules.
4371 Mon Apr 15 11:37:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
4373 * assembly.c: fix bugs found with valgrind.
4374 * metadata.h, metadata.c: added mono_metadata_guid_heap().
4376 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
4378 * threads: added icall support for getting current domain for
4381 2002-04-13 Martin Baulig <martin@gnome.org>
4383 * debug-symfile.h (MonoDebugLocalInfo): Renamed to MonoDebugVarInfo.
4384 (MonoDebugVarInfo): Added `index' field for register based addresses.
4385 (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 9.
4386 (MonoDebugMethodInfo): Replaced `guint32 *param_offsets' with
4387 `MonoDebugVarInfo *params' and `guint32 this_offset' with
4388 `MonoDebugVarInfo *this_var'.
4390 * debug-symfile.c (relocate_variable): New static function to write
4391 a location description for a local variable or method parameter.
4393 2002-04-12 Martin Baulig <martin@gnome.org>
4395 * debug-symfile.h (MonoDebugLocalInfo): New type. This contains the
4396 stack offset and begin/end scope address of a local variable.
4397 (MonoDebugMethodInfo): Replaced `guint32 *local_offsets' with
4398 'MonoDebugLocalInfo *locals', added `prologue_end' and `epilogue_begin'.
4399 (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 8.
4401 * debug-symfile.c (MRT_variable_start_scope, MRT_variable_end_scope):
4402 Added new relocation types for start/end scope of a local variable.
4404 Fri Apr 12 18:30:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4406 * object.h: add mono_object_domain() macro.
4407 * reflection.c: handle typespecs.
4408 * icall.c: MonoMethod::get_Name() implementation.
4410 Thu Apr 11 12:29Ni:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4412 * icall.c: String::GetHashCode() icall implementation.
4414 Wed Apr 10 21:16:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4416 * icall.c: String::IndexOfAny icall.
4417 * object.c, object.h: make array->max_length more useful.
4418 Intrduced mono_object_class() and mono_string_length() macros.
4420 2002-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4422 * unicode.c (ves_icall_System_Char_IsNumber): use g_unichar_isxdigit
4423 instead of g_unichar_isdigit.
4425 2002-04-11 Nick Drochak <ndrochak@gol.com>
4427 * icall.c: Implement a simple Double.ToString().
4429 Tue Apr 9 21:31:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4431 * appdomain.h: only io-layer.h is supposed to be included.
4432 * icall.c: explicitly import environ. Fix warning.
4434 2002-04-10 Nick Drochak <ndrochak@gol.com>
4436 * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData) :
4437 return true even if it's not Daylight Savings time.
4438 Only return false for the case where the function isn't
4439 implemented for a plaform (read Windows).
4441 Tue Apr 9 13:05:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4443 * appdomain.h, appdomain.c, class.c, object.c: protect MonoDomain
4446 2002-04-09 Dietmar Maurer <dietmar@ximian.com>
4448 * mempool.c (mono_mempool_alloc): only use g_malloc when
4449 absolutely necessary.
4451 2002-04-08 Dietmar Maurer <dietmar@ximian.com>
4453 * mempool.c (MEM_ALIGN): hardcode MEM_ALIGN to 8
4455 * class.c (mono_class_vtable): use domain mempool to allocate vtable
4456 (mono_class_proxy_vtable): use domain mempool
4458 Mon Apr 8 17:17:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
4460 * appdomain.h, appdomain.c: split initialization that requires the
4461 execution engine support into mono_runtime_init().
4463 2002-04-08 Dietmar Maurer <dietmar@ximian.com>
4465 * class.c (mono_class_init): don't include vtable inside MonoClass
4466 to save some memory, gather some statistics.
4467 (mono_class_vtable): use g_malloc instead of GC_malloc when possible
4469 Sat Apr 6 20:07:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4471 * icall.c: internalcall implementation for ValueType.Equals().
4473 2002-04-06 Dietmar Maurer <dietmar@ximian.com>
4475 * object.c (mono_message_init): moved
4476 (mono_runtime_exec_main): new arch. independent impl.
4477 (mono_runtime_invoke_array): new method - like
4478 mono_runtime_invoke, but you can pass an array of objects.
4479 (mono_remoting_invoke): new arch. independent impl.
4480 (mono_message_invoke): new arch. independent impl.
4481 (mono_runtime_class_init): new arch. independent impl.
4482 (mono_runtime_object_init): new arch. independent impl.
4484 Fri Apr 5 18:29:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4486 * metadata.c, object.c, reflection.c: documented the exported
4489 Fri Apr 5 15:42:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
4491 * icall.c: simpler code to pass the assembly builder data to corlib.
4492 Implement GetNestedTypes() internalcall.
4494 Thu Apr 4 21:46:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4496 * class.c: warn if a type can't be loaded.
4498 2002-04-04 Dietmar Maurer <dietmar@ximian.com>
4500 * image.h: typedef MonoImageOpenStatus
4501 * types.h: removed unused file
4503 2002-04-04 Dan Lewis <dihlewis@yahoo.co.uk>
4505 * icall.c: Enum_ToObject accepts enum value arguments.
4507 Thu Apr 4 11:35:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
4509 * class.c: move initialization of properties, events and nested
4510 classes, so that they happen for interfaces, too.
4512 Wed Apr 3 20:03:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
4514 * icall.c: cleanup some ugly casts in Array_SetValue*.
4516 Wed Apr 3 19:49:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
4518 * icall.c: the values array fro enums is of the correct type, now.
4519 Implement (correctly) getFullName instead of assQualifiedName for
4521 * reflection.h, reflection.c: added mono_type_get_name ().
4523 Wed Apr 3 17:56:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
4525 * assembly.c, image.h: for each MonoImage, record from wich assembly
4527 * reflection.h, icall.c: added System_Reflection_Assembly_GetTypes().
4528 Make Type.Assembly work.
4530 2002-04-03 Dietmar Maurer <dietmar@ximian.com>
4532 * debug-symfile.h: use char* instead of gpointer to avoid
4535 * appdomain.c (mono_jit_info_table_find): use char* instead of gpointer
4537 * icall.c (ves_icall_InternalExecute): impl. FielSetter
4538 (ves_icall_System_Array_SetValueImpl): removed strange MonoArray cast
4540 2002-03-30 Dietmar Maurer <dietmar@ximian.com>
4542 * icall.c (mono_message_init): impl. (code cleanup)
4543 (ves_icall_InternalExecute): impl. FieldGetter
4545 * class.c (mono_class_init): added exerimental EXT_VTABLE_HACK, if
4546 defined we call all (non-static)methods through the vtable.
4548 Fri Mar 29 18:09:08 CET 2002 Paolo Molaro <lupus@ximian.com>
4550 * class.c: it seems GC_debug_malloc() makes the Boehm GC call the
4551 finalizer even though the memory is still referenced (and the chunk of
4552 memory is not freed).
4554 Fri Mar 29 17:43:04 CET 2002 Paolo Molaro <lupus@ximian.com>
4556 * assembly.c: fix brokeness.
4558 Fri Mar 29 16:09:54 CET 2002 Paolo Molaro <lupus@ximian.com>
4560 * class.c: kill some warnings. Check explicit interface method
4561 implementation also without considering the namespace.
4562 Load also literal strings in static class data.
4564 2002-03-29 Miguel de Icaza <miguel@ximian.com>
4566 * assembly.c (default_assembly_name_resolver): Kill memory leak.
4567 (default_assembly_name_resolver): Make the resolver take the
4568 "base" directory where the assembly was originally defined, so we
4569 can load DLLs that are in the same directory as the assembly that
4570 is being referenced.
4572 2002-03-28 Dick Porter <dick@ximian.com>
4578 * unicode.c: Warning cleanups
4580 Thu Mar 28 18:06:14 CET 2002 Paolo Molaro <lupus@ximian.com>
4582 * object.h, reflection.h: use the correct type instead of MonoObject.
4584 2002-03-28 Martin Baulig <martin@gnome.org>
4586 * debug-symfile.c (mono_debug_class_get): Don't look in referenced assemblies.
4587 (mono_debug_update_symbol_file): Initialize classes if necessary.
4589 Thu Mar 28 15:58:43 CET 2002 Paolo Molaro <lupus@ximian.com>
4591 * assembly.c, debug-helpers.c, image.c, image.h, metadata.c, pedump.c,
4592 rawbuffer.c, reflection.c, verify.c: mare warning cleanups.
4594 Thu Mar 28 15:20:39 CET 2002 Paolo Molaro <lupus@ximian.com>
4596 * assembly.h: fix function prototype.
4597 * metadata.h, metadata.c, object.h, private.h: get rid of warnings.
4598 * mono-endian.h: use const cast.
4600 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
4602 * icall.c (ves_icall_MonoMethodMessage_InitMessage): moved from message.c
4604 Thu Mar 28 12:32:00 CET 2002 Paolo Molaro <lupus@ximian.com>
4606 * loader.c: don't assert when a typeref can't be loaded, give
4607 a chance to the runtime to trow an exception instead.
4608 * loader.h: fix warning.
4610 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
4612 * class.c (mono_class_proxy_vtable): added proxy support
4614 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
4616 * icall.c: removed last of PAL calls, added System.Environment
4617 * file-io.h, file-io.c: MonoIO implementation
4618 * object.h, object.c: mono_string_to_utf16() now returns gunichar2*
4620 Tue Mar 26 19:56:10 CET 2002 Paolo Molaro <lupus@ximian.com>
4622 * appdomain.c: do not use the byte marker in ldstr table lookup.
4623 * debug-helpers.c: allow two ':' to separate class and method name.
4624 * object.c: allocate arrays bounds with the GC, too.
4625 * verify: add a few more checks.
4627 Tue Mar 26 18:45:46 CET 2002 Paolo Molaro <lupus@ximian.com>
4629 * reflection.c: output also literal strings. Allocate parameter data
4630 with GC_malloc() (thanks, Martin, for catching this!).
4632 2002-03-26 Martin Baulig <martin@gnome.org>
4634 * debug-symfile.h (MonoDebugMethodInfo): Added `this_offset', don't
4635 include the `this' offset in the `param_offsets'.
4637 2002-03-25 Martin Baulig <martin@gnome.org>
4639 * debug-symfile.c (mono_debug_update_symbol_file): Use a new
4640 mono_debug_get_class() function to get the classes. Added new
4641 relocation types for arrays and strings.
4642 (mono_debug_get_class): New static function to search in all
4643 referenced assemblies for a metadata token.
4645 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 7.
4647 Mon Mar 25 13:08:18 CET 2002 Paolo Molaro <lupus@ximian.com>
4649 * reflection.h, reflection.c: use a gc-safe hash for hash tables that
4650 hold gc-allocated objects. Make the string heap a stream like the
4651 others. Removed duplicated code when writing stream info.
4652 Added asserts to catch possible buffer overflows. Set the sorted map
4653 for tables that need sorting. Added some documentation.
4655 Mon Mar 25 13:04:56 CET 2002 Paolo Molaro <lupus@ximian.com>
4657 * appdomain.h, appdomain.c, class.c, object.c: use a GC-safe hash table
4658 for interned strings and vtables.
4660 2002-03-24 Martin Baulig <martin@gnome.org>
4662 * icall.c (ves_icall_Type_GetFields): Reverse the list before storing
4663 it in the array since it was created with g_slist_prepend().
4665 2002-03-24 Martin Baulig <martin@gnome.org>
4667 * debug-symfile.c (mono_debug_local_type_from_signature): Renamed
4668 to ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig().
4669 (mono_debug_method_from_token): Renamed to
4670 ves_icall_Debugger_MonoSymbolWriter_method_from_token().
4671 (ves_icall_Debugger_DwarfFileWriter_get_type_token): New interncall.
4673 * debug-symfile.c (MRT_type_sizeof, MRT_type_field_offset): New
4676 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 6.
4678 2002-03-24 Martin Baulig <martin@gnome.org>
4680 * debug-symfile.c (mono_debug_local_type_from_signature): New func.
4681 (mono_debug_method_from_token): New func.
4683 * icall.c (Mono.CSharp.Debugger.MonoSymbolWriter::get_local_type_from_sig):
4684 New interncall, calls mono_debug_local_type_from_signature().
4685 (Mono.CSharp.Debugger.MonoSymbolWriter::get_method): New interncall,
4686 calls mono_debug_method_from_token().
4688 2002-03-23 Martin Baulig <martin@gnome.org>
4690 * unicode.c (ves_icall_iconv_get_char_count): The `count' argument
4691 specifies the number of bytes to be converted, not the array size.
4692 Return the number of chars, not the number of bytes.
4693 (ves_icall_iconv_get_chars): The `byteCount' argument
4694 specifies the number of bytes to be converted, not the array size.
4696 2002-03-23 Martin Baulig <martin@gnome.org>
4698 * reflection.h (MonoReflectionSigHelper): New type.
4700 * reflection.c (mono_reflection_sighelper_get_signature_local),
4701 (mono_reflection_sighelper_get_signature_local): New functions.
4703 * icall.c (System.Reflection.Emit.SignatureHelper::get_signature_local),
4704 (System.Reflection.Emit.SignatureHelper::get_signature_field): New
4707 2002-03-23 Martin Baulig <martin@gnome.org>
4709 * rawbuffer.c (mono_raw_buffer_load_mmap): Use MAP_SHARED when
4710 is_writeable is set.
4711 (mono_raw_buffer_update): New function to write the modified map
4714 * debug-symfile.h (MonoDebugSymbolFile): Added `raw_contents_size'.
4716 * debug-symfile.c (mono_debug_update_symbol_file): Call
4717 mono_raw_buffer_update() when done writing.
4719 2002-03-23 Martin Baulig <martin@gnome.org>
4721 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 5.
4723 * debug-symfile.c: Added support for arguments and local variables.
4725 2002-03-23 Dick Porter <dick@ximian.com>
4727 * debug-symfile.c: Remove extraneous 'include <elf.h>' that wasn't
4728 protected by ifdefs, hence breaking the w32 build.
4730 Thu Mar 21 17:35:01 CET 2002 Paolo Molaro <lupus@ximian.com>
4732 * object.c: implement is_interned() the right way.
4734 2002-03-21 Martin Baulig <martin@gnome.org>
4736 * debug-symfile.[ch]: New files to handle debugging information
4737 files. There's also support to dynamically update these symbol
4738 files to include machine dependent information.
4740 2002-03-20 Dietmar Maurer <dietmar@ximian.com>
4742 * threads.c (mono_thread_create): new function to create thread
4745 2002-03-20 Martin Baulig <martin@gnome.org>
4747 * icall.c (ves_icall_InternalInvoke): Create a new object if the
4748 method is a constructor.
4749 (icall_map): Added "System.Reflection.MonoCMethod::InternalInvoke",
4750 points to ves_icall_InternalInvoke().
4752 2002-03-20 Dan Lewis <dihlewis@yahoo.co.uk>
4754 * file-io.c: Flush shouldn't throw exceptions.
4756 2002-03-19 Dan Lewis <dihlewis@yahoo.co.uk>
4758 * file-io.c: FileStream flush support; FileSetLength now
4759 restores file pointer.
4761 Tue Mar 19 18:17:21 CET 2002 Paolo Molaro <lupus@ximian.com>
4763 * class.c: set image for pointer classes.
4765 2002/03/19 Nick Drochak <ndrochak@gol.com>
4767 * sysmath.c: Forgot one.
4769 2002-03-18 Miguel de Icaza <miguel@ximian.com>
4771 * sysmath.c: Avoid redefining existing names.
4773 2002-03-18 Dan Lewis <dihlewis@yahoo.co.uk>
4775 * sysmath.c, sysmath.h, icall.c, Makefile.am: math routines now
4776 handled by runtime as icall rather than dllimport from libm.so
4777 * file-io.c, file-io.h: fixed handle argument type.
4779 2002-03-18 Dick Porter <dick@ximian.com>
4781 * reflection.c (mono_image_get_type_info): rename interface to
4782 iface, because of "#define interface struct" on windows.
4784 Sat Mar 16 19:18:38 CET 2002 Paolo Molaro <lupus@ximian.com>
4786 * class.c, class.h: rename and export mono_ptr_class_get().
4787 * metadata.c: support MONO_TYPE_ARRAY in MonoType compare.
4788 * reflection.c, reflection.h, icall.c: better/saner type name
4789 parsing and MonoType creation. Handle MONO_TYPE_ARRAY in
4792 2002-03-14 Dietmar Maurer <dietmar@ximian.com>
4794 * class.c (mono_class_init): removed hardcoded GHC_SLOT
4796 * icall.c (ves_icall_InternalInvoke): impl.
4798 Wed Mar 13 00:27:30 CET 2002 Paolo Molaro <lupus@ximian.com>
4800 * reflection.c: output the interface map table, too.
4802 2002-03-12 Dietmar Maurer <dietmar@ximian.com>
4804 * class.c (class_compute_field_layout): separate computation of
4807 2002-03-12 Dan Lewis <dihlewis@yahoo.co.uk>
4809 * icall.c: added System.Buffer support.
4810 * file-io.c: moved file icalls from PAL to FileStream.
4812 2002-03-12 Dietmar Maurer <dietmar@ximian.com>
4814 * icall.c (ves_icall_System_Object_GetHashCode): impl.
4816 2002-03-11 Dietmar Maurer <dietmar@ximian.com>
4818 * icall.c (ves_icall_System_ValueType_GetHashCode): impl.
4820 Mon Mar 11 14:45:42 CET 2002 Paolo Molaro <lupus@ximian.com>
4822 * verify.c, verify.h: moved here the corlib/runtime consistency checks.
4824 Mon Mar 11 11:12:23 CET 2002 Paolo Molaro <lupus@ximian.com>
4826 * debug-helpers.{c,h}: moved here from monograph some useful functions
4827 to locate a method by name/signature in a class or image. Included
4828 also a small and flexible IL disassembler.
4830 Fri Mar 8 16:29:29 CET 2002 Paolo Molaro <lupus@ximian.com>
4832 * reflection.c: fixup tokens in methods with small header size, too.
4834 2002-03-08 Dietmar Maurer <dietmar@ximian.com>
4836 * object.c (mono_string_to_utf8): remove assert(!error), instead
4839 Thu Mar 7 18:55:15 CET 2002 Paolo Molaro <lupus@ximian.com>
4841 * icall.c: update to the new mono_Array_class_get interface.
4843 Thu Mar 7 17:23:26 CET 2002 Paolo Molaro <lupus@ximian.com>
4845 * appdomain.c, object.c: Boehm-GC enable.
4846 * icall.c: make get_data_chunk() support split data requests.
4847 Ensure a class is initialized in more cases. Return only the first
4848 property found in GetProperties() or the compiler gets confused.
4849 Implemented GetEvents(). Temporary fix to GetType(), needs rewriting.
4850 * reflection.h, reflection.c: add fixup mechanism for field and method
4851 tokens. Initialize assembly->typeref in a single place. Output
4852 properties after events. Support custom attributes for events, too.
4853 Typo fix for paramter custom attrs.
4855 2002-03-07 Martin Baulig <martin@gnome.org>
4857 * icall.c (ves_icall_System_Array_FastCopy): Small fix.
4859 2002-03-07 Dietmar Maurer <dietmar@ximian.com>
4861 * class.c (mono_array_class_get): fix. for multi. dim. arrays
4863 2002-03-06 Martin Baulig <martin@gnome.org>
4865 * icall.c (ves_icall_System_Array_CreateInstanceImpl): Make this work with
4866 non-zero lower bounds. See testcases #F10-#F13.
4868 2002-03-05 Martin Baulig <martin@gnome.org>
4870 * exception.c (mono_get_exception_argument_out_of_range): New exception.
4872 * icall.c (ves_icall_System_Array_GetValue): Moved actual implementation to
4873 ves_icall_System_Array_GetValue(), only calculate the absolute array position
4875 (ves_icall_System_Array_SetValue): Likewise.
4876 (ves_icall_System_Array_GetValueImpl): New interncall. Takes an array position
4877 as argument and does the actual work. This function is used when copying a
4878 multi-dimensional array.
4879 (ves_icall_System_Array_SetValueImpl): Almost completely rewrote this. It can
4880 now do all the widening conversions of value types.
4881 (ves_icall_System_Array_CreateInstanceImpl): Implemented.
4883 Tue Mar 5 18:14:01 CET 2002 Paolo Molaro <lupus@ximian.com>
4885 * class.c: remove some magic numbers and use the smbolic names,
4886 instead. Added init_events() to load event info at class init time.
4887 * metadata.h, metadata.c: added mono_metadata_events_from_typedef()
4888 and mono_metadata_methods_from_event().
4889 * reflection.h, reflection.c: added support for writing out the evnets
4890 related information.
4892 Mon Mar 4 20:32:43 CET 2002 Paolo Molaro <lupus@ximian.com>
4894 * reflection.h, icall.c: use a different method (GetInterfaces)
4895 to gather interface info and add isbyref, isprimitive and
4896 ispointer to the ves_icall_get_type_info() return value.
4898 Mon Mar 4 11:22:26 CET 2002 Paolo Molaro <lupus@ximian.com>
4900 * class.h: stared adding support for events.
4901 * icall.c: split find_members implementation. Added debug icall to get
4902 the address of an object.
4903 * reflection.c: handle TypeBuilders in mono_type_get_object().
4905 2002-03-01 Martin Baulig <martin@gnome.org>
4907 * icall.c (ves_icall_System_Array_GetLength): This must throw an
4908 ArgumentOutOfRangeException(), not an ArgumentException().
4909 (ves_icall_System_Array_GetLowerBound): Likewise.
4910 (ves_icall_System_Array_GetValue): Improved argument checking.
4911 (ves_icall_System_Array_SetValue): Improved argument checking.
4913 2002-03-01 Martin Baulig <martin@gnome.org>
4915 * icall.c (ves_icall_System_Array_GetValue): Raise an exception when
4916 called with invalid arguments rather than just dying with g_assert().
4917 (ves_icall_System_Array_SetValue): Likewise.
4918 (ves_icall_System_Array_CreateInstanceImpl): Don't g_assert_not_reached(),
4919 raise a NotImplementedException instead.
4920 (ves_icall_System_Array_GetLength): Added argument checking.
4921 (ves_icall_System_Array_GetLowerBound): Added argument checking.
4923 2002-03-01 Dietmar Maurer <dietmar@ximian.com>
4925 * object.h (mono_assert): new macros mono_assert and
4926 mono_assert_not_reached
4928 2002-02-28 Martin Baulig <martin@gnome.org>
4930 * icall.c: Rename "System::String::Intern" to "System::String::_Intern"
4931 and "System::String::IsInterned" to "System::String::_IsInterned".
4933 Thu Feb 28 19:19:35 CET 2002 Paolo Molaro <lupus@ximian.com>
4935 * icall.c: remove hacks for typebuilder. Added icall to create a
4936 modified type from a tybebuilder.
4937 * reflection.c: removed hacks for TypeBuilder. Create also a MonoImage
4938 in mono_image_basic_init (). Added mono_reflection_setup_internal_class ()
4939 to create a backing MonoClass for a TypeBuilder.
4941 Thu Feb 28 15:35:51 CET 2002 Paolo Molaro <lupus@ximian.com>
4943 * class.c, class.h: more refactoring of class init.
4944 Export mono_class_setup_mono_type() and mono_class_setup_parent().
4946 Thu Feb 28 12:33:41 CET 2002 Paolo Molaro <lupus@ximian.com>
4948 * marshal.c, marshal.h: start of marshaling interface.
4950 Wed Feb 27 22:15:17 CET 2002 Paolo Molaro <lupus@ximian.com>
4952 * icall.c: fix order in assembly qualified name icall.
4954 Wed Feb 27 18:45:03 CET 2002 Paolo Molaro <lupus@ximian.com>
4956 * class.c: do not free str, since we store it in the hash table.
4957 * reflection.h: add label field to MonoILExceptionInfo.
4958 * reflection.c: handle references to more than one assembly. Handle
4959 case when there isn't a module created in the assembly.
4961 Wed Feb 27 12:35:10 CET 2002 Paolo Molaro <lupus@ximian.com>
4963 * class.c: Fix typo. Start refactoring of class init code.
4965 Wed Feb 27 12:23:00 CET 2002 Paolo Molaro <lupus@ximian.com>
4967 * appdomain.c: exit with 1 on error.
4968 * class.c: we already have the name in MonoClassField.
4969 * image.c, image.h, metadata.c, pedump.c: use directly a pointer in
4970 MonoStreamHeader instead of an offset of image->raw_metadata.
4972 2002-02-26 Miguel de Icaza <miguel@ximian.com>
4974 * appdomain.c (mono_init): Be even more descriptive about the error.
4976 Tue Feb 26 16:18:07 CET 2002 Paolo Molaro <lupus@ximian.com>
4978 * appdomain.c: give the user an informative message when corlib can't
4981 2002-02-26 Martin Baulig <martin@gnome.org>
4983 * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData):
4984 New icall to get the time zone data.
4986 Mon Feb 25 15:51:51 CET 2002 Paolo Molaro <lupus@ximian.com>
4988 * reflection.c: set virtual and raw size of section correctly.
4989 * threads.c: transfer domain information to newly created threads.
4991 Fri Feb 22 18:55:57 CET 2002 Paolo Molaro <lupus@ximian.com>
4993 * class.c: when instancing a class in a domain, load the default
4994 vaules for static fields from the constant table. Fix System.Enum to
4996 * icall.c: implement Object::GetType() internalcall. Implemented
4997 MonoField::GetValue() internalcall. Avoid SEGV in search_method().
4998 Fixed checking of binding flags in find_members().
4999 * metadata.c, metadata.h: introduce mono_metadata_type_hash().
5000 * reflection.c: handle enumerations when writing to the constant
5001 table. Use a different object cache for types.
5004 2002-02-22 Dietmar Maurer <dietmar@ximian.com>
5006 * object.c (mono_object_isinst): fix for arrays
5008 * icall.c (ves_icall_type_is_subtype_of): fix for 2 interfaces
5010 Thu Feb 21 21:00:13 CET 2002 Paolo Molaro <lupus@ximian.com>
5012 * object.c: don't use mprotect () and fix intern pool hash table
5013 lookup for big endian systems.
5015 Thu Feb 21 19:30:29 CET 2002 Paolo Molaro <lupus@ximian.com>
5017 * icall.c: change type_is_subtype_of () signature.
5019 2002-02-21 Mark Crichton <crichton@gimp.org>
5021 * rand.c, rand.h: Added random number generator for
5022 System.Security.Cryptography classes.
5024 * exception.c, exception.h: Added mono_get_exception_not_implemeted.
5026 * icall.c: Added System.Security.Cryptography calls.
5028 Thu Feb 21 16:45:34 CET 2002 Paolo Molaro <lupus@ximian.com>
5030 * class.c, icall.c, metadata.c: better support for pointer types.
5031 Create a class for them as suggested by dietmar. Fix TYPE_ARRAY class.
5032 * reflection.c: Add support for getting custom attrs for properties
5033 and simplify some code.
5035 Wed Feb 20 22:20:29 CET 2002 Paolo Molaro <lupus@ximian.com>
5037 * icall.c: change getToken () and add custom attribute GetBlob()helper
5039 * reflection.h: add custom attrs array to the reflection builder structures.
5040 * reflection.c: encode and emit custom attributes for all the relevant
5041 reflection objects. Cache fieldref and methodref tokens. Change
5042 mono_image_create_token() interface to take a MonoDynamicAssembly.
5043 More complete custom attributes decoder. Load custom attributes for
5044 Assembly, Field, Method and Constructor objects, too. Make the
5045 returned array an Attribute[] one, not object[]. Added
5046 mono_reflection_get_custom_attrs_blob() to encode the arguments of a
5047 custom attribute constructor.
5049 2002-02-20 Dick Porter <dick@ximian.com>
5053 * socket-io.c: Windows portability fixes (sometimes just ifdeffing
5054 problem code out for now).
5056 2002-02-19 Radek Doulik <rodo@ximian.com>
5058 * object.c (mono_ldstr): use hash table to avoid multiple swapping
5060 Tue Feb 19 20:23:11 CET 2002 Paolo Molaro <lupus@ximian.com>
5062 * icall.c: register the GetCustomAttributes method.
5063 * object.c, object.h: add mono_string_new_len ().
5064 * reflection.h, reflection.c: added mono_runtime_invoke(),
5065 mono_install_runtime_invoke(). Added
5066 mono_reflection_get_custom_attrs () to load custom attributes and
5067 create the attribute objects.
5069 2002-02-19 Dick Porter <dick@ximian.com>
5070 * threads-dummy-types.c:
5071 * threads-dummy-types.h:
5074 * threads-pthread-types.c:
5075 * threads-pthread-types.h:
5076 * threads-pthread.c:
5077 * threads-pthread.h: Deleted obsolete files
5079 2002-02-19 Dietmar Maurer <dietmar@ximian.com>
5081 * class.c (mono_class_vtable): runtime init the class when we
5082 allocate static class data.
5084 * icall.c (ves_icall_System_Array_SetValue): check for null values.
5086 * appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
5087 and String - but we will need generic marshalling support in the
5089 (mono_init): set the domain name in a ms compatible way
5091 * object.c (mono_string_new_utf16): bug fix: use char[] instead of
5094 2002-02-18 Dietmar Maurer <dietmar@ximian.com>
5096 * object.c (mono_array_clone): use alloca() instead of g_malloc
5099 * appdomain.c (mono_domain_unload): impl.
5101 Mon Feb 18 15:52:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5103 * appdomain.c, object.c: fix intern pool implementation.
5104 * class.c: fix alignment code.
5106 2002-02-16 Radek Doulik <rodo@ximian.com>
5108 * icall.c (ves_icall_System_Enum_ToObject): in case of big endian
5109 and s2 > s1, just copy lower bytes to be compatible with little
5110 endian (i.e. 64bit value & 0xffffffff --> 32bit value)
5111 (ves_icall_System_Enum_ToObject): and likewise for s1 > s2
5113 * unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
5114 force big_endian to be 1 for big endian machines
5115 (ves_icall_iconv_new_decoder): ditto
5117 2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
5119 * socket-io.c (convert_sockopt_level_and_name): If the system
5120 doesn't define SOL_IP or SOL_TCP, get them by hand using
5121 getprotobyname() and caching the values (because this could be a
5123 (ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
5124 Use the appropriate struct when the system does support it. Ie,
5125 not all systems have struct ip_mreqn so use struct ip_mreq when
5128 Fri Feb 15 18:15:44 CET 2002 Paolo Molaro <lupus@ximian.com>
5130 * reflection.c: handle finally clauses.
5132 Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <lupus@ximian.com>
5134 * socket-io.c: use g_snprintf() instead of snprintf.
5136 2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
5138 * reflection.c (mono_param_get_objects): Cast second argument to
5139 mono_method_get_param_names to a const char** to silence the
5142 * appdomain.c (mono_domain_assembly_open): Put parens around the
5143 truth statement in the for-loop.
5145 * unicode.c (iconv_convert): Got rid of a compiler warning about
5146 int i being unused when the system has a new iconv.
5147 (iconv_get_length): Same.
5149 * image.c (load_class_names): Cast the second argument to
5150 g_hash_table_insert() to char* to hush compiler warnings about the
5152 (mono_image_open): Same here.
5154 * socket-io.c: Don't conditionally include sys/filio.h or
5155 sys/sockio.h here anymore since we now get them from
5157 (inet_pton): If the system doesn't support inet_aton, implement
5158 using inet_addr and also #define INADDR_NONE if it isn't defined
5161 Thu Feb 14 19:01:06 CET 2002 Paolo Molaro <lupus@ximian.com>
5163 * metadata.c, metadata.h: added function to get packing and size info
5165 * reflection.h, reflection.c: handle field RVA data. Save info about
5166 the table layout if needed. Assign typedef indexes to all the types
5167 before dumping the info about them to avoid forward reference problems.
5169 2002-02-14 Dietmar Maurer <dietmar@ximian.com>
5171 * socket-io.c (convert_sockopt_level_and_name): ifdef
5172 SO_ACCEPTCONN because it is not defined on my system (old debian)
5174 Thu Feb 14 11:49:30 CET 2002 Paolo Molaro <lupus@ximian.com>
5176 * opcode.c: use stddef.h to get NULL.
5178 2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
5180 * socket-io.c: conditionally include sys/filio.h and sys/sockio.h
5181 for FIONBIO, FIONREAD and SIOCATMARK.
5182 (ves_icall_System_Net_Dns_GetHostByAddr_internal): SunOS doesn't
5183 define INADDR_NONE and besides, inet_addr() is deprecated and
5184 should not be used. Use inet_pton() instead - it also has the
5185 added bonus that it can easily handle IPv6 addresses as well.
5186 (inet_pton): Implement using inet_aton() ifndef HAVE_INET_PTON.
5188 Wed Feb 13 23:00:21 CET 2002 Paolo Molaro <lupus@ximian.com>
5190 * decimal.c: remove _MSC_VER conditional.
5192 2002-02-13 Dick Porter <dick@ximian.com>
5195 * icall.c: Internal calls for Blocking, Select, Shutdown,
5196 GetSocketOption and SetSocketOption
5198 Wed Feb 13 19:20:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5200 * assembly.cs: better resolver: use it instead of some kludgy
5203 Wed Feb 13 18:25:55 CET 2002 Paolo Molaro <lupus@ximian.com>
5205 * reflection.c: the best way to speed-up the compiler is to avoid
5208 2002-02-13 Dietmar Maurer <dietmar@ximian.com>
5210 * class.c (mono_class_vtable): changed the object layout
5211 (obj->vtable->class).
5212 (mono_class_create_from_typespec): consider MONO_TYPE_PTR
5214 Tue Feb 12 20:06:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5216 * assembly.c: look for assemblies in the assembly dir, too.
5218 Tue Feb 12 14:03:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5220 * class.c: fix thinko in mono_class_from_type().
5222 Mon Feb 11 19:43:51 CET 2002 Paolo Molaro <lupus@ximian.com>
5224 * exception.h, exception.c: added TypeLoadException.
5225 * object.h, object.c: added mono_array_clone ().
5226 * icall.c: handle throwOnError in AssemblyGetType().
5227 Added Array.Clone().
5228 * opcode.h, opcode.c: use a single value for the opcode val.
5229 Compile fix for non-gcc compilers.
5231 Fri Feb 8 12:26:37 CET 2002 Paolo Molaro <lupus@ximian.com>
5233 * opcodes.c, opcodes.h: export interesting info about opcodes.
5235 2002-02-05 Dietmar Maurer <dietmar@ximian.com>
5237 * object.h (MONO_CHECK_ARG, MONO_CHECK_ARG_NULL): new macro for
5240 * class.c (class_compute_field_layout): set element_class for enums
5241 (mono_class_create_from_typedef): set element_class for normal classes
5243 * icall.c (ves_icall_System_Enum_get_value): impl.
5245 * class.c (mono_class_create_from_typedef): do not set valuetype
5246 flag for System.ValueType and System.Enum
5248 2002-02-04 Dietmar Maurer <dietmar@ximian.com>
5250 * unicode.c (iconv_convert): fix big endian problem.
5252 Fri Feb 1 16:13:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5254 * class.c: add asserts if we are ever going to scribble over memory.
5255 * socket-io.c: not all systems have AF_IRDA defined.
5257 2002-01-31 Dietmar Maurer <dietmar@ximian.com>
5259 * class.c (class_compute_field_layout): do not consider static
5260 fields to compute alignment
5262 2002-01-25 Dietmar Maurer <dietmar@ximian.com>
5264 * appdomain.c (mono_appdomain_get): impl.
5265 (ves_icall_System_AppDomain_ExecuteAssembly): impl.
5267 Thu Jan 24 12:59:23 CET 2002 Paolo Molaro <lupus@ximian.com>
5269 * icall.c: ignore "file://" prefix when loading an assembly.
5271 2002-01-23 Dick Porter <dick@ximian.com>
5275 * Makefile.am: Added socket support
5277 2002-01-23 Miguel de Icaza <miguel@ximian.com>
5279 * icall.c (ves_icall_appdomain_get_default_assemblies): put this
5280 code back. This should return the assemblies that are loaded by
5281 the runtime on behalf of an application domain.
5283 The current implementation is still broken, it just returns every
5284 assembly loaded, but until we get real applications domain this
5287 2002-01-23 Dietmar Maurer <dietmar@ximian.com>
5289 * icall.c (ves_icall_appdomain_get_cur_domain): runtime_init the
5292 2002-01-23 Miguel de Icaza <miguel@ximian.com>
5294 * icall.c (ves_icall_appdomain_get_cur_domain): Cache the value of
5295 the mono_class_from_name lookup.
5296 (ves_icall_get_parameter_info): ditto.
5297 (ves_icall_appdomain_get_assemblies, add_assembly): Implement new internal
5299 (ves_icall_System_Reflection_Assembly_get_code_base): Another new call.
5301 Tue Jan 22 22:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
5303 * class.c: load also nested classes on class init.
5304 System.ValueType instance methods gets passed boxed
5305 values, unless methods in derived classed that get a pointer to the
5307 * icall.c: use better name parsing code in GetType().
5308 * image.c, image.h: add mono_image_loaded ().
5309 * metadata.c, metadata.h: add mono_metadata_nesting_typedef ().
5310 * reflection.c, reflection.h: added mono_reflection_parse_type().
5312 2002-01-22 Veronica De Santis <veron78@interfree.it>
5314 * icall.c : Added mapping of internal calls for Manual and Auto reset events
5315 * threads.c : Added the implementation of internal calls for events
5316 * threads.h : Added prototypes of internal calls for events
5318 2002-01-21 Radek Doulik <rodo@ximian.com>
5320 * icall.c (ves_icall_InitializeArray): swap bytes on big endians
5322 2002-01-21 Dietmar Maurer <dietmar@ximian.com>
5324 * class.c (mono_class_init): set min_align to 1 (instead of 0)
5325 (mono_class_value_size): use min_align
5327 2002-01-20 Dick Porter <dick@ximian.com>
5330 * threads.c: Replaced all instances of WapiHandle * with HANDLE,
5331 so it compiles on w32.
5333 2002-01-17 Dietmar Maurer <dietmar@ximian.com>
5335 * metadata.c (mono_type_stack_size): impl.
5337 * class.c (mono_class_get_field): impl. memberref token
5339 2002-01-16 Veronica De Santis <veron78@@interfree.it>
5341 * icall.h : Added the internal calls mapping for CreateMutex_internal
5342 and ReleaseMutex_internal.
5343 * threads.h : Added the prototype of mutexes internal calls.
5344 * threads.c : Added the implementations of mutexes internal calls.
5346 Tue Jan 15 22:47:57 CET 2002 Paolo Molaro <lupus@ximian.com>
5348 * metaparse.h: removed unused file.
5349 * reflection.c, reflection.h: added stream_data_align () function
5350 to align data in streams and keep stream aligned. Add support for
5351 exception support in method headers.
5353 Tue Jan 15 19:42:50 CET 2002 Paolo Molaro <lupus@ximian.com>
5355 * unicode.c: make iconv_convert () return the number of bytess written
5356 in the output buffer.
5358 2002-01-15 Dick Porter <dick@ximian.com>
5359 * threads.c: Make the runtime's idea of infinite timeouts coincide
5360 with the class library's
5362 Fix a particularly egregious bug in mono_thread_cleanup(). That
5363 code was so utterly bogus it must have been written on a Monday.
5365 Mon Jan 14 17:01:03 CET 2002 Paolo Molaro <lupus@ximian.com>
5367 * reflection.h: add subtypes field to TypeBuilder.
5368 * reflection.c: encode constants for literal fields.
5369 Handle subtypes. Fix user string token (and add a zero byte)
5372 2002-01-14 Dietmar Maurer <dietmar@ximian.com>
5374 * class.c (mono_class_init): bug fix: assign slot numbers for
5377 Fri Jan 11 18:54:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5379 * reflection.c: don't try to output a code RVA for abstract methods.
5380 Small fixes for method header format. Output parameter info to the
5381 ParamDef table. Save method overriding info to MethodImpl table.
5382 Fix property support. Allow typedef.extends to be a type in the
5384 * verify.c: fix off-by-one error.
5386 Thu Jan 10 19:36:27 CET 2002 Paolo Molaro <lupus@ximian.com>
5388 * class.c: fix mono_class_from_mono_type () for szarray types.
5389 Remove unused cache check in mono_class_from_type_spec().
5390 * icall.c: *type_from_name () functions handle simple arrays and byref.
5391 * reflection.c: handle byref and szarray types. Handle methods without
5392 body (gets P/Invoke compilation working). Handle types and fields in
5394 * reflection.h: add rank to MonoTypeInfo.
5396 2002-01-10 Dick Porter <dick@ximian.com>
5398 * threads.c: Implemented WaitAll(), WaitAny() and WaitOne()
5401 Wed Jan 9 19:27:13 CET 2002 Paolo Molaro <lupus@ximian.com>
5403 * icall.c: initialize class in type_from_handle ().
5404 Loop also in parent classes for get_method ().
5405 * reflection.c: properly encode class and valuetype types.
5406 Start on encoding TypeBuilder types. Handle fieldrefs.
5407 Use correct length when registering a user string.
5408 Handle ConstructorBuilder and MonoMethod in get_token ().
5409 Make mono_type_get_object () aware of cached types.
5410 * object.c: back out change to mono_string_new ().
5412 Tue Jan 8 22:47:44 EST 2002 Matt Kimball <matt@kimball.net>
5413 * object.c: mono_string_new should return a NULL when the string
5414 passed in is NULL -- not try to deference it.
5416 Sat Jan 5 15:48:04 CET 2002 Paolo Molaro <lupus@ximian.com>
5418 * icall.c: hack to make IsSubType work for TypeBuilders.
5419 * reflection.c: emit constructors before methods.
5420 Retrieve param names in mono_param_get_objects().
5422 2002/01/05 Nick Drochak <ndrochak@gol.com>
5424 * Makefile.am: fix list of headers and sources so automake 1.5
5425 doesn't complain. Removed \# at end of list.
5427 Thu Jan 3 23:17:17 CET 2002 Paolo Molaro <lupus@ximian.com>
5429 * reflection.c: get token for a method ref. Set return type of
5430 constructor to void.
5431 * loader.c: debug message.
5432 * class.c: typo fix.
5434 Mon Dec 24 17:18:10 CET 2001 Paolo Molaro <lupus@ximian.com>
5436 * icall.c: fix array init with rank > 1. FindMembers
5437 loops in parent class as well.
5438 * image.c: do not insert nested types in name cache.
5439 * reflection.c: warning fix.
5440 * reflection.h: add override method (for interface impl).
5442 Mon Dec 24 16:16:56 CET 2001 Paolo Molaro <lupus@ximian.com>
5444 * metadata.c: fix customattr decoding.
5446 2001-12-21 Miguel de Icaza <miguel@ximian.com>
5448 * rawbuffer.cs: Added native Win32 implementation, avoids using
5449 mmap on Cygwin. This patch is from Dan Lewis (dihlewis@yahoo.co.uk)
5451 Thu Dec 20 20:11:26 CET 2001 Paolo Molaro <lupus@ximian.com>
5453 * class.c: make the low-level routines handle the cache.
5455 Thu Dec 20 15:20:35 CET 2001 Paolo Molaro <lupus@ximian.com>
5457 * image.c: fopen (file, "rb") ("David Dawkins" <david@dawkins.st>).
5459 Tue Dec 18 18:50:00 CET 2001 Paolo Molaro <lupus@ximian.com>
5461 * class.c: fix mono_array_element_size() for objects.
5462 * class.h, class.c: add properties to MonoClass and load them
5464 * icall.c: check with isinst() when assigning a value to an array
5465 instead of requiring the classes to match exactly.
5466 Implemented icall for System.Type::GetType().
5467 Implemented icalls to get ParameterInfo, ProprtyInfo and info about
5468 enums. Handle bindingflags when looking for methods and fields.
5469 * metadata.h, metadata.c: implemented mono_metadata_properties_from_typedef()
5470 and mono_metadata_methods_from_property().
5471 * reflection.h, reflection.c: added structures for propreties,
5472 parameters and enums. Implemented mono_property_get_object() and
5473 mono_param_get_objects().
5475 2001-12-18 Dick Porter <dick@ximian.com>
5477 * file-io.c: Use mono_string_to_utf16() instead of
5480 * object.c: Added mono_string_to_utf16(), which copies the non
5481 NULL-terminated MonoString into a new double-null-terminated
5484 2001-12-17 Dietmar Maurer <dietmar@ximian.com>
5486 * icall.c (ves_icall_System_DateTime_GetNow): added EPOCH adjustment
5488 2001-12-16 Dietmar Maurer <dietmar@ximian.com>
5490 * file-io.c: raise exceptions if handle is invalid.
5492 Thu Dec 13 20:27:08 CET 2001 Paolo Molaro <lupus@ximian.com>
5494 * assembly.c: yet another check for mscorlib.
5495 * class.c, class.h: load nesting info for classes.
5496 * icall.c: many new functions to support the Reflection classes.
5497 * metadata.c, metadata.h: mono_metadata_nested_in_typedef() added.
5498 * reflection.h, reflection.c: mono_image_create_token(),
5499 mono_assembly_get_object(), mono_type_get_object(),
5500 mono_method_get_object(), mono_field_get_object(): methods to return
5501 objects that parallel the C representation of assemblies, types,
5504 2001-12-11 Dick Porter <dick@ximian.com>
5507 * file-io.c: Internal calls for file IO.
5509 Thu Dec 6 16:21:30 CET 2001 Paolo Molaro <lupus@ximian.com>
5511 * tabledefs.h: missing FileAttributes.
5512 * verify.h, verify.c: use is_valid_string () to simplify and check for
5513 valid strings more correctly. Fix warnings and speeling.
5514 Check more tables: Filed, File, ModuleRef, StandAloneSig.
5515 Check code: branches, maxstack, method calls.
5517 2001-12-04 Dietmar Maurer <dietmar@ximian.com>
5519 * object.c (mono_object_allocate): removed static, so that the jit
5520 can allocate value types.
5522 * icall.c (ves_icall_System_DateTime_GetNow): impl.
5524 Mon Dec 3 17:02:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5526 * class.c: init enum types right away and register the
5527 token->MonoClass map in mono_class_create_from_typedef ().
5528 * verify.h, verify.c: first cut of the verifier.
5529 * pedump.c: add --verify switch to verify metadata tables.
5530 * tabledefs.h: add some missing enums.
5532 2001-11-30 Dietmar Maurer <dietmar@ximian.com>
5534 * class.c (mono_install_runtime_class_init): impl.
5535 (mono_class_init): renamed mono_class_metadata_init to
5536 mono_class_init, also removed the metadata_inited flag
5538 * object.c (mono_object_isinst): use faster algorithm
5540 2001-11-30 Radek Doulik <rodo@ximian.com>
5542 * mono-endian.h: reverted last change
5543 added function prototypes
5545 * Makefile.am (libmetadata_a_SOURCES): reverted my last change and
5546 add mono-endian.c back
5548 * mono-endian.c: returned back, as Paolo pointed out, it's needed
5549 for unaligned access, I've mistaked it with endianess. I am
5551 (mono_read16): fix reverted endianess
5552 (mono_read64): ditto
5553 (mono_read32): ditto
5555 2001-11-30 Dick Porter <dick@ximian.com>
5557 * exception.c: Implement mono_exception_from_name()
5559 Fri Nov 30 12:01:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5561 * metadata.h, metadata.c: remove params_size and locals_size and their
5562 calculation from the metadata code: they are only usefult to the
5565 2001-11-29 Radek Doulik <rodo@ximian.com>
5567 * object.c (mono_ldstr): swap bytes here, it's probably not the
5568 best place, but works for me now, I'll redo it once I know mono
5569 better, also note that I add PROT_WRITE and don't reset back, also
5570 note that it's only affects big endians, so x86 should be OK
5572 * mono-endian.h (read16): use just glib macros for both endians
5574 * mono-endian.c: removed as glib macros are used in in
5575 mono-endian.h so we don't need to care about endianess for read
5576 macros as glib does that for us already
5578 Thu Nov 29 18:20:58 CET 2001 Paolo Molaro <lupus@ximian.com>
5580 * class.h, class.h: take minimum alignment into consideration so
5581 that the fields of a class remain aligned also when in an array.
5583 Tue Nov 27 16:39:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5585 * loader.h, loader.c: add mono_method_get_param_names().
5586 * class.c: 0-init class fields.
5588 2001-11-26 Dick Porter <dick@ximian.com>
5592 * threads.c: New file that handles System.Threading on all platforms
5595 * object.h: Remove the synchronisation struct from MonoObject,
5596 replace it with a pointer that gets initialised on demand
5598 * Makefile.am: Replace all the system-specific threading code with
5599 a single file that uses the new wrapper library
5601 Mon Nov 19 11:37:14 CET 2001 Paolo Molaro <lupus@ximian.com>
5603 * class.c, class.h: add mono_install_trampoline() so that the runtime
5604 can register a function to create a trampoline: removes the ugly
5605 requirement that a runtime needed to export arch_create_jit_trampoline.
5606 * object.h, object.c: added mono_install_handler() so that the runtime
5607 can install an handler for exceptions generated in C code (with
5608 mono_raise_exception()). Added C struct for System.Delegate.
5609 * pedump.c: removed arch_create_jit_trampoline.
5610 * reflection.c: some cleanups to allow registering user strings and
5611 later getting a token for methodrefs and fieldrefs before the assembly
5613 * row-indexes.h: updates and fixes from the new ECMA specs.
5615 Thu Nov 15 17:44:49 CET 2001 Paolo Molaro <lupus@ximian.com>
5617 * class.h, class.c: add enum_basetype field to MonoClass.
5618 * metadata.h, metadata.c: add mono_metadata_get_constant_index()
5619 to get index in the constant table reated to a field, param or
5621 * reflection.h, reflection.c: handle constructors. Set public-key and
5622 version number of the built assembly to 0.
5623 * row-indexes.h: update from new ECMA spec.
5625 Wed Nov 14 19:26:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5627 * class.h, class.c: add a max_interface_id to MonoClass.
5628 * icall.c: rename my_mono_new_object() to my_mono_new_mono_type()
5629 since it's used to do that. Added mono_type_type_from_obj().
5630 Make GetType() return NULL instead of segfaulting if the type was not
5631 found. Handle simple arrays in assQualifiedName.
5632 * object.h: add a struct to represent an Exception.
5633 * reflection.c: output call convention in method signature.
5634 Add code to support P/Invoke methods and fixed offsets for fields.
5636 Mon Nov 12 12:41:32 CET 2001 Paolo Molaro <lupus@ximian.com>
5638 * decimal.c, decimal.h: mono_double2decimal() get the sign bit from
5640 * icall.c: use mono_array_addr instead of array->vector: fixes the
5641 reflection image writing.
5642 * reflection.c: init call convention byte to 0 in method signature.
5643 Encode the property signature. Don't output property-related methods
5644 twice. Really process the properties for a type (don't cast a field to
5645 a property, my mom always told me that).
5646 Fix 64 bit issues in pointer alignment in a different and more
5649 2001-11-10 Sean MacIsaac <macisaac@ximian.com>
5651 * loader.h: Removed type class from MonoDefaults, added monotype
5653 * loader.c: Loaded MonoType, removed loading of Type
5655 * icall.c (my_mono_new_object): Now returns a System.MonoType,
5656 and fills in System.Type._impl with a RuntimeTypeHandle rather
5657 than the actual MonoClass *
5659 (ves_icall_type_from_handle): change from type_class to
5662 (ves_icall_System_Runtime_InteropServices_Marshal_ReadIntPtr):
5665 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAuto):
5668 (ves_icall_System_Reflection_Assembly_LoadFrom): implemented
5670 (ves_icall_System_Reflection_Assembly_GetType): implemented
5672 (ves_icall_System_MonoType_assQualifiedName): implemented
5674 (ves_icall_System_PAL_OpSys_GetCurrentDirecotry): implemented
5676 2001-11-09 Miguel de Icaza <miguel@ximian.com>
5678 * assembly.c (mono_assembly_open): Implement a cache for the
5681 (mono_assembly_close): only destroy the assembly when the last
5684 2001-11-09 Dick Porter <dick@ximian.com>
5686 * Makefile.am (pedump_LDADD): Don't need THREAD_LIBS any more
5688 2001-11-09 Dietmar Maurer <dietmar@ximian.com>
5690 * class.c (mono_class_metadata_init): bug fix: compute the right slot
5692 Fri Nov 9 15:48:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5694 * icall.c, decimal.h, decimal.c: integrated decimal internalcalls
5695 from Martin Weindel.
5696 * object.h: add mono_string_chars ().
5698 2001-11-07 Miguel de Icaza <miguel@ximian.com>
5700 * reflection.c (build_compressed_metadata): Eliminates warnings
5701 and uses 64-bit clean code.
5703 * metadata.c (mono_type_hash): Change signature to eliminate warnings.
5704 (mono_type_equal): Change signature to eliminate warnings.
5706 Wed Nov 7 15:40:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5708 * icall.c, loader.c: remove the internalcall array constructors.
5709 Changes to match the new MonoArray structure.
5710 * object.h, object.c: an array object doesn't allocate an extra
5711 vector. Add mono_array_new_full () to create jagged arrays easily.
5713 Mon Nov 5 19:51:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5715 * metadata.h, metadata.c: add mono_metadata_field_info () to
5716 retreive all the info about a field from vairous tables.
5717 * icall.c: implement S.Runtime.CServices::InitializeArray () icall.
5718 * class.h, class.c: augment MonoClassField with more info.
5719 Implemented mono_ldtoken for fields. Implemented ExplicitLayout
5720 policy and load a field's RVA if needed.
5722 2001-11-05 Dietmar Maurer <dietmar@ximian.com>
5724 * class.c (mono_class_metadata_init): create a trampoline for all
5725 virtual functions instead of actually compiling them.
5727 Fri Nov 2 19:37:51 CET 2001 Paolo Molaro <lupus@ximian.com>
5729 * class.h, class.c: include name in MonoClassField.
5730 * class.c: fix fundamental type of System.Object and System.String.
5731 Set the right fundamental type for SZARRAY, too. Handle TypeSpec
5733 * icall.c: remove internalcalls for the Reflection stuff that is now
5735 * loader.c: mono_field_from_memberref () implementation.
5736 * mono-endian.c: thinko (s/struct/union/g).
5737 * object.c, object.h: make the mono_string_* prototypes actually use
5738 MonoString instead of MonoObject.
5739 * reflection.c, reflection.h: updates for changes in the reflection
5740 code in corlib: we use C structures that map to the actual C# classes.
5741 Handle SZARRAYs when encoding types. Handle locals in methods. Use a
5742 fat method header if needed and use the info from the ILGenerator for
5743 methods. Handle fields in types. Misc fixes.
5745 2001-10-17 Dietmar Maurer <dietmar@ximian.com>
5747 * class.c (mono_class_metadata_init): bug fix: always allocate
5748 space for static class data
5750 2001-10-25 Dietmar Maurer <dietmar@ximian.com>
5752 * class.c (mono_compute_relative_numbering): use relative
5753 numbering to support fast runtime type checks.
5755 2001-10-17 Sean MacIsaac <macisaac@ximian.com>
5757 * class.c (mono_class_create_from_typeref): added debugging output
5758 to print class name when MonoDummy is returned instead of real class
5760 2001-10-15 Dietmar Maurer <dietmar@ximian.com>
5762 * class.c (mono_class_metadata_init): interface offset table now
5763 contains pointers into the vtable - this is more efficient for the jit
5765 2001-10-12 Dietmar Maurer <dietmar@ximian.com>
5767 * class.c (mono_class_metadata_init): use a temporary vtable (the
5768 old algorithm only worked for the interpreter, but not for the jit)
5770 2001-10-11 Dietmar Maurer <dietmar@ximian.com>
5772 * loader.c (method_from_memberref): use mono_class_get to get the
5773 class of an array instead of using System.Array directly.
5774 (mono_get_method): also add MEMBERREF methods to the method cache
5775 which usefull for arrays.
5777 2001-10-10 Dietmar Maurer <dietmar@ximian.com>
5779 * pedump.c (arch_compile_method): added to compute vtable entry
5781 * metadata.c (mono_metadata_interfaces_from_typedef): also return the
5782 number of interfaces.
5784 * class.h: merged MonoArrayClass into MonoClass
5786 * class.c (mono_class_create_from_typedef): compute the vtable size and
5787 allocate space to include the vtable inside MonoClass
5788 (mono_class_metadata_init): initialize the vtable
5790 Mon Oct 8 16:12:38 CEST 2001 Paolo Molaro <lupus@ximian.com>
5792 * metadata.c, metadata.h: use MonoArrayType to describe the shape of an array.
5793 Guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux).
5794 * image.c: endian fixes by Laurent Rioux.
5795 * object.h, object.c: rename MonoStringObject to MonoString and
5796 MonoArrayObject to MonoArray. Change some function names to conform to
5797 the style mono_<object>_<action>. mono_string_new_utf16 () takes a
5798 guint16* as first argument, so don't use char*.
5799 Provide macros to do the interesting things on arrays in a portable way.
5800 * threads-pthread.c: updates for the API changes and #include <sched.h>
5801 (required for sched_yield()).
5802 * icall.c: updates for the API changes above.
5803 * Makefile.am, mono-endian.c. mono-endian.h: include unaligned read routines for
5804 platforms that need them.
5806 Mon Oct 8 10:43:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
5808 * class.c: set the correct type for all the fundamental
5809 type when loading the class.
5811 2001-10-05 Dick Porter <dick@ximian.com>
5813 * threads-pthread.c (pthread_mutex_timedlock): Simple
5814 compatibility version for C libraries that lack this call.
5816 Thu Oct 4 19:10:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
5818 * class.c: MonoTypes stored in MonoClass are stored as
5819 fundamental MonoTypes when the class represents a
5820 fundamental type (System.Int32, ...).
5821 The TypeHandle return by ldtoken is a MonoType*.
5822 * icall.c: ves_icall_get_data_chunk () write out all the
5823 PE/COFF stuff. Implement ves_icall_define_method (),
5824 ves_icall_set_method_body (), ves_icall_type_from_handle ().
5825 * image.c: properly skip unknown streams.
5826 * loader.h, loader.c: add type_class to mono_defaults.
5827 * metadata.c, metadata.h: export compute_size () as
5828 mono_metadata_compute_size () with a better interface.
5830 * pedump.c: don't try to print the entry point RVA if there is no entry point.
5831 * reflection.c, reflection.h: many cleanups, fixes, output method
5832 signatures and headers, typedef and typeref info, compress the metadata
5833 tables, output all the heap streams, cli header etc.
5834 * row-indexes.h: typo fixes.
5836 2001-10-04 Dick Porter <dick@ximian.com>
5838 * object.h: Add a synchronisation mutex struct to MonoObject
5840 * object.c (mono_new_object): Initialise the object
5841 synchronisation mutexes
5843 * icall.c: System.Threading.Monitor internal calls
5845 * threads-pthread.h:
5846 * threads-pthread.c: System.Threading.Monitor internal calls
5848 * threads-types.h: New file, includes the system-specific thread
5851 * threads-pthread-types.h:
5852 * threads-pthread-types.c: New files, handle pthread-specific
5853 synchronisation types
5855 * threads-dummy-types.h:
5856 * threads-dummy-types.c: New files of dummy support for
5857 thread-specific types
5861 * pedump.c: include mono-endian.h not endian.h
5863 * Makefile.am: More threads files.
5864 Name mono-endian.h not endian.h
5866 Tue Oct 2 20:33:48 CEST 2001 Paolo Molaro <lupus@ximian.com>
5868 * Makefile.am, reflection.h, reflection.c: move here the reflection related
5869 stuff and implement a few more bits.
5870 * icall.c: a field needs to be dereferenced twice. Do not use the same
5871 name for two variables in the same scope.
5872 * image.c, image.h: cleanups.
5874 2001-10-02 Dietmar Maurer <dietmar@ximian.com>
5876 * class.c (mono_class_metadata_init): bug fix: compute the right size
5878 Mon Oct 1 20:43:57 CEST 2001 Paolo Molaro <lupus@ximian.com>
5880 * icall.c: implemented some of the Reflection internalcalls.
5881 * image.c, image.h: start writing out the PE/COFF image.
5882 * metadata.h, metadata.c: implement mono_metadata_encode_value ()
5883 that does the reverse than decode_blob_size ().
5884 * object.c: use mono_metadata_encode_value (). Move here
5885 temporary implementation of mono_string_to_utf8 ().
5886 * rawbuffer.c: make malloc_map static.
5888 Fri Sep 28 19:26:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
5890 * metadata.c: fix type comparison for arrays.
5891 * loader.h, loader.c: half-assed fix to get more tests work in cygwin.
5892 Added a couple of new classes to monodefaults.
5893 * icall.c: added a couple of Reflection-related internalcalls.
5894 * class.h, class.c: implemented mono_ldtoken () for RuntimeTypeHandles.
5895 Added a byval_arg MonoType to MonoClass.
5897 2001-09-28 Dick Porter <dick@ximian.com>
5900 * threads-pthread.h:
5901 * threads-pthread.c: Implemented internal calls for
5902 LocalDataStoreSlot operations. Applied mutexes around all shared
5903 data. Reworked the thread creation and Start() operations to
5904 avoid a race condition.
5907 * threads-dummy.c: Dummy calls for the LocalDataStoreSlot operations
5909 Thu Sep 27 21:45:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
5911 * rawbuffer.c: disable mmap on cygwin since it seems to be broken there.
5913 Thu Sep 27 19:52:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
5915 * class.c, loader.c: warn and return NULL instead of erroring out.
5916 * icall.c: added System.AppDomain::getCurDomain().
5917 * loader.c: we don't need to lookup the typedef again for p/invoke calls.
5919 2001-09-25 Dick Porter <dick@ximian.com>
5921 * threads-pthread.h:
5922 * threads-pthread.c: Implemented timed thread joining and added
5923 System.Threading.Thread::Join_internal internal call
5925 * icall.c: Added System.Threading.Thread::Join_internal internal call
5928 * threads-dummy.c: Dummy calls for System.Thread.Thread::Join_internal
5930 Mon Sep 24 18:56:59 CEST 2001 Paolo Molaro <lupus@ximian.com>
5932 * object.c, object.h: added mono_ldstr (), mono_string_is_interned () and
5933 mono_string_intern () to implement the semantics of the ldstr opcode
5934 and the interning of System.Strings.
5935 * icall.c: provide hooks to make String::IsIntern and String::Intern
5938 2001-09-23 Dick Porter <dick@ximian.com>
5941 * threads-dummy.h: New files of dummy threading routines
5943 * Makefile.am (THREAD_SOURCE): Arrange to compile different thread
5944 support code based on system specifics
5946 Rename PTHREAD_LIBS to THREAD_LIBS
5948 2001-09-23 Dick Porter <dick@ximian.com>
5950 * threads-pthread.c: Implement the System.Threading.Thread::Sleep,
5951 Schedule (called when asked to Sleep for 0 ms) and CurrentThread
5953 (mono_thread_init): Set up a Thread object instance to return when
5954 the main thread calls Thread.CurrentThread
5955 (mono_thread_cleanup): Wait for all subthreads to exit
5957 * icall.c: New internal calls for System.Threading.Thread::Sleep
5958 (including Schedule) and CurrentThread
5960 * threads.h: New file, to insulate thread-specific stuff from the
5963 2001-09-21 Dick Porter <dick@ximian.com>
5965 * threads-pthread.h:
5966 * threads-pthread.c: New file, for handling pthreads-style
5967 threading support. Start() now starts a new thread and executes
5968 the ThreadStart delegate instance.
5970 * icall.c: Added the internalcall for
5971 System.Threading.Thread::Start_internal
5973 * Makefile.am: Added new files, and PTHREADS_LIBS to the link line
5975 Thu Sep 20 19:37:39 CEST 2001 Paolo Molaro <lupus@ximian.com>
5977 * loader.c: work around the different signatures for delegates
5978 constructors csc generates in compiled code vs the ones compiled in mscorlib.
5980 Tue Sep 18 13:16:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
5982 * class.h, class.c: add mono_class_get_field_from_name ().
5983 * *: Fix C comments and other ANSI C issues.
5985 Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
5987 * endian.h, assembly.c: fix some endianness issues.
5989 Fri Sep 7 18:40:40 CEST 2001 Paolo Molaro <lupus@ximian.com>
5991 * loader.h, load.c: add delegate_class to mono_defaults.
5992 Handle runtime provided methods in mono_get_method ().
5994 2001-08-29 Dietmar Maurer <dietmar@ximian.com>
5996 * loader.c (mono_get_method): use pinvoke for internal call
5998 * icall.c: use pinvoke for internal call
6000 * loader.c (method_from_memberref): set the method name
6002 Wed Aug 29 12:43:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
6004 * metadata.c: help the compiler generate better code for
6005 mono_class_from_mono_type ().
6007 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
6009 * class.c (mono_class_metadata_init): delayed computing of the
6010 class size to mono_class_metadata_init ()
6012 Tue Aug 28 15:47:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
6014 * class.c, class.h: add an interfaces member to MonoClass.
6015 * image.c, image.h: add assembly_name field to MonoImage
6016 from the assembly table.
6017 * metadata.c, metadata.h: add mono_metadata_interfaces_from_typedef ().
6019 Mon Aug 27 20:12:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
6021 * class.c: Handle Array in mono_class_from_mono_type ().
6022 * metadata.c, pedump.c: some endian fixes.
6024 Mon Aug 27 15:23:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
6026 * class.c, loader.c, loader.h: More types handled in mono_class_from_mono_type ().
6027 * metadata.c: fix small problem introduced with the latest commit.
6029 Mon Aug 27 12:17:17 CEST 2001 Paolo Molaro <lupus@ximian.com>
6031 * loader.c, metadata.c, metadata.h: Export mono_metadata_type_equal().
6032 We don't need a MonoMetadata pointer anymore to compare signatures in
6033 mono_metadata_signature_equal (), update callers.
6034 Reduced memory usage an number of allocations for MonoMethodHeader and
6035 MonoMethodSignature.
6037 Sun Aug 26 23:03:09 CEST 2001 Paolo Molaro <lupus@ximian.com>
6039 * metadata.c: added compare for szarray.
6041 Sun Aug 26 11:34:24 CEST 2001 Paolo Molaro <lupus@ximian.com>
6043 * class.h, class.c, loader.h, loader.c: export mono_class_from_mono_type ()
6044 and add a couple more types to it and mono_defaults. Give an hint on
6045 classes that need implementing in our corlib and are referenced
6048 Sat Aug 25 12:52:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
6050 * class.h, class.c: keep track if a class is also an Enum.
6051 * loader.c: Implement a couple more types for use in libffi
6052 marshalling. Gives better diagnostics when failing to dlopen
6053 a library. Set method->klass for P/Invoke methods, too.
6055 Fri Aug 24 19:30:25 CEST 2001 Paolo Molaro <lupus@ximian.com>
6057 * class.c, class.h: add a MonoType this_arg to MonoClass that
6058 represents a pointer to an object of the class' type that
6059 can be used by the interpreter and later the type cache.
6060 Add best guess alignment info for valuetype objects.
6062 Fri Aug 24 15:50:31 CEST 2001 Paolo Molaro <lupus@ximian.com>
6064 * metadata.h, metadata.c, class.h, class.c: squeezed MonoParam
6065 into MonoType: one less level of indirection and allocation and
6066 simplifies quite a bit of code. Added cache for MonoTypes that are
6067 used frequently, so that we don't need to allocate them all the time.
6069 2001-08-24 Dietmar Maurer <dietmar@ximian.com>
6071 * class.c (mono_class_create_from_typedef): System.Enum is also a
6072 value type, although it does not derive from System.ValueType
6073 (maybe a bug in the ms compiler?)
6075 * metadata.c (mono_type_size): return the right size for value types
6077 * loader.c (mono_get_method): only initialize method header if not abstract
6079 * class.c (mono_class_from_mono_type): use mono_default values.
6081 2001-08-23 Dietmar Maurer <dietmar@ximian.com>
6083 * *: use MonoClass pointers instead of <type_tokens>
6085 * class.h: new flag: metadata_inited.
6087 * class.c (mono_class_metadata_init): impl.
6088 (mono_class_instance_size): impl.
6089 (mono_class_data_size): impl.
6091 Wed Aug 22 16:27:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
6093 * metadata.c, loader.h, loader.c, image.h, image.c, class.h, class.c:
6094 MonoClass now has the name and name_space fields.
6095 MonoMethod has a pointer to its MonoClass, instead of MonoImage.
6096 mono_get_method () takes and optional MonoClass as argument.
6097 Removed mono_typedef_from_name() and added mono_class_token_from_name()
6098 instead that takes advantage of a map from class names to typedef
6099 tokens in MonoImage.
6101 Tue Aug 21 18:54:58 CEST 2001 Paolo Molaro <lupus@ximian.com>
6103 * metadata.c: zero is not a valid alignment boundary.
6104 Merge MONO_TYPE_VOID in default decoding code.
6106 2001-08-21 Dietmar Maurer <dietmar@ximian.com>
6108 * image.h: merged MonoMetadata into MonoImage
6110 * class.h: cleanup of MonoArrayClass, use a MonoClass pointer to
6111 identify the type of elements.
6113 Mon Aug 20 19:39:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
6115 * blob.h: fix MONO_TYPE_TYPEDBYREF value.
6116 * cil-coff.h: split MonoMSDOSHeader and add size info.
6117 * image.c: add some consistency checks.
6118 * metadata.c: fix row size computation: one programmer
6119 error and one LAMESPEC. Handle MONO_TYPE_TYPEDBYREF.
6120 add explanation for the locator routine.
6121 Fix decoding of size in method header.
6123 2001-08-20 Miguel de Icaza <miguel@ximian.com>
6125 * assembly.c (g_concat_dir_and_file): Use _S for string concat.
6126 (g_concat_dir_and_file): Bring g_concat_dir_and_file
6127 function from gnome-libs. This uses the right path separator
6128 based on the OS, and also works around a bug in some systems where
6129 a double slash is not allowed.
6130 (default_assembly_name_resolver): Use g_concat_dir_and_file
6131 (mono_assembly_open): ditto.
6133 2001-08-20 Dietmar Maurer <dietmar@ximian.com>
6135 * metadata.c (mono_metadata_signature_equal): impl.
6137 * *: void is now a realy MonoType (instead of using NULL)
6139 * metadata.c (do_mono_metadata_parse_type): use
6140 mono_metadata_parse_type to parse void value.
6142 Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
6144 * metadata.c, metadata.h: in the signature and method header store
6145 only the space required for holding the loca vars and incoming arguments.
6147 2001-08-15 Dietmar Maurer <dietmar@ximian.com>
6149 * metadata.c (do_mono_metadata_parse_type): treat void like any
6150 other type (instead of assigning NULL);
6152 2001-08-14 Dietmar Maurer <dietmar@ximian.com>
6154 * metadata.c (mono_metadata_parse_mh): fixxed pinned/byref value
6156 2001-08-09 Dietmar Maurer <dietmar@ximian.com>
6158 * image.c (do_mono_image_open): added a cache for arrays.
6160 Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6162 * metadata.h, metadata.c: add mono_metadata_decode_row_col () to
6163 decode a single column from a row in a metadata table and changes
6164 to take advantage of it in the typedef locator (gives a nice speed up).
6165 Store offset info for function params.
6167 2001-08-02 Dietmar Maurer <dietmar@ximian.com>
6169 * image.h (MONO_IMAGE_IS_CORLIB): removed
6171 Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
6173 * assembly.c: how could mono_assembly_close () had ever worked?
6174 * metadata.c, metadata.h: provide offset info for local vars.
6175 Implement mono_type_size () to take care of alignment as well
6176 as size (it was mono_field_type_size in cli/class.c before).
6178 2001-08-01 Dietmar Maurer <dietmar@ximian.com>
6180 * image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
6182 * assembly.h (CORLIB_NAME): set to corlib.dll
6184 * assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
6186 Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6188 * metadata.h, metadata.c, Makefile.am, private.h, assembly.c, blob.h,
6189 cil-coff.h, image.c, image.h, pedump.c, rawbuffer.c, rawbuffer.h, row-indexes.h,
6190 tokentype.h: massive namespace cleanup.
6192 Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
6194 * metadata.h, metadata.c: decode exception clauses when parsing method header.
6196 2001-07-27 Dietmar Maurer <dietmar@ximian.com>
6198 * metadata.c (mono_metadata_free_type): added check for type !=
6199 NULL (void) before calling mono_metadata_free_type()
6201 Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
6203 * metadata.h, row_indexes.h: added header with enumerations to use
6204 to index in the columns from tables in metadata and to decode coded
6205 tokens: we should start using this instead of embedding magic numbers
6208 Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
6210 * assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
6211 Move metadata_t info from cli_image_info_t to MonoImage, where
6212 it's easily accessible. Changed all the uses accordingly.
6213 Added the method and class caches to MonoImage.
6214 * metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
6215 and mono_metadata_decode_value () signature to be more consistent
6216 with the other parse functions (and simplify code). Taken advantage
6217 of zero-length array allocation with GCC. Removed reduntant (and
6218 wrong) MonoFieldType struct and use MonoParam instead. Changed
6219 mono_metadata_parse_field_type () to use common code for parsing.
6220 Added mono_metadata_typedef_from_field () and
6221 mono_metadata_typedef_from_method () to lookup a typedef index from a
6222 field or method token.
6223 Pack the MonoRetType structure more tightly (fits in 8 bytes now).
6225 2001-07-23 Miguel de Icaza <miguel@ximian.com>
6227 * metadata.c (mono_metadata_parse_field_type): Implement.
6228 (do_mono_metadata_parse_type): Split engine from
6229 mono_metadata_parse_type, so that we can create smaller structures
6230 for things that just have one pointer to the MonoType (look at
6233 2001-07-20 Miguel de Icaza <miguel@ximian.com>
6235 * metadata.c (mono_metadata_parse_mh): Correct the implementation,
6236 as Jan Gray found out, it is incorrect.
6238 2001-07-18 Miguel de Icaza <miguel@ximian.com>
6240 * assembly.c: Implement asssembly loading. This loads an image
6241 and loads all the referenced assemblies. Come to think of it, we
6242 could always do lazy loading of the assemblies.
6244 * image.c (mono_image_open): Keep loaded images in a hashtable.
6246 * image.h (MonoImage): Add reference count.
6248 2001-07-17 Miguel de Icaza <miguel@ximian.com>
6250 * assembly.c (mono_assembly_open): Keep track of the file name in
6251 case the assembly has no ASSEMBLY table.
6253 * metadata.h: Fixed Paolo's quick hack. Put the documnentation
6256 Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
6258 * metadata.c, metadata.h: decode local vars in method header
6259 parse function. Change callers accordingly.
6261 Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
6263 * metadata.h, cil-coff.h: protect against multiple inclusion.
6264 Added some new structures to hold information decoded from metadata:
6265 MonoType, MonoParam, MonoArray, MonoMethod, MonoMethodSignature
6266 and relevant decoding/free functions.
6267 * metadata.c: implement decoding functions. Add warning for out of bounds
6268 index in mono_metadata_locate(). Implement mono_get_method () to retreive
6269 all the info about a method signature and invocation. Remove check on
6270 uninitialized local var in parse_mh() and fix memory leak.
6272 2001-07-12 Miguel de Icaza <miguel@ximian.com>
6274 * metadata.h: More macros.
6276 * tokentype.h: New file.
6278 Fri Jul 6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
6280 * assembly.c: added a consistency check and initialize
6281 some structures with g_new0().
6282 * metadata.c: fixed a couple more bugs in table size computation
6283 and add other checks for out-of bound access to metadata.
6285 Thu Jul 5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
6287 * metatada.c: fix bugs computing table sizes. Spew a
6288 warning when index in string heap is out of bounds.
6290 2001-07-04 Miguel de Icaza <miguel@ximian.com>
6292 * metadata.h: Add a couple of macros to manipulate tokens.
6294 Tue Jul 3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
6296 * assembly.c: g_free(ii->cli_sections) (and avoid double free of
6297 cli_section_tables).
6299 2001-07-01 Miguel de Icaza <miguel@ximian.com>
6301 * metadata.c (mono_metadata_user_string): New function, provides
6302 access to the UserString heap.
6304 2001-06-27 Miguel de Icaza <miguel@ximian.com>
6306 * metadata.c: Add inline documentation.
6308 2001-06-26 Miguel de Icaza <miguel@ximian.com>
6310 * propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
6313 2001-06-22 Miguel de Icaza <miguel@ximian.com>
6315 * typeattr.h: New file, TypeAttribute flags.
6317 2001-06-21 Miguel de Icaza <miguel@ximian.com>
6319 * mono/metadata/assembly.c (mono_assembly_ensure_section_idx,
6320 mono_assembly_ensure_section): Section loading code.
6321 (load_section_tables): Load the sections.
6323 * mono/metadata/metadata.c (mono_metadata_locate_token,
6324 mono_metadata_locate): Functions to locate the information
6325 definition given a token or a table and an index.
6326 (mono_metadata_compute_table_bases): New.
6327 (compute_size): New function to compute the sizes of the various
6330 * mono/metadata/metadata.h: Finish listing the different index
6333 * mono/metadata/pedump.c: Improve to dump new information.
6335 2001-06-19 Miguel de Icaza <miguel@ximian.com>
6337 * mono/metadata/metadata.c: Entered all the tables matching
6340 * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2