1 2003-08-15 Zoltan Varga <vargaz@freemail.hu>
3 * .cvsignore: Added monosn.
5 * reflection.h reflection.c loader.c: Added support for parameter
6 marshalling to dynamically created types. Fixes #47295.
8 Fri Aug 15 11:42:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
10 * rand.c: remove useless warnings.
12 Wed Aug 13 15:49:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
14 * class.c: implemented ldtoken for methods and fieldrefs.
16 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18 * threadpool.c: when mono_async_invoke was called, no one took care of
19 monitoring the queue. So if the method invoked took some time and we
20 got new async invoke requests after 500 ms (the thread created waited
21 that long in WaitForSingleObject), the new async invoke was not called
22 until the previous one finished.
24 This is fixed now. Thanks to Totte for helping with it.
26 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28 * threadpool.c: set threadpool_thread to TRUE. Patch by totte.
30 2003-08-11 Martin Baulig <martin@ximian.com>
32 * mono-debug-debugger.c (mono_debugger_lookup_type): New function.
34 2003-08-06 Martin Baulig <martin@ximian.com>
36 * mono-debug-debugger.c: Added support for static fields,
37 properties and methods.
39 2003-08-06 Martin Baulig <martin@ximian.com>
41 * mono-debug-debugger.c: Don't store the MonoString's vtable to
42 make this work for applications with multiple application domains.
44 2003-08-04 Martin Baulig <martin@ximian.com>
46 * mono-debug-debugger.c: Completely reworked the type support; the
47 most important thing is that we're now just using one single
48 `MonoType' instance per type.
50 Sat Aug 2 13:05:27 BST 2003 Malte Hildingson <malte@amy.udd.htu.se>
52 * mono-endian.h, mono-endian.c, icall.c: Added icall
53 ves_icall_System_Double_AssertEndianity to assert double word endianity
54 on ARM (FPA). The icall uses a macro defined in mono-endian.h.
56 Fri Aug 1 16:51:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
58 * class.c, class.h, reflection.c, metadata.c, icall.c: more generics
59 support, icalls and fixes.
61 2003-07-31 Miguel de Icaza <miguel@ximian.com>
63 * unicode.c (ves_icall_System_Char_IsPunctuation): The set of
64 classes that are a punctuation character in .NET is not the same a
67 Tue Jul 29 18:07:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
69 * socket-io.c: ipv6 portability fixes from Felix Ortga (guile@lared.es).
71 2003-07-29 Miguel de Icaza <miguel@ximian.com>
73 * icall.c: Add new MemCopy internalcall.
74 (ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
75 Simplified code; It is not necessary to handle all the cases here,
76 as the C# code takes care of it. Only handle the case of the name
77 resource embedded into the assembly.
79 Changed signature to return the data pointer and the size of the
82 2003-07-26 Miguel de Icaza <miguel@ximian.com>
84 * reflection.c (mono_image_get_method_info): Allow for 0x40 to be
85 encoded. (Partition II.22.1.7: PInvokeAttribute:SupportsLastErr).
87 2003-07-29 Lluis Sanchez Gual <lluis@ximian.com>
89 * socket-io.c: ignore EINTR error in select.
91 Tue Jul 29 15:25:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
93 * class.h, class.c: removed unused subclasses field in MonoClass.
95 2003-07-29 Lluis Sanchez Gual <lluis@ximian.com>
97 * icall.c: improve fix of get_base_definition(). If the parent class
98 doesn't have the mehod, look at the parent of the parent.
99 * object.c: mono_message_init(): use the attribute PARAM_ATTRIBUTE_OUT
100 to check if a parameter is an in or out parameter
101 (PARAM_ATTRIBUTE_IN is not set by default).
102 mono_method_return_message_restore(): Use mono_class_value_size to
103 get the size of a value type. mono_type_stack_size (parameterType)
104 does not return the correct value if parameterType is byRef.
105 mono_load_remote_field(), mono_load_remote_field_new(),
106 mono_store_remote_field(), mono_store_remote_field_new():
107 raise exception if the remote call returns an exception.
109 2003-07-28 Martin Baulig <martin@ximian.com>
111 * mono-debug-debugger.c (mono_debugger_runtime_invoke): New
112 method. This is a wrapper around mono_runtime_invoke() which
113 boxes the instance object if neccessary.
115 Fri Jul 25 19:14:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
117 * class.c, class.h, image.c, image.h, loader.c, metadata.c,
118 metadata.h, row-indexes.h, verify.c: first cut of generics support.
120 Thu Jul 24 11:34:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
122 * icall.c: disable mcs bug workaround.
124 2003-07-21 Miguel de Icaza <miguel@ximian.com>
126 * object.c (mono_runtime_class_init): Take the metadata_section
127 mutex before obtaining the domain mutex.
129 * appdomain.h: Added definition of metadata_section mutex here.
131 * object.c: define metadata_mutex here.
133 2003-07-24 Ravi Pratap <ravi@ximian.com>
135 * icall.c: Remove the FIXED_MCS_45127 workarounds - this has been
138 2003-07-24 Lluis Sanchez Gual <lluis@ximian.com>
140 * reflection.c: Fix bug #46669
142 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
147 * object.h: fill in the type name for TypeLoadException.
149 2003-07-23 Ravi Pratap <ravi@ximian.com>
151 * class.c: Fixes from Paolo in response to bug #45415 (Subclass
152 relationship between TypeBuilders while compiling corlib) and bug
153 45993 (Array types returned from the runtime while compiling
154 corlib were from the loaded corlib).
156 2003-07-22 Martin Baulig <martin@ximian.com>
158 * mono-debug-debugger.c: Reworked the type support a bit more;
159 distinguish between types and classes.
161 Tue Jul 22 15:48:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
163 * icall.c: add IsArrayImpl icall.
165 2003-07-22 Zoltan Varga <vargaz@freemail.hu>
167 * class.c (mono_class_layout_fields): Fix gc aware auto layout by
168 initializing real_size only once. Also fix bug #46602.
170 2003-07-21 Jerome Laban <jlaban@wanadoo.fr>
172 * object.c: Renamed mono_metadata_section to metadata_section.
174 2003-07-21 Lluis Sanchez Gual <lluis@ximian.com>
176 * icall.c: in MS.NET ves_icall_Type_GetInterfaces returns an
177 empty array if the type is an array. Fixed.
178 ves_icall_MonoMethod_get_base_definition: if the base method
179 is abstract, get the MethodInfo from the list of methods of
181 * reflection.c: ParameterInfo.PositionImpl should be zero-based
182 and it was 1-based. Fixed in mono_param_get_objects.
184 2003-07-20 Martin Baulig <martin@ximian.com>
186 * mono-debug.h: Set version number to 31.
187 (mono_debug_init): Added `MonoDomain *' argument.
189 * mono-debug-debugger.c: Reworked the type support; explicitly
190 tell the debugger about builtin types; pass the `klass' address to
193 2003-07-20 Jackson Harper <jackson@latitudegeo.com>
195 * image.c: Allow new metadata tables to be loaded without a
196 warning. Also update the warning message to give the new constant value.
198 Fri Jul 18 13:12:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
200 * class.c, class.h, debug-helpers.c, icall.c, image.c, marshal.c,
201 metadata.c, metadata.h, mono-debug-debugger.c, object.c, reflection.c:
202 array type representation changes.
204 Fri Jul 18 11:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
206 * icall.c, appdomain.h, appdomain.c: support full runtime shutdown
207 on Environment.Exit () call.
209 Thu Jul 17 17:21:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
211 * icall.c, reflection.h, reflection.c, verify.c: cleanups,
212 requires a matching corlib.
214 2003-07-17 Lluis Sanchez Gual <lluis@ximian.com>
216 * Changelog: My editor decided to add a CR to each line. Sorry about that.
217 Committed again without the CRs.
219 2003-07-17 Lluis Sanchez Gual <lluis@ximian.com>
221 * socket-io.c: Get system_assembly using mono_image_loaded(), instead
222 getting it from the "this" socket instance. Did not work
223 if the socket is a subclass of Socket.
224 Also fixed bug #35371.
226 Thu Jul 17 13:39:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
228 * metadata.c: fixed size for TypedByRef.
229 * loader.c: when searching for a method, consider the vararg amrker.
230 * unicode.c, decimal.c: constify some arrays.
232 2003-07-15 Dick Porter <dick@ximian.com>
234 * socket-io.c: Fixed compilation for gcc < 3.2.
236 Fixed compilation for machines that don't have AF_INET6 (thanks to
237 Bernie Solomon <bernard@ugsolutions.com> for that part.)
239 Fixed compile warnings.
241 Fixed formatting and line endings.
243 2003-07-14 Jerome Laban <jlaban@wanadoo.fr>
246 * socket-io.c: Added IPv6 support.
248 2003-07-13 Zoltan Varga <vargaz@freemail.hu>
250 * class.c (mono_class_is_assignable_from): New function to implement
251 the is_assignable_from logic. Used by mono_object_isinst,
252 Type::IsAssignableFrom () and the interpreter.
254 * class.c (mono_class_is_subclass_of): Make all classes a subclass of
255 Object, even interfaces.
257 * object.c (mono_object_isinst): Implement in terms of
260 * icall.c (ves_icall_type_is_assignable_from): New icall.
262 2003-07-11 Zoltan Varga <vargaz@freemail.hu>
264 * domain.c (foreach_domain): fix compiler warning.
266 2003-07-11 Dietmar Maurer <dietmar@ximian.com>
268 * image.c (load_metadata_ptrs): use g_strndup because strndup is
269 not available on all plattforms
271 2003-07-10 Zoltan Varga <vargaz@freemail.hu>
273 * image.h image.c: Store the metadata version string in MonoImage.
274 * icall.c: New icall to retrieve the image version.
275 * reflection.c (create_dynamic_image): Fill in the image version field
276 * reflection.c (build_compressed_metadata): Use the image version
277 from the image structure.
279 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
281 * appdomain.c: modified comment.
282 * gc.c: finalizer_thread can call finalizers even when finished == TRUE.
283 That will be its last iteration when mono_gc_cleanup is called from
284 mono_runtime_cleanup and before the domain is unloaded.
288 2003-07-04 Dietmar Maurer <dietmar@ximian.com>
290 * marshal.c (mono_marshal_get_native_wrapper): fixes for [out]
293 Thu Jul 3 17:22:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
295 * object.c, file-io.c, metadata.c, mono-endian.h, reflection.c,
296 rawbuffer.c: more 64 bit and picky (or old) compiler fixes from
297 Bernie Solomon <bernard@ugsolutions.com>.
299 Thu Jul 3 17:17:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
301 * object.c, object.h: provide mono_object_new_fast() for faster
302 allocation in some special cases.
304 Wed Jul 2 13:21:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
306 * object.h, reflection.h, verify.c: fixes for some 64bit issues,
307 mostly from a patch by Laramie Leavitt <lar@leavitt.us>.
309 Tue Jul 1 21:24:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
311 * threadpool.c: fix leaks.
313 2003-07-01 Dick Porter <dick@ximian.com>
315 * threadpool.c (mono_async_invoke): Use mono_g_hash_table_remove when
316 using MonoGHashTables. Fixes threadpool bug posted to list.
318 Tue Jul 1 11:45:40 CEST 2003 Paolo Molaro <lupus@ximian.com>
320 * image.h, image.c: added support to load an assembly from a byte array.
321 * Makefile.am, assembly.c, make-bundle.pl, sample-bundle: added
322 assembly bundle support.
324 2003-06-27 Dietmar Maurer <dietmar@ximian.com>
326 * threadpool.c (mono_thread_pool_add): keep a reference to the
327 AsyncResult to prevent GC
329 Thu Jun 26 12:13:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
333 2003-06-25 Dick Porter <dick@ximian.com>
335 * threadpool.c (mono_thread_pool_add): Don't set up a finaliser
336 for the async object, the WaitHandle object will close the handle.
339 Wed Jun 25 18:12:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
341 * class.c: in mono_array_class_get (), lookup from the hash with the
342 same type we insert: this works around a bug in
343 mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
344 lluis. The real fix will have to wait for after the release.
346 Wed Jun 25 13:14:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
348 * icall.c: fix memory leak when getting type members.
350 Mon Jun 23 16:12:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
352 * reflection.c: added more pubtoken special cases.
354 Mon Jun 23 15:29:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
356 * class.c: handle field offset correctly when class size
357 is set (bug# 45182, partially from a patch by jlaban@wanadoo.Fr (Jerome Laban)).
359 2003-06-20 Martin Baulig <martin@ximian.com>
361 * mono-debug-debugger.h (MonoDebuggerSymbolFile): Added `MonoImage
364 2003-06-20 Martin Baulig <martin@ximian.com>
366 * image.h, mono-debug-debugger.h: Fixed compiler warnings.
368 2003-06-20 Martin Baulig <martin@ximian.com>
370 * mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed. We
371 just distinguish between variables in registers and variables at
372 an offset relative to a register.
374 2003-06-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
376 * icall.c: #ifdef out latest changes until mcs is fixed.
378 Thu Jun 19 11:03:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
380 * icall.c: return members in metadata order.
382 Wed Jun 18 15:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
384 * icall.c: avoid infinite loop in GetTimeZoneData.
386 Wed Jun 18 12:47:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
388 * icall.c: added Marshal.Prelink/All icalls.
390 Wed Jun 18 12:17:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
392 * object.c, object.h: fix warnings and do some overflow checking
393 when creating arrays.
395 2003-06-17 Dick Porter <dick@ximian.com>
398 * file-io.c: File attributes need to be tweaked slightly when
399 passed from the managed to the w32 world.
401 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
402 * profiler.h profiler-private.h profiler.c: Rework last patch
403 based on suggestion by Paolo.
405 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
407 * profiler.h profiler-private.h profiler.c: Added infrastructure for
408 instruction level coverage data collection.
409 * profiler.h profiler.c (: Added new callback function which can be
410 used by the profiler to limit which functions should have coverage
412 * profiler.c (mono_profiler_load): Call g_module_build_path to
413 generate the file name of the profiler library.
415 Mon Jun 16 18:11:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
417 * profiler.c, profiler.h, profiler-private.h: added basic block
418 coverage profiling API.
420 2003-06-15 Zoltan Varga <vargaz@freemail.hu>
422 * reflection.c (mono_reflection_create_runtime_class): Add support
423 for events in dynamically generated code.
425 * gc.c: Start GCHandle indexes from 1, since 0 means the handle is
428 Sat Jun 14 19:01:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
430 * icall.c: when getting timezone info, return reasonable values if we
431 can't get the actual data.
433 2003-06-14 Dick Porter <dick@ximian.com>
435 * threads.c (start_wrapper): Remove the reference to the thread
436 object in the TLS data, so the thread object can be finalized.
437 This won't be reached if the thread threw an uncaught exception,
438 so those thread handles will stay referenced :-( (This is due to
439 missing support for scanning thread-specific data in the Boehm GC
440 - the io-layer keeps a GC-visible hash of pointers to TLS data.)
442 Sat Jun 14 13:16:17 CEST 2003 Paolo Molaro <lupus@ximian.com>
444 * reflection.c: ensure streams and tables are first allocated with
445 ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
447 Sat Jun 14 13:13:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
449 * icall.c: fixed GetElementType for byrefs (bug# 44792).
451 2003-06-13 Zoltan Varga <vargaz@freemail.hu>
453 * reflection.c (mono_reflection_create_runtime_class): Add support for
454 properties to dynamically created classes.
455 * reflection.c: Fix a few places where non-MonoObjects were inserted
456 into the tokens hashtable.
458 Fri Jun 13 19:10:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
460 * object.c: some support to handle out of memory exceptions.
462 2003-06-12 Dietmar Maurer <dietmar@ximian.com>
464 * marshal.c (mono_marshal_get_native_wrapper): support reference
467 Wed Jun 11 18:32:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
469 * object.h, object.c: more portability stuff from Bernie Solomon.
470 Unexport mono_object_allocate(). Added mono_object_unbox ().
471 Set exitcode when an unhandled exception is thrown.
473 2003-06-11 Dietmar Maurer <dietmar@ximian.com>
475 * marshal.c (mono_marshal_get_native_wrapper): use custom
476 marshaler for return types.
478 2003-06-10 Dick Porter <dick@ximian.com>
480 * socket-io.c: Don't assume that one of struct ip_mreqn or struct
483 Tue Jun 10 17:35:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
485 * debug-mono-symfile.c, marshal.c, metadata.c, monitor.c,
486 mono-debug-debugger.c, mono-debug.c, process.c: portability fixes
487 by Bernie Solomon <bernard@ugsolutions.com>.
489 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
491 * gc.c (mono_gc_init): Avoid error message on shutdown when
492 GC_DONT_GC=1 is used.
494 * icall.c (ves_icall_System_Reflection_Module_GetGuidInternal):
495 New icall to return the GUID of a module.
497 Mon Jun 9 19:33:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
499 * class.c: ensure instance size always includes the parent's size
500 even whem class size is set explicitly (fixes bug#44294).
502 Thu Jun 5 19:51:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
504 * profiler.h, profiler.c: made the simple profiler thread-safe,
505 get more accurate timing info. Allow the loading of an
506 externally-developed profiler module.
508 2003-06-05 Dietmar Maurer <dietmar@ximian.com>
510 * marshal.c (mono_marshal_get_native_wrapper): improved
511 class/byref arguments.
512 (mono_marshal_get_native_wrapper): better string marshaling support.
514 Wed Jun 4 18:01:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
516 * class.c: ensure .pack and .size are handled correctly and
517 simplified layout of static fields.
519 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
522 (ves_icall_System_AppDomainSetup_InitAppDomainSetup): fix for bug 42934
524 * loader.c (mono_lookup_pinvoke_call): look for modules in the
525 current directory (fix bug 44008)
527 2003-06-03 Dietmar Maurer <dietmar@ximian.com>
529 * marshal.c (mono_marshal_get_native_wrapper): started support for
531 (mono_delegate_to_ftnptr): consider marshalling specifications
533 Tue Jun 3 11:17:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
535 * reflection.c, reflection.h: emit custom marshal info.
537 2003-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
539 * object.c: free the GError.
540 * icall.c: added CloseEvent_internal.
542 (ves_icall_System_Threading_Events_CloseEvent_internal): new internal
545 2003-06-01 Zoltan Varga <vargaz@freemail.hu>
547 * loader.c (mono_method_get_signature): Add support for dynamic
550 Sat May 31 15:22:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
552 * reflection.c: fixed bug #43905.
554 Fri May 30 12:56:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
556 * class.c, domain.c, icall.c, metadata.h, object.h: support for
557 handling TypedReference and ArgIterator.
558 * loader.c, loader.h: added function to get signature at call site.
560 Thu May 29 11:34:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
562 * metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
563 data readonly. Buglets and warning fixes. Some MethodSpec support.
565 Tue May 27 16:34:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
567 * class.h, class.c, object.c: remove relative numbering support.
569 2003-05-26 Miguel de Icaza <miguel@ximian.com>
571 * marshal.c (mono_marshal_get_native_wrapper): For now, do not
572 free the string, until we get a chance to fix Gtk#
574 2003-05-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
576 * marshal.c: revert last patch.
578 Mon May 26 20:21:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
580 * icall.c: updates for new mono_class_vtable() not calling
581 the type constructor anymore.
583 Mon May 26 12:10:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
585 * object.h, object.c: separate vtable creation from type
586 initialization. Make running the .cctor thread safe.
588 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
590 * marshal.c (mono_marshal_get_native_wrapper): free string return values.
592 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
594 * loader.c (mono_get_method): consider calling convention
596 2003-05-21 Zoltan Varga <vargaz@freemail.hu>
598 * icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
599 to return the invisible global type for a module.
601 * reflection.c (mono_image_build_metadata): Emit global fields too.
603 2003-05-20 Peter Williams <peterw@ximian.com>
605 * loader.c (mono_lookup_internal_call): Add a few newlines.
607 2003-05-20 Zoltan Varga <vargaz@freemail.hu>
609 * reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
612 * appdomain.c (set_domain_search_path): Recalculate search path when
613 AppDomainSetup.PrivateBinPath changes.
615 * object.c (mono_class_compute_gc_descriptor): It turns out some
616 parts of the class libs (like System.Thread) holds pointers to
617 GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
618 to treat native int a pointer type here.
620 Tue May 20 17:18:16 CEST 2003 Paolo Molaro <lupus@ximian.com>
622 * appdomain.h, domain.c: add hashtable for jump target resolution.
624 2003-05-19 Zoltan Varga <vargaz@freemail.hu>
626 * reflection.h reflection.c icall.c: Added new icalls
627 GetManifestResourceInfoInternal, GetModulesInternal and support
630 2003-05-16 Dick Porter <dick@ximian.com>
634 * file-io.c: Implement System.IO.MonoIO::GetTempPath
636 2003-05-14 Lluis Sanchez Gual <lluis@ideary.com>
638 * object.c: mono_store_remote_field: little fix to previous patch.
640 Wed May 14 18:10:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
642 * class.c: add constructors to array classes.
643 * icall.c: special case array construction for InternalInvoke (),
645 2003-05-14 Zoltan Varga <vargaz@freemail.hu>
647 * class.h class.c reflection.c object.c: Added support for field
648 defaults in dynamically generated classes.
650 Wed May 14 13:35:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
652 * reflection.c: properly encode charset for ddlimport.
654 Wed May 14 11:14:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
656 * threads.c: allow compiling without GC.
658 Tue May 13 16:41:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
660 * appdomain.h, object.c, object.h, threads.c, threads.h: added
661 handling of thread static data.
663 Tue May 13 16:36:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
665 * reflection.h, reflection.c: added mono_custom_attrs_free ().
667 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
669 * class.c (mono_array_class_get): always set the serializable flags
670 (mono_array_class_get): always set the SEALED attribute for array types
672 2003-05-12 Dietmar Maurer <dietmar@ximian.com>
674 * loader.c (mono_lookup_pinvoke_call): consider Ansi/Unicode
675 attributes (fix for bug 42021).
677 2003-05-12 Dick Porter <dick@ximian.com>
679 * gc.c: Don't run finalizers when the finalizer thread is
680 finishing up, because the default domain has already been
683 2003-05-11 Miguel de Icaza <miguel@ximian.com>
685 * string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
686 value is null, we should throw an exception. This is slightly
687 different than the other conventions used for the constructor.
689 2003-05-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
691 * socket-io.c: fixed windows build.
693 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
695 * socket-io.c: patch by Jerome Laban that fixes bug #42393.
697 2003-05-10 Zoltan Varga <vargaz@freemail.hu>
699 * object.c (mono_string_new_wrapper): Compatibility fix for MS
702 2003-05-09 Zoltan Varga <vargaz@freemail.hu>
704 * class.c (mono_class_layout_fields): Add experimental GC aware
705 auto layout facility. Requires class library changes to work correctly.
707 (mono_class_setup_vtable): Avoid overriding explicit interface
708 method implementations. Fixes iface3.exe test.
710 * object.c (mono_class_compute_gc_descriptor): Type I can't hold an
712 (mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
713 (mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
715 * metadata.h: Add new type classification macro which determines
716 whenever the type holds an object reference.
718 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
720 * marshal.c (mono_marshal_get_native_wrapper): cleanups
722 2003-05-07 Zoltan Varga <vargaz@freemail.hu>
724 * gc.c (finalizer_thread): Work around a GC bug.
726 2003-05-07 Dietmar Maurer <dietmar@ximian.com>
728 * marshal.c (emit_struct_conv): allow unions
730 * class.c (class_compute_field_layout): added patches from Jerome Laban <jlaban@wanadoo.fr>
732 2003-05-06 Dietmar Maurer <dietmar@ximian.com>
734 * marshal.c (mono_marshal_get_native_wrapper): free strings after pinvoke
736 2003-05-06 Martin Baulig <martin@ximian.com>
738 * mono-debug-debugger.h: #include <mono/io-layer/io-layer.h>.
740 2003-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
743 (Select_internal): allow NULLs, don't create arrays if not needed.
744 Coupled with Socket.cs changes.
747 (mono_thread_pool_add): use GC_MALLOC to allocate the ASyncCall and
748 register a finalizer for it that will close the semaphore handle. This
749 fixes the leak and make Lupus' test run with > 4080 loops.
751 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
753 * marshal.c (mono_marshal_get_struct_to_ptr): added fixes from
754 Jerome Laban (bug #42287)
756 2003-05-02 Martin Baulig <martin@ximian.com>
758 * debug-mono-symfile.h
759 (MonoSymbolFile): Moved declaration into mono-debug.h.
760 (MonoDebugMethodJitInfo): Likewise.
761 (mono_debug_open_mono_symbol_file): Take the MonoDebugHandle as
763 (_mono_debug_address_from_il_offset): Take a
764 MonoDebugMethodJitInfo instead of a MonoDebugMethodInfo.
767 (MonoDebugDomainData): New struct.
768 (mono_debug_get_domain_data): New function.
769 (mono_debug_add_method): Take an additional `MonoDomain *'
771 (mono_debug_source_location_from_address): Likewise.
772 (mono_debug_il_offset_from_address): Likewise.
773 (mono_debug_address_from_il_offset): Likewise.
775 Thu May 1 19:40:37 CEST 2003 Paolo Molaro <lupus@ximian.com>
777 * reflection.c: one more check for null type in custom attrs.
779 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
781 * reflection.c: avoid warning (comparison is always false due to limited
784 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
786 * icall.c: throw an exception in Type.GetField if the argument 'name'
789 Wed Apr 30 10:53:09 CEST 2003 Paolo Molaro <lupus@ximian.com>
791 * reflection.c: fixed handling of enums in named arguments to custom
792 attributes (bug #42123).
794 Tue Apr 29 19:15:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
796 * reflection.c: use the right array element type and handle
797 a null for a Type argument, too.
799 Tue Apr 29 15:46:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
801 * reflection.c: handle arrays as arguments to custom attributes.
803 Tue Apr 29 11:43:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
805 * reflection.c: handle a string value in a custom attr
806 ctor that takes an object.
808 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
810 * marshal.c (mono_mb_emit_restore_result): support MONO_TYPE_PTR
813 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
815 * icall.c (ves_icall_Type_GetNestedType): Fixed warnings.
817 2003-04-27 Martin Baulig <martin@ximian.com>
819 * mono-debug-debugger.h (MonoDebuggerEvent): Renamed
820 MONO_DEBUGGER_EVENT_BREAKPOINT_TRAMPOLINE to
821 MONO_DEBUGGER_EVENT_BREAKPOINT.
822 (mono_breakpoint_trampoline_code): Removed.
823 (mono_debugger_event_handler): The last argument is now a
825 (mono_debugger_insert_breakpoint_full): Removed the
826 `use_trampoline' argument.
827 (mono_debugger_method_has_breakpoint): Likewise.
828 (mono_debugger_trampoline_breakpoint_callback): Renamed to
829 mono_debugger_breakpoint_callback(); take the method and
830 breakpoint number as arguments.
832 Sat Apr 26 19:25:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
834 * metadata.c: fix off by one when loading parameters attributes.
836 2003-04-24 Martin Baulig <martin@ximian.com>
838 * mono-debug-debugger.c (mono_debugger_io_layer): Put this back.
840 2003-04-24 Martin Baulig <martin@ximian.com>
842 * mono-debug-debugger.c: Moved all code which interacts with the
845 * debug-mono-symfile.c: This code now just deals with the symbol
846 file itself, the debugger code is now in mono-debug-debugger.c.
848 2003-04-23 Martin Baulig <martin@ximian.com>
850 * mono-debug.c (mono_debug_source_location_from_il_offset):
851 New method; like mono_debug_source_location_from_address(), but
852 takes an IL offset instead of a machine address.
854 2003-04-23 Martin Baulig <martin@ximian.com>
856 * debug-mono-symfile.h (MonoDebugLineNumberEntry): Removed the
857 `line' field; this is now computed by the debugger.
859 2003-04-23 Martin Baulig <martin@ximian.com>
861 * mono-debug.[ch]: New files. This is the new debugging interface.
863 * mono-debug-debugger.[ch]: New files. Moved all code which
864 interacts with the Mono Debugger here.
866 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
868 * domain.c (mono_init): initialize mono_defaults.monitor_class
870 2003-04-21 Miguel de Icaza <miguel@ximian.com>
872 * reflection.c (method_encode_code): Add a spicy exception to help
873 future compiler authors.
875 2003-04-21 Martin Baulig <martin@ximian.com>
878 (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
879 Make this work with relative pathnames; g_filename_to_uri() needs
880 an absolute filename.
882 2003-04-18 Zoltan Varga <vargaz@freemail.hu>
884 * icall.c: Track name changes in Object and ValueType.
886 2003-04-18 Dietmar Maurer <dietmar@ximian.com>
888 * metadata.c (mono_type_stack_size): size should be a multiple of
891 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
894 (internal_domain_finalize): moved into mono_domain_finalize. No need
895 to create another thread because the finalizers will be run in the
898 (ves_icall_System_GC_WaitForPendingFinalizers): implemented.
899 (finalizer_notify): if shutting down, wait 2 seconds for the finalizers
900 to be run (MS does this too).
902 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
904 * object.c (mono_class_compute_gc_descriptor): Update comment.
906 * loader.h marshal.h marshal.c: Added synchronized method wrappers.
908 * image.h: Add synchronized wrapper cache.
910 * image.c (do_mono_image_open): Initialize cache.
912 * reflection.c (create_dynamic_mono_image): Initialize cache.
914 2003-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
916 * icall.c: patch by Jerome Laban <jlaban@wanadoo.fr> that fixes
917 ves_icall_System_Buffer_ByteLengthInternal.
919 Tue Apr 15 13:56:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
921 * reflection.c: setup klass->nested_in earlier. Allow
922 a dash in the assembly name.
924 2003-04-15 Dietmar Maurer <dietmar@ximian.com>
926 * metadata.c (mono_type_to_unmanaged): dont access
927 type->data.klass for MONO_TYPE_OBJECT
928 (mono_type_to_unmanaged): consider System.Delegate class
930 Tue Apr 15 11:16:05 CEST 2003 Paolo Molaro <lupus@ximian.com>
932 * class.c: just setup supertypes in the proper place instead of
933 initializing the full element class for arrays.
935 Tue Apr 15 11:03:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
937 * class.c: ensure the element class of arrays is initialized.
938 Setup the supertype info for array classes, too.
940 2003-04-14 Miguel de Icaza <miguel@ximian.com>
942 * icall.c (ves_icall_Type_GetNestedType): Add new internal call.
944 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
946 * Makefile.am: re-added -m option when running cygpath. This way,
947 MONO_ASSEMBLIES and MONO_CFG_DIR will contain '/' as directory
949 * mono-config.c: same codepath for locating mono config file for WIN32
951 * assembly.c: if mono_assembly_setrootdir is called, don't override
954 2003-04-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
956 * Makefile.am: patch by Urs Muff <umuff@quark.com> that fixes
957 MONO_ASSEMBLIES variable.
959 Fri Apr 11 12:44:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
961 * icall.c: added Assembly::GetNamespaces() icall.
963 2003-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
965 * reflection.c: fix from Jaak <jaak@zd.com.pl>.
967 2003-04-10 Lluis Sanchez Gual <lluis@ideary.com>
969 * appdomain.c,appdomain.h,icall.c: Added internal method that returns the process guid
970 * object.c: fixed bug in the construction of vtable for proxies
972 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
974 * object.c (mono_array_new): Mark mono_array_new as an icall.
976 2003-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
978 * class.c: fixed test for public method when overriding interfaces.
981 Wed Apr 9 15:19:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
983 * appdomain.h, domain.c: added mono_domain_foreach() to
984 be able to access the currently loaded appdomains.
985 * object.c: make string interning work across sppdomains.
986 Mark some functions for use as icalls.
988 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
990 * class.c reflection.c: Fix memory leaks reported by ccmalloc.
992 * reflection.h reflection.c: Allocate long living data using
993 GC_MALLOC_ATOMIC so the collector does not need to scan it.
995 * reflection.c: Double the allocation size in streams instead of
996 increasing it, to prevent unneccesary copying on large assemblies.
998 * reflection.c (mono_reflection_create_runtime_class): Avoid vtable
999 creation if the assembly does not have the Run flag set.
1001 Tue Apr 8 11:19:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1003 * class.h: avoid the C++ keywords in header files (Jerome Laban
1004 spotted and fixed this).
1006 2003-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1009 (mono_unhandled_exception): fill in the arguments for the
1010 UnhandledException event. Only trigger that event for the default
1011 domain (as MS does).
1013 2003-04-04 Zoltan Varga <vargaz@freemail.hu>
1015 * object.c: Improve typed allocation stuff based on suggestions from
1016 Paolo. Also turn it on if the GC library supports it.
1018 2003-04-03 Zoltan Varga <vargaz@freemail.hu>
1020 * object.c object.h class.h: Added experimental typed allocation
1021 facility using the interfaces in gc_gcj.h.
1023 * os/gc_wrapper.h: Added new include files.
1025 2003-04-03 Martin Baulig <martin@ximian.com>
1027 All the following changes are conditional to `WITH_INCLUDED_LIBGC'
1028 which is not yet enabled by default.
1030 * gc.c (mono_gc_init): Set the gc_thread_vtable to our thread
1032 (mono_gc_lock, mono_gc_unlock): New static functions.
1034 * threads.c (mono_gc_stop_world, mono_gc_start_world): New public
1035 functions; stop/start the world for the garbage collector. This
1036 is using the windows API; we need to complete the SuspendThread()/
1037 ResumeThread() implementation in the io-layer to make this work on Unix.
1038 (mono_gc_push_all_stacks): New public function; tells the garbage
1039 collector about the stack pointers from all managed threads.
1041 2003-04-03 Martin Baulig <martin@ximian.com>
1043 * object.h (MonoThread): Added `gpointer stack_ptr'.
1045 * threads.c (start_wrapper): Save the stack pointer in `stack_ptr'.
1047 2003-04-03 Martin Baulig <martin@ximian.com>
1049 * Makefile.am: It's called `cygpath -w', not `cygpath -m'.
1051 2003-04-03 Zoltan Varga <vargaz@freemail.hu>
1053 * reflection.c (typebuilder_setup_fields): Initialize field.first and
1056 2003-04-02 Miguel de Icaza <miguel@ximian.com>
1058 * loader.c (mono_lookup_internal_call): Report the corlib that is
1061 2003-03-05 Aleksey Demakov <avd@openlinksw.com>
1063 * icall.c (ves_icall_type_GetTypeCode): fixed check for
1064 System.DBNull (it's class not valuetype).
1066 Wed Apr 2 18:37:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
1068 * reflection.c: set table_idx in MonoReflectionArrayMethod object even
1069 if the array method was already assigned a token (fixes bug#40646).
1071 2003-04-02 Zoltan Varga <vargaz@freemail.hu>
1073 * reflection.c (mono_reflection_get_type): Attempt type resolve even
1074 if no assembly is given.
1076 2003-04-01 Miguel de Icaza <miguel@ximian.com>
1078 * metadata.h: Added the new tables.
1080 * row-indexes.h: Added definitions for new tables.
1082 * metadata.c: Add schemas for new tables, and add support for
1083 computing the sizes of them.
1085 * class.c: Update for handling the new type cases.
1087 2003-04-01 Dietmar Maurer <dietmar@ximian.com>
1089 * metadata.h (MONO_TYPE_IS_VOID): new macro
1091 2003-03-31 Martin Baulig <martin@ximian.com>
1093 * threads.h (MonoThreadCallbacks): Added `thread_created'.
1095 * threads.c (mono_thread_new_init): Call `thread_created' in the
1096 mono_thread_callbacks.
1098 2003-03-31 Lluis Sanchez Gual <lluis@ideary.com>
1100 * loader.h: added marshalbyrefobject_class to mono_defaults
1101 * domain.c: added initialization of mono_defaults.marshalbyrefobject_class
1102 * icall.c: ves_icall_InternalExecute: fixed bug in field setter and in the
1103 generation of output parameters.
1104 ves_icall_Remoting_RealProxy_GetTransparentProxy: added support for interfaces.
1105 * marshal.c: mono_remoting_wrapper(): avoided call through proxy when the type is
1106 contextbound and the target object belongs to the context of the caller.
1107 * object.h: added context and unwrapped_server variables in MonoRealProxy.
1108 * object.c: Implemented support for interfaces and abstract classes
1109 in mono_class_proxy_vtable. Fixed several methods to avoid unneeded calls through
1110 proxy. Fixed problem when dealing with output parameters in mono_runtime_invoke_array.
1112 2003-03-30 Zoltan Varga <vargaz@freemail.hu>
1114 * class.h class.c (mono_class_is_subclass_of): New function.
1116 * icall.c (ves_icall_System_Array_FastCopy): Added optimized copy
1117 routines for most common case (calls from ArrayList::ToArray).
1119 * icall.c (ves_icall_System_Environment_Exit): Call profiler shutdown
1120 routine so programs which call Environment::Exit() can be profiled.
1122 * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
1123 Added MONO_ARCH_SAVE_REGS.
1125 * icall.c (ves_icall_type_is_subtype_of): Use new function.
1127 2003-03-29 Miguel de Icaza <miguel@ximian.com>
1129 * blob.h: Add a couple of new MonoType types definitions.
1131 * tabledefs.h: Add a couple of new call convs.
1133 2003-03-27 Zoltan Varga <vargaz@freemail.h>
1135 * reflection.h (MonoReflectionDynamicAssembly): track changes in
1136 the layout of the class.
1138 * reflection.c (alloc_table): double the size on overflow to avoid
1139 unnecessary copying.
1141 * reflection.h reflection.c: If AssemblyBuilderAccess is Run, then
1142 avoid filling out metadata tables and blobs. Also set mb->ilgen to
1143 null so it can be garbage collected.
1145 2003-03-27 Zoltan Varga <vargaz@freemail.hu>
1147 * reflection.c (mono_reflection_get_type): Return the resolved type
1148 only if it is in the assembly we searched.
1150 * reflection.c (ensure_runtime_vtable): Initialize method slots.
1152 * class.c (mono_class_setup_vtable): Set the slot of the overriding
1155 2003-03-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1158 (set_domain_search_path): allow 'file://blah'. It's an invalid URI,
1159 the right one is 'file:///blah', but MS allows it.
1161 (mono_assembly_open): allow 'file://blah'
1163 Fixes bug #40306. Thanks to Mitko Iliev (imitko@openlinksw.co.uk).
1165 2003-03-26 Aleksey Demakov <avd@openlinksw.com>
1167 * socket-io.c: fixes bug #40310.
1169 2003-03-25 Zoltan Varga <vargaz@freemail.hu>
1171 * reflection.c (mono_reflection_parse_type): handle deeply nested
1174 * reflection.c (mono_image_create_token): Use unique token values
1175 since they will be put into a hash table.
1177 * class.c (mono_class_setup_vtable): If a method occurs in more than
1178 one place in the vtable, and it gets overriden, then change the
1179 other occurances too.
1181 * marshal.c (mono_marshal_get_managed_wrapper): Added support for
1182 object as return type.
1184 2003-03-22 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1186 * icall.c: Deleted "ToString" implementation for double and float
1187 because they are full implemented in managed code.
1189 Wed Mar 19 18:05:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1191 * reflection.c, reflection.h: implemented and exported functions
1192 to retrieve info about custom attributes.
1194 2003-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1196 * appdomain.c: moved Uri handling to assembly.c
1197 * assembly.c: use g_filename_from_uri (). This makes assembly.LoadFrom
1198 work when using a file Uri in *nix and windows.
1200 * icall.c: fixed Assembly.CodeBase to return a valid Uri. The same for
1201 GetReferencedAssemblies.
1203 2003-03-18 Dick Porter <dick@ximian.com>
1205 * icall.c: Rename a couple of internal calls
1207 * threads.c: Set the thread state to Stopped when a thread exits.
1210 2003-03-17 Zoltan Varga <vargaz@freemail.hu>
1212 * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
1215 * object.c (mono_class_vtable): fix warning.
1217 2003-03-17 Zoltan Varga <vargaz@freemail.hu>
1219 * icall.c (ves_icall_type_is_subtype_of): Avoid vtable creation.
1221 * reflection.c (mono_blob_entry_hash): Avoid reading uninitialized
1223 (method_encode_clauses): Create exception info structures in the right
1225 (mono_reflection_setup_internal_class): Initialize supertypes field.
1227 * class.c object.c: Handle interfaces which implement other interfaces
1230 * class.h class.c: Move the supertypes array initialization code into
1231 a separate function so it can be used for dynamic types too. Also call
1232 it earlier, in mono_class_init(), since it can be used before the
1233 type is initialized.
1235 2003-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1239 * icall.c: make MONO_ASSEMBLIES and MONO_CFG_DIR work on windows.
1244 * object.c: remove warnings.
1246 2003-03-13 Martin Baulig <martin@ximian.com>
1248 * debug-mono-symfile.h (MonoSymbolFileLexicalBlockEntry): New type.
1249 (MonoDebugLexicalBlockEntry): New types.
1251 * debug-mono-symfile.c
1252 (_mono_debug_address_from_il_offset): Moved here from ../jit/debug.c.
1254 2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1256 * process.c: ret can be any non-zero value accroding to MS doc.
1258 2003-03-07 Miguel de Icaza <miguel@ximian.com>
1260 * class.c (mono_marshal_load_type_info): Fix buglet: Noticed when
1261 fixing a warning for a miss-used prototype, would have cause
1262 random memory corruption.
1264 2003-03-07 Martin Baulig <martin@ximian.com>
1266 * marshal.c (mono_marshal_free_array): That "TESTFREE %p" was
1267 getting really annoying ....
1269 2003-03-07 Zoltan Varga <vargaz@freemail.hu>
1271 * reflection.c (fixup_method): added support for array methods.
1273 Tue Mar 4 18:03:27 CET 2003 Paolo Molaro <lupus@ximian.com>
1275 * socket-io.c: handle case when AF_INET6 and AF_IPX are not defined
1276 (pointed out by Michael Adams).
1278 2003-03-04 Dick Porter <dick@ximian.com>
1280 * icall.c: Temporarily reverted the Double and Single ToString()
1281 change, because it broke nunit.
1283 Tue Mar 4 12:40:58 CET 2003 Paolo Molaro <lupus@ximian.com>
1285 * object.h, threads.h: make include files compatible with C++
1286 (patch by Jerome Laban <jlaban@wanadoo.fr>).
1288 2003-03-04 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1290 * icall.c: Erased ToString helper functions for Double and Single.
1291 Now, that implementations ar all in managed code (Double and Single
1294 2003-03-03 Lluis Sanchez Gual <lluis@ideary.com>
1296 * appdomain.c: Added method for initializing the default context of
1297 a domain. Added internal call for getting the default context.
1298 * appdomain.h: Added context variable in MonoDomain struct.
1299 * domain.c: mono_domain_set also sets the default context of the domain
1300 * icall.c: Mapped internal method InternalGetDefaultContext.
1301 * object.c: mono_object_get_virtual_method returns always a remoting
1302 wrapper if the object is a transparent proxy.
1303 mono_runtime_invoke_array: when creating an object by calling the
1304 constructor, if the created object is a proxy, then the constructor should
1305 be called using the a remoting wrapper.
1307 2003-03-03 Dick Porter <dick@ximian.com>
1309 * socket-io.c (create_sockaddr_from_object): Rename sockaddr_un
1310 variable so it compiles on solaris. Problem spotted by
1311 Christopher Taylor <ct@cs.clemson.edu>
1313 2003-03-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1316 (get_info_from_assembly_name): don't leak value.
1319 (ves_icall_System_Reflection_Assembly_GetFilesInternal): initialize
1322 Sat Mar 1 15:32:56 CET 2003 Paolo Molaro <lupus@ximian.com>
1324 * assembly.c: export mono_image_load_references ().
1325 * class.c: handle function pointers. mono_class_from_name() now
1326 supports nested type names directly.
1328 2003-02-28 Zoltan Varga <vargaz@freemail.hu>
1330 * reflection.h reflection.c: Encode already created dynamic methods
1331 and fields correctly as a DEF instead of a REF.
1333 * reflection.c: Get rid of the force_ref argument to
1334 mono_image_typedef_or_ref since it was wrong in the first place.
1336 * string-icalls.c: add error checking to string constructors according
1339 * reflection.c: Emit types in the order their TypeBuilders were
1340 created. Previously, a new table index was assigned to each type before
1341 the tables were emitted. This was wrong because the signature blob
1342 might already refer to a type by its original table index.
1344 2003-02-27 Zoltan Varga <vargaz@freemail.hu>
1346 * metadata.c (mono_metadata_nesting_typedef): fix bug in previous
1349 2003-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1351 * Makefile.am: make assemblies dir have \ instead of / on windows.
1353 2003-02-27 Zoltan Varga <vargaz@freemail.hu>
1355 * metadata.c metadata.h (mono_metadata_nesting_typedef): changed to
1356 iterate over the NESTEDCLASS table using a linear search since the
1357 table is not guaranteed to be sorted by the secondary key.
1359 * class.c (mono_class_create_from_typedef): fixed up call to
1360 mono_metadata_nesting_typedef.
1362 2003-02-27 Dietmar Maurer <dietmar@ximian.com>
1364 * marshal.c (mono_string_to_byvalstr): clear the memory as
1365 suggested by Jerome Laban <jlaban@wanadoo.fr>
1367 2003-02-26 Dick Porter <dick@ximian.com>
1369 * process.c: Cope with padding in .rsrc blocks
1371 2003-02-26 Dietmar Maurer <dietmar@ximian.com>
1373 * metadata.h: reverted the filter_len change, it breaks reflection
1375 2003-02-26 Dietmar Maurer <dietmar@ximian.com>
1377 * metadata.h: added a new field to store the filter_len
1380 Tue Feb 25 10:56:16 CET 2003 Paolo Molaro <lupus@ximian.com>
1382 * reflection.c: handle custom attributes for types and members
1383 created with Reflection.Emit (bug#38422).
1385 2003-02-22 Zoltan Varga <vargaz@freemail.hu>
1387 * reflection.c: define RTSpecialName automatically for constructors for
1388 compatibility with MS.NET.
1390 * reflection.c (mono_reflection_create_runtime_class): initialize
1391 nested_in field of dynamically created classes.
1393 2003-02-22 Martin Baulig <martin@ximian.com>
1395 * debug-mono-symfile.h: Incremented version number.
1397 2003-02-21 Zoltan Varga <vargaz@freemail.hu>
1399 * object.h icall.c process.c: fix warnings.
1401 2003-02-21 Zoltan Varga <vargaz@freemail.hu>
1403 * appdomain.h appdomain.c:
1404 (mono_domain_try_type_resolve): split the
1405 name_or_tb argument into a name and a tb argument.
1406 (mono_domain_has_type_resolve): new function to check whenever the
1407 application has registered a TypeResolve event handler.
1409 * icall.c reflection.h reflection.c: move the type resolve logic into
1410 mono_reflection_get_type () so it will be invoked when
1411 Assembly::GetType () is called.
1414 (mono_reflection_get_type): renamed to get_type_internal.
1415 (mono_reflection_get_type): fixed type name generation so it works
1416 for nested types too.
1417 (mono_reflection_get_type): call has_type_resolve () to avoid the
1418 costly type name generation if there is no resolve event handler.
1420 Fri Feb 21 11:36:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1422 * class.c, image.c: load exported types from file references.
1424 2003-02-19 Lluis Sanchez Gual <lluis@ideary.com>
1426 * appdomain.h: Added in MonoDomain a couple of MonoMethod* variables
1427 used to cache the managed methods used to create proxies and make
1428 remote invocation of methods.
1429 * class.h: Added in MonoVTable a flag to indicate that a class needs
1430 to be remotely created.
1431 * object.c: Modified the method mono_class_vtable(). It now initializes
1432 the remote flag of the vtable. Modified mono_object_new_specific(),
1433 so now it checks the remote flag.
1434 * icall.c: Added a couple of internal methods, one for enabling instance
1435 creation interception for a type, and one for creating objects bypassing
1438 2003-02-18 Martin Baulig <martin@ximian.com>
1440 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethodToken):
1441 New interncall to get a method's metadata token.
1443 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethodToken"):
1444 New interncall for the debugger.
1446 2003-02-18 Dietmar Maurer <dietmar@ximian.com>
1448 * class.c (mono_class_setup_vtable): allocate supertype array
1450 2003-02-18 Martin Baulig <martin@ximian.com>
1452 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Added `has_this'.
1454 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1457 (assembly_name_to_aname): jump over unknown properties (i've found
1458 something like: 'type, assembly, version=xxx, custom=null, public...',
1459 so now will ignore custom=null and still get the rest of the values).
1461 2003-02-17 Dick Porter <dick@ximian.com>
1463 * threads.c: Have Thread.Start() wait for a semaphore to signal
1464 that the thread has set up all its local data. This fixes bug
1465 34323, where Abort() raced the new thread's TLS data.
1467 Also removes the handle_store() call from start_wrapper, because
1468 threads are now always created suspended and there is no longer a
1469 race between the parent and child threads to store the info.
1471 Mon Feb 17 13:13:31 CET 2003 Paolo Molaro <lupus@ximian.com>
1473 * image.c: explain the #- heap issue in a message, hopefully
1474 avoiding FAQs on mono-list.
1476 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1479 (GetEntryAssembly): if the domain has not invoked
1480 AppDomain.ExecuteAssembly yet, return the assembly of the default
1483 2003-02-16 Zoltan Varga <vargaz@freemail.hu>
1485 * class.c (mono_ldtoken): make it work in dynamic assemblies.
1487 Sun Feb 16 13:10:06 CET 2003 Paolo Molaro <lupus@ximian.com>
1489 * metadata.c, reflection.c: simple speedup to type hash
1492 Sat Feb 15 15:15:03 CET 2003 Paolo Molaro <lupus@ximian.com>
1494 * image.c, image.h, class.c, assembly.c: move module loading
1495 to MonoImage. When loading metadata, consider alignemnet from
1496 the start of metadata, not from the metadata address in memory.
1498 2003-02-13 Zoltan Varga <vargaz@freemail.hu>
1500 * reflection.c (mono_reflection_get_custom_attrs): Added support for
1501 AssemblyBuilder objects. Factored out custom attribute creation into
1502 a separate function.
1503 (create_custom_attr): new function to create custom attributes.
1505 2003-02-12 Miguel de Icaza <miguel@ximian.com>
1507 * Makefile.am: Got tired of typing the full pathname to pedump.
1508 Until there is another option, am installing this.
1510 2003-02-12 Dietmar Maurer <dietmar@ximian.com>
1512 * class.c (class_compute_field_layout): always set field->parent
1513 (mono_ldtoken): use mono_defaults.fieldhandle_class;
1515 2003-02-11 Dick Porter <dick@ximian.com>
1518 * monitor.c: Rewrote Monitor, making lock much faster and
1519 Pulse/Wait work as specified. Also uses much fewer handles, and only
1520 creates them as needed.
1522 * exception.c: Added SynchronizationLockException
1524 * threads.c: Deleted old Monitor implementation. The new one is
1527 Mon Feb 10 17:54:10 CET 2003 Paolo Molaro <lupus@ximian.com>
1529 * class.c: handled TypedReference type code. Set the correct size for
1530 class data. Setup interface_offsets for interface classes, too.
1532 2003-02-09 Martin Baulig <martin@ximian.com>
1534 * debug-mono-symfile.h: Reflect latest symbol writer changes.
1536 Sun Feb 9 18:37:01 CET 2003 Paolo Molaro <lupus@ximian.com>
1538 * loader.c: implemented MEMBERREF_PARENT_TYPEDEF.
1539 * metadata.c, reflection.c: missing MONO_TYPE_TYPEDBYREF handling.
1540 * object.c: fixed mono_object_get_virtual_method () for interfaces.
1541 * verify.c: check for code that runs after the end of the method.
1543 2003-02-08 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1545 * icall.c: Added "System.Math::Floor", "System.Math::Round" and
1546 "System.Math::Round2".
1547 * sysmath.h: Added Floor, Round and Round2 definitions.
1548 * sysmath.c: Modified certain functions that were not 100% compliant
1549 with MS.NET (math precision) and added the implementation of Floor,
1552 2003-02-07 Martin Baulig <martin@ximian.com>
1554 * debug-mono-symfile.c (mono_debug_symfile_add_method): Ignore interncalls.
1556 2003-02-07 Martin Baulig <martin@ximian.com>
1558 * debug-mono-symfile.c: Reflected latest symwriter changes.
1559 (mono_debug_create_mono_symbol_file): Removed.
1560 (mono_debug_open_mono_symbol_file): Take an argument which
1561 specifies whether to create a dynamic symbol file.
1563 2003-02-07 Dietmar Maurer <dietmar@ximian.com>
1565 * class.c (mono_class_from_mono_type): added MONO_TYPE_TYPEDBYREF
1567 2003-02-05 Martin Baulig <martin@ximian.com>
1569 * reflection.c (mono_image_build_metadata): Make this public,
1570 protect it against being called multiple times, don't create
1571 resources and don't build the compressed metadata here.
1572 (mono_image_create_pefile): Do this here.
1575 ("System.Reflection.Emit.AssemblyBuilder::build_metadata"): Added.
1577 2003-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1579 * socket-io.c: fixed bug #36322.
1581 2003-02-06 Piers Haken <piersh@friskit.com>
1585 * debug-mono-symfile.c:
1591 * socket-io.c: warning cleanups
1593 2003-02-06 Dietmar Maurer <dietmar@ximian.com>
1595 * marshal.c (mono_marshal_get_remoting_invoke_with_check): new
1596 function. works like remoting invoke, but does a check for the Proxy first.
1598 2003-02-05 Miguel de Icaza <miguel@ximian.com>
1600 * appdomain.c (ves_icall_System_AppDomain_InternalUnload): Make it compiler.
1602 2003-02-05 Dietmar Maurer <dietmar@ximian.com>
1604 * marshal.c (mono_marshal_get_native_wrapper): only allocate an
1606 (mono_marshal_get_ldfld_wrapper): only generate necessary ldfld wrappers.
1607 (mono_marshal_get_stfld_wrapper): only generate necessary stfld wrappers.
1609 * object.c (mono_store_remote_field_new): used by the new jit
1610 instead of mono_store_remote_field
1611 (mono_load_remote_field_new): used by the new jit
1612 instead of mono_load_remote_field
1614 2003-02-05 Patrik Torstensson
1616 * appdomain.c: changed unload to take the domain id instead
1619 * icall.c: changed icall for AppDomain.Unload to AppDomain.InternalUnload
1622 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1624 * appdomain.c: don't look for assemblies in ApplicationBase if
1625 PrivateBinPathProbe is set.
1627 2003-02-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1629 * object.c: make the first argument in main_args contain the absolute
1630 path to the assembly. Fixes bug #37511.
1632 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1634 * icall.c: get correct UTC offset for countries not using daylight
1635 time saving. Fixes bug #30030.
1637 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1639 * socket-io.c: support AF_UNIX and use the same layout as MS (bytes 0
1640 and 1 are the family).
1642 2003-02-04 Dietmar Maurer <dietmar@ximian.com>
1644 * icall.c (ves_icall_InternalExecute): removed wrong assertion
1646 * marshal.c (mono_marshal_get_remoting_invoke): generate valid IL
1648 2003-02-04 Zoltan Varga <vargaz@freemail.hu>
1650 * reflection.c: added support for SignatureHelper tokens, which is
1651 needed by the Calli opcode.
1653 * reflection.h: track changes to SignatureHelper class.
1655 * metadata.c (mono_metadata_parse_signature): handle dynamic tokens.
1657 2003-02-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1659 * appdomain.c: fixed loading assemblies from PrivateBinPath.
1661 2003-02-03 Patrik Torstensson
1662 * appdomain.[c|h], domain.c :
1663 - Added support for getting a domain via domain id
1664 - Support for setting and getting domain from System.AppDomain
1665 (used in cross appdomain channel)
1666 - Added support for get/set for a MonoAppContext on a thread
1667 (Context class in System.Runtime.Remoting.Contexts),
1668 - Removed hack in Get/SetData and ExecuteAssembly.
1670 * icall.c : renamed GetTransparantProxy to InternalGetTransparantProxy to allow
1671 the managed world to get control when a proxy is created.
1673 * icall.c (ves_icall_InternalExecute) : bug fix, must return empty array
1675 2003-02-03 Miguel de Icaza <miguel@ximian.com>
1678 (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
1679 Populate the codebase field as well.
1681 2003-02-02 Martin Baulig <martin@ximian.com>
1683 * debug-mono-symfile.c
1684 (MonoSymbolFileMethodAddress): Added `wrapper_address' field.
1685 (mono_debug_symfile_add_method): Allow interncalls.
1687 2003-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1689 * icall.c: throw parse exception if strtod fails or the string is empty.
1691 Fri Jan 31 16:09:48 CET 2003 Paolo Molaro <lupus@ximian.com>
1693 * marshal.c: handle object type separately from defined
1696 Fri Jan 31 16:01:20 CET 2003 Paolo Molaro <lupus@ximian.com>
1698 * marshal.c: handle NATIVE_LPSTR for strings when it's
1699 explicitly specified.
1701 Fri Jan 31 11:51:43 CET 2003 Paolo Molaro <lupus@ximian.com>
1703 * reflection.c, reflection.h, icall.c: setup the reflection
1704 handle cache for ModuleBuilders and AssemblyBuilders.
1706 2003-01-30 Dietmar Maurer <dietmar@ximian.com>
1708 * reflection.c (reflection_methodbuilder_to_mono_method): set
1711 2003-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1713 * icall.c: implemented ves_icall_MonoMethod_get_base_definition.
1715 2003-01-29 Dick Porter <dick@ximian.com>
1717 * threads.c: No need for the fake_thread kludge now that Thread
1718 doesn't run a class constructor
1720 2003-01-29 Dick Porter <dick@ximian.com>
1722 * threads.c: Use g_direct_hash instead of the rather bogus
1725 2003-01-29 Dietmar Maurer <dietmar@ximian.com>
1727 * marshal.c (mono_marshal_get_native_wrapper): add check for null
1729 (mono_marshal_get_struct_to_ptr): generate valid IL code
1730 (mono_marshal_get_ptr_to_struct): generate valid IL code
1731 (*): correctly set sig->pinvoke, we need to memdup the signature
1734 Tue Jan 28 22:57:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1736 * marshal.c, marshal.h: use larger integers in mono_mb_emit_add_to_local()
1737 to avoid overflows (bug spotted and fixed by Jerome Laban <jlaban@wanadoo.fr>).
1739 Tue Jan 28 18:55:19 CET 2003 Paolo Molaro <lupus@ximian.com>
1741 * profiler.c: provide more callers information.
1743 2003-01-28 Dietmar Maurer <dietmar@ximian.com>
1745 * marshal.c (mono_marshal_get_managed_wrapper): generate valid IL code
1747 * appdomain.h:added fix from Patrik: _MonoAppDomain is a MBR object
1749 * marshal.c (mono_marshal_get_native_wrapper): generate valid IL code
1751 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1753 * icall.c: (ves_icall_System_CurrentTimeZone_GetTimeZoneData): raise an
1754 exception instead of going into an infinite loop on dates which it
1757 * string-icalls.c (ves_icall_System_String_get_Chars): raise
1758 out-of-range exception if needed.
1760 * class.c (mono_class_setup_vtable): allow a virtual method to provide
1761 an implementation for an interface method and to override an inherited
1762 method at the same time.
1763 Imagine a scenario when a virtual method is used to override a
1764 virtual abstract method in a parent class, and this same method
1765 provides an implementation for an method inherited from an interface.
1766 In this case, the interface resolution code will set im->slot, which
1767 means that the virtual method override pass will skip this method
1768 which means a pointer to the abstract method inherited from the parent
1769 will remain in the vtable of this non-abstract class.
1771 * class.c: (mono_class_setup_vtable): continue search for a real
1772 method if only an abstract method is found.
1774 Mon Jan 27 17:12:19 CET 2003 Paolo Molaro <lupus@ximian.com>
1776 * reflection.c: add size to encoding for ByValStr and ByValArray
1777 marshal blob (from "Jerome Laban" <jlaban@wanadoo.fr>).
1779 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1781 * class.c (mono_class_setup_vtable): pass the override info as an
1784 * class.c (mono_class_setup_vtable): set the slot of overriding methods
1787 * reflection.c (ensure_runtime_vtable); add support for method
1790 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1792 * reflection.c (resolution_scope_from_image): Hack to work to work with
1795 * reflection.c (mono_image_typedef_or_ref): renamed to ..._aux and
1796 added a 'force_ref' argument to force this function to allways return
1797 a TypeRef. This is needed by mono_image_get_memberref_token ().
1799 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1801 * reflection.c (mono_image_get_type_info): interfaces really don't have
1804 * reflection.c (mono_image_basic_init): fill out missing fields of
1807 * reflection.c (mono_image_basic_init): Invoke assembly load hooks for
1808 dynamic assemblies. This is required so dynamic assemblies show up in
1809 AppDomain.GetAssemblies (), emit an AssembyLoadEvent, gets searched by
1810 Type::GetType() etc. This is consistent with MS behaviour.
1812 * image.c image.h reflection.c: add newly created classes to the name
1813 cache so mono_class_get () will find them.
1815 2003-01-27 Zoltan Varga <vargaz@freemail.hu>
1817 First part of changes to get IKVM.NET running under mono.
1819 * appdomain.h, appdomain.c: added new function
1820 mono_domain_try_type_resolve() which will emit TypeResolve events.
1821 This function will call AppDomain::DoTypeResolve to do the actual work.
1823 * class.h, class.c, loader.c, object.c, reflection.h, reflection.c:
1824 moved existing code dealing with dynamic tokens to a new function
1825 called mono_reflection_lookup_dynamic_token (). This function will
1826 raise TypeResolve events when appropriate. Since reflection.c is not
1827 part of libmetadata, a new hook function called
1828 mono_lookup_dynamic_token() is added to class.c which will call this.
1830 * assembly.h assembly.c: make the invoke_load_hook function public,
1831 so it can be called for dynamic assemblies.
1833 * icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): skip interfaces since they do not have initializers.
1835 * icall.c (ves_icall_type_from_name): emit a TypeResolve event if the
1838 * reflection.c reflection.h: change MonoDynamicAssembly.tokens to a
1839 MonoGHashTable, since it contains pointers to objects which the GC
1842 * assembly.c (search_loaded): remove unused variable.
1844 Mon Jan 27 12:18:45 CET 2003 Paolo Molaro <lupus@ximian.com>
1846 * object.c: fixed issue exposed by gcc-generated IL programs
1847 that use RVA data for pointers.
1849 2003-01-25 Martin Baulig <martin@ximian.com>
1851 * threads.c (start_wrapper): Moved the initialization of
1852 `start_func' above the mono_new_thread_init() call to which we
1853 pass it as argument.
1855 2003-01-24 Martin Baulig <martin@ximian.com>
1857 * threads.h (MonoThreadCallbacks): Pass the thread ID instead of
1858 the MonoThread pointer.
1860 2003-01-21 Miguel de Icaza <miguel@ximian.com>
1862 * icall.c: Rename `PowImpl' to Pow.
1864 2003-01-23 Dick Porter <dick@ximian.com>
1866 * threads.c (start_wrapper): Create a Thread object if needed, so
1867 the Main() thread can do the class initialisation in a subthread
1868 that has been set up to allow managed code execution.
1870 Pass the thread ID instead of the MonoThread pointer to the thread
1871 start and attach callbacks. This change is required, because the
1872 jit thread start callback must be called _before_ the Thread
1873 object can be created.
1875 (mono_thread_init): Removed much object creation code that is no
1876 longer needed. No managed code is called from here now.
1878 * object.c (mono_runtime_exec_managed_code): Create a subthread
1879 for Main, and call back to the runtime to use it.
1880 Set the exit code when Main exits.
1882 * gc.c: Make sure domain finalisation happens in a subthread.
1883 Re-enable threaded GC, fixing bug 31333 (again).
1885 * environment.c: System.Environment internall calls (so far just
1886 ExitCode is here, the others are still in icall.c)
1888 * appdomain.c (mono_runtime_cleanup): All threads running managed
1889 code should have finished before mono_runtime_cleanup() is
1890 reached, so no need to clean up threads.
1892 2003-01-22 Martin Baulig <martin@ximian.com>
1894 * appdomain.h (MonoThreadStartCB): Added `MonoThread *thread' and
1895 `gpointer func' arguments.
1896 (MonoThreadAttachCB): New typedef; like the old MonoThreadStartCB,
1897 but added `MonoThread *thread' argument.
1898 (mono_runtime_init): The last argument is now a MonoThreadAttachCB.
1900 * threads.c (mono_new_thread_init): Added `gpointer func' argument
1901 and pass it to the mono_thread_start_cb callback.
1902 (mono_install_thread_callbacks): New public function to install a
1903 set of callbacks which are set by the debugger.
1904 (mono_thread_init): The last argument is now a MonoThreadAttachCB.
1906 2003-01-22 Martin Baulig <martin@ximian.com>
1908 * Makefile.am: Install debug-mono-symfile.h.
1910 2003-01-21 Aleksey Demakov <avd@openlinksw.com>
1912 * marshal.c: fixed copy_from_managed and copy_to_unmanaged for 0 length.
1914 2003-01-21 Dietmar Maurer <dietmar@ximian.com>
1916 * added the following fix from Jackson Harper <jackson@latitudegeo.com>
1917 * class.c (mono_ptr_class_get): correctly set access levels of pointers
1918 (mono_array_class_get): correctly set access levels of arrays
1920 2003-01-20 Patrik Torstensson
1921 * image.h (MonoAssemblyName): changed major, minor, build, revision
1922 from signed to unsigned.
1924 2003-01-20 sean kasun <skasun@azstarnet.com>
1926 * reflection.c (load_cattr_value): Now this handles
1927 MONO_TYPE_SZARRAY. Fixes bug #35629
1929 2003-01-20 Miguel de Icaza <miguel@ximian.com>
1931 * marshal.c (emit_struct_conv): Handle MONO_TYPE_PTR as an
1934 2003-01-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1936 * decimal.c: fixed bug #26056.
1938 2003-01-17 Martin Baulig <martin@ximian.com>
1940 * gc.c: Raise an ExecutionEngineException instead of using g_error().
1942 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1945 (mono_get_exception_type_initialization): new function.
1947 * object.c: throw a TypeInitializationException when an exception is
1948 thrown invoking the class constructor.
1950 2003-01-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1952 * reflection.c: fixed attribute reading.
1954 2003-01-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1957 (ves_icall_type_from_name): make it work as MS. Ie, if no assembly name
1958 provided, look for the type in the calling assembly and then in
1959 mscorlib; if the assembly name is provided, only try that one.
1961 Tue Jan 14 14:52:52 CET 2003 Paolo Molaro <lupus@ximian.com>
1963 * object.c: register the vtable before there is a chance it's
1964 queried again recursively.
1966 2003-01-13 Duncan Mak <duncan@ximian.com>
1968 * Makefile.am (libmonoruntime_la_SOURCES): Change gc.h to
1971 2003-01-12 Patrik Torstensson <totte@race-x-change.com>
1973 * string-icall.[c|h], icall.c: Added support for CompareOrdinal mode
1975 2003-01-11 Martin Baulig <martin@ximian.com>
1977 * debug-mono-symfile.h (MONO_SYMBOL_FILE_DYNAMIC_VERSION): Incremented
1978 this to 20 for the release.
1980 2003-01-10 Dietmar Maurer <dietmar@ximian.com>
1982 * marshal.c (emit_struct_conv): added support for EXPLICIT_LAYOUT
1984 * loader.c (mono_method_get_marshal_info): bug fix
1986 * marshal.c (mono_marshal_get_ptr_to_struct): don't convert
1987 structures with explicit layout
1989 Fri Jan 10 15:58:09 CET 2003 Paolo Molaro <lupus@ximian.com>
1991 * profiler.c: made the output more readable (and sorted).
1992 Added caller information for the allocation profiler.
1994 2003-01-09 Sebastien Pouliot <spouliot@videotron.ca>
1996 * icall.c, rand.c, rand.h: Prepended RNG functions with Internal.
1998 2003-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2000 * icall.c: added ves_icall_System_Activator_CreateInstanceInternal. Used
2003 Thu Jan 9 19:43:11 CET 2003 Paolo Molaro <lupus@ximian.com>
2005 * object.c, profiler.h, profiler.c, profiler-private.h:
2006 Added object allocation profiler.
2008 Thu Jan 9 16:17:00 CET 2003 Paolo Molaro <lupus@ximian.com>
2010 * reflection.h, reflection.c: handle global methods.
2011 Compress blob entries.
2013 Thu Jan 9 15:54:53 CET 2003 Paolo Molaro <lupus@ximian.com>
2015 * marshal.c: fix compilation.
2017 2003-01-09 Dietmar Maurer <dietmar@ximian.com>
2019 * loader.c (mono_method_get_marshal_info): impl.
2021 * metadata.c (mono_metadata_field_info): use mono_metadata_get_marshal_info
2023 2003-01-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2025 * icall.c: applied fix from Zoltan Varga that fixes Type.IsPrimitive
2026 for reference types.
2028 Wed Jan 8 20:11:46 CET 2003 Paolo Molaro <lupus@ximian.com>
2030 * loader.c: fixed off by one error in loaded parameter names.
2032 2003-01-08 Dietmar Maurer <dietmar@ximian.com>
2034 * marshal.c (mono_marshal_get_icall_wrapper): like
2035 mono_marshal_get_native_wrapper, but simpler and use a MonoMethodSignature
2036 instead of a MonoMethod.
2038 2003-01-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2040 * decimal.c: fixed bug #36537.
2042 Mon Jan 6 19:37:59 CET 2003 Paolo Molaro <lupus@ximian.com>
2044 * marshal.c: throw a missing method exception if a
2045 P/Invoke method is not found.
2047 Sun Jan 5 11:57:09 CET 2003 Paolo Molaro <lupus@ximian.com>
2049 * icall.c: allow a null this for constructors.
2051 Sat Jan 4 18:28:42 CET 2003 Paolo Molaro <lupus@ximian.com>
2053 * icall.c: raise the proper exceptions if the arguments to the
2054 internal Invoke are incorrect.
2056 2003-01-03 Dietmar Maurer <dietmar@ximian.com>
2058 * marshal.c (mono_marshal_get_ptr_to_struct): code cleanups
2060 2003-01-03 Martin Baulig <martin@ximian.com>
2062 * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2064 2002-12-31 Martin Baulig <martin@ximian.com>
2066 * debug-mono-symfile.c: Completely rewrote the type section.
2067 Instead of using individual malloc()ed fields, we use one big
2068 continuous memory area and offsets into this area.
2069 See the comments in the source code for details.
2071 2002-12-30 Martin Baulig <martin@ximian.com>
2073 * debug-mono-symfile.h (MonoDebugTypeInfo): Renamed to MonoDebugClassInfo.
2075 2002-12-30 Martin Baulig <martin@ximian.com>
2077 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Include the
2078 line number table in this data blob instead of using an external
2081 2002-12-28 Martin Baulig <martin@ximian.com>
2083 * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2085 2002-12-22 Rachel Hestilow <hestilow@ximian.com>
2087 * marshal.c (mono_marshal_get_runtime_invoke): Support MONO_TYPE_CHAR
2088 as a boxed return type.
2090 2002-12-21 Miguel de Icaza <miguel@ximian.com>
2093 (ves_icall_System_AppDomainSetup_InitAppDomainSetup): Use
2094 g_build_filename to properly get separators on the filename created.
2096 * object.h: Small change, introduce MonoMarshalByRefObject to
2097 track the layout of that structure in the C# universe as we make
2100 Thu Dec 19 16:23:19 CET 2002 Paolo Molaro <lupus@ximian.com>
2102 * object.c: removed assert to allow static fields on interfaces.
2103 * loader.c: a TypeSpec may be used for any type, not just arrays.
2105 Thu Dec 19 14:19:42 CET 2002 Paolo Molaro <lupus@ximian.com>
2107 * class.c, class.h: added mono_class_array_element_size ().
2108 Ignore static methods in interfaces.
2110 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2112 * threads.c: fixed the build under cygwin.
2114 Wed Dec 18 18:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
2116 * reflection.c: handle nullref constants. Allocate keys for
2117 reflection handles with the GC.
2119 Wed Dec 18 11:34:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2121 * threads.c, threads.h: added mono_thread_get_abort_signal()
2122 to get a suitable signal for thread abort.
2124 Wed Dec 18 11:26:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2126 * metadata.c: fix handling of ExportedType table.
2128 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2130 * icall.c: added WriteWindowsDebugString internal call.
2132 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2134 * reflection.h: added fields to match C# implementation.
2136 2002-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2138 * icall.c: patch from Jaroslaw Kowalski to fix Environment.MachineName.
2140 2002-12-12 Juli Mallett <jmallett@FreeBSD.org>
2142 * gc.h, gc-internal.h: Rename header for GC internal calls to
2143 gc-internal.h from gc.h as to not clash with Boehm GC having its
2144 header installed as <gc.h> in outside include paths.
2145 * appdomain.c, gc.c, icall.c, object.c: Account for aforementioned.
2146 * threads.c: If SIGRTMIN is not defined, fall back to SIGUSR1.
2148 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2150 * icall.c: assign minor, build and revision in FillName.
2152 2002-12-11 Zoltan Varga <vargaz@freemail.hu>
2154 * image.h reflection.h reflection.c class.h class.c loader.c object.c:
2155 Added support for running code generated by Reflection.Emit.
2157 2002-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2159 * appdomain.c: check for NULL argument in LoadFrom.
2161 2002-12-10 Dick Porter <dick@ximian.com>
2163 * threads.c: WaitHandle fixes from Tum <tum@veridicus.com>
2165 2002-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2167 * appdomain.c: fix buglet when building exe file name. Handle full
2168 assembly name (needed after latest changes to AssemblyName).
2170 (mono_image_close): free some hashtables.
2172 2002-12-05 Dietmar Maurer <dietmar@ximian.com>
2174 * threads.c (ves_icall_System_Threading_Thread_Abort): we use SIGRTMIN
2175 instead of SIGUSR1, because SIGUSR1 is used by the pthread implementation
2176 on some systems (redhat 7.3)
2178 Thu Dec 5 16:13:40 CET 2002 Paolo Molaro <lupus@ximian.com>
2180 * threads.c: delete the critical section of a sync block,
2181 spotted and fixed by tum@veridicus.com (Thong (Tum) Nguyen).
2183 Thu Dec 5 12:52:52 CET 2002 Paolo Molaro <lupus@ximian.com>
2185 * pedump.c, cil-coff.h, monosn.c: add strong name cli header flag.
2187 2002-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2189 * appdomain.[ch]: handle the assembly preload event to try loading the
2190 assemblies using the paths we have in the current domain.
2192 * assembly.[ch]: created an assembly preload hook that is called to try
2193 loading the assembly by other means that the ones provided here.
2195 * domain.c: initialize the domain search path.
2197 From now on, assemblies (TODO: except corlib and System) are loaded
2198 according to these rules when using mono_assembly_load ():
2200 1. It tries to load the assembly from the ApplicationBase
2201 of the current domain appending .dll and .exe (TODO: have to
2202 try loading from name/name.dll and name/name.exe).
2204 2. It tries the search path specified in PrivateBinPath for the
2205 current domain (if any).
2207 3. Previous behavior.
2209 Wed Dec 4 16:02:25 CET 2002 Paolo Molaro <lupus@ximian.com>
2211 * icall.c: implemented GetInterfaceMap() related icall.
2212 * domain.c, loader.h: load MethodInfo in mono_defaults.
2214 Wed Dec 4 11:02:30 CET 2002 Paolo Molaro <lupus@ximian.com>
2216 * gc.c: disable the finalizer thread for now, untill all the issues
2217 with it are resolved.
2219 Wed Dec 4 10:44:01 CET 2002 Paolo Molaro <lupus@ximian.com>
2221 * string-icalls.c: handle embedded nulls in string ctor when the
2222 length is specified.
2224 Tue Dec 3 19:29:20 CET 2002 Paolo Molaro <lupus@ximian.com>
2226 * class.c: look for explicit interface implementation in parent
2229 2002-12-03 Dietmar Maurer <dietmar@ximian.com>
2231 * gc.c (run_finalize): dont run the finalizer (strange behaviour on rh7.3)
2233 Tue Dec 3 12:40:06 CET 2002 Paolo Molaro <lupus@ximian.com>
2235 * gc.c: protect handles with a critical section.
2237 2002-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2240 (ves_icall_type_from_name): it now has throwOnError and ignoreCase
2241 parameters. If no assembly specified, try getting the type from all
2242 the assemblies in the current domain, else, load the assembly and get
2245 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2247 * marshal.c: applied patch from Aleksey Demakov that fixes
2248 ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni.
2250 2002-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2252 * icall.c: fixed get_location.
2254 2002-11-28 Dietmar Maurer <dietmar@ximian.com>
2256 * icall.c: moved MONO_ARCH_SAVE_REGS to the end of the
2257 declarations to make it work with older gcc.
2259 * loader.c (mono_get_method): set signature->pinvoke for native calls
2261 2002-11-20 Dick Porter <dick@ximian.com>
2263 * threads.c (mono_thread_init): Set the main thread's handle
2265 Tue Nov 19 14:15:34 CET 2002 Paolo Molaro <lupus@ximian.com>
2267 * gc.c: allow compilation without GC support. Changed to match the
2270 Mon Nov 18 18:41:51 CET 2002 Paolo Molaro <lupus@ximian.com>
2272 * gc.c: don't start the finalizer thread if the env var GC_DONT_GC is set.
2274 Mon Nov 18 16:35:22 CET 2002 Paolo Molaro <lupus@ximian.com>
2276 * reflection.c: set a public key token on the core assemblies.
2278 2002-11-18 Dick Porter <dick@ximian.com>
2280 * threads.c: Split out some thread initialisation so that other
2281 files can set the start callback function.
2283 * gc.c: Run finalisers in a separate thread, to avoid stack
2284 overflow. Fixes bug 31333.
2286 * appdomain.c: Set up GC finalisation thread.
2290 * domain.c: Use gc.h macros for GC_malloc
2292 2002-11-15 Dick Porter <dick@ximian.com>
2296 * appdomain.c: Removed mono_runtime_init_with_attach(),
2297 mono_thread_create_arg(), and mono_thread_init_with_attach(), by
2298 merging the extra parameter with the existing function. Removed
2299 unneeded code in mono_thread_attach().
2301 2002-11-14 Dietmar Maurer <dietmar@ximian.com>
2303 * image.c (mono_image_loaded_by_guid): a method to get loaded
2305 (load_metadata_ptrs): we store the guid as string.
2307 2002-11-11 Dietmar Maurer <dietmar@ximian.com>
2309 * assembly.c (mono_assembly_open): check the guid of aot compiled lib.
2311 * metadata.c (mono_guid_to_string): imported method form Zoltan
2312 Varga (slightly modified)
2314 * assembly.c (mono_assembly_open): load precompiled code
2316 * loader.h (MonoMethod): we store the method token for use in the
2319 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2321 * appdomain.c: insert the loaded assemblies in the domain->assemblies in
2322 the hook function called when an assembly is loaded.
2324 * domain.c: Modified file.
2325 (mono_domain_assembly_load): removed hash table insertion of assemblies.
2329 2002-11-07 Miguel de Icaza <miguel@ximian.com>
2331 * reflection.c: Map PEFileKind to the value expected by the WinNT
2334 2002-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2336 * rand.c: use /dev/urandom. If it fails to open, use the previous one.
2337 Read until the buffer is filled completely.
2339 2002-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2341 * icall.c: implemented MonoType.InternalGetEvent ().
2343 2002-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2345 * appdomain.c: implemented InitAppDomainSetup. Delayed
2346 AppDomain.SetupInformation until mono_runtime_exec_main, where we get
2349 * assembly.c: base_dir is now an absolute path ending with
2352 * icall.c: modified get_location according to the above changes.
2354 * object.c: init AppDomain.SetupInformation for the default domain after
2355 we have the entry assembly.
2357 * domain.c: when unloading a domain, setup = NULL.
2359 2002-11-04 Dietmar Maurer <dietmar@ximian.com>
2361 * marshal.c (emit_ptr_to_str_conv): try to fix bug 29548
2363 Sun Nov 3 15:39:28 CET 2002 Paolo Molaro <lupus@ximian.com>
2365 * object.h, object.c: introduced mono_object_get_virtual_method ()
2366 to lookup the method invoked on an object when a callvirt is done on
2368 * icall.c: make MethodInfo::Invoke() always do a virtual call.
2370 2002-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2372 * appdomain.c: invoke AssemblyLoad and AsemblyResolve events in the
2373 current domain when loaded an assembly and failed to load it.
2375 * icall.c: changed ...Assembly_GetType to Assembly_InternalGetType.
2377 2002-10-31 Dick Porter <dick@ximian.com>
2381 * file-io.c: Return the error status in a parameter, as the
2382 GetLastError() value has long since been blown away if we try and
2383 look it up in a subsequent internal call invocation. Delete the
2384 GetLastError() internal call, because it's useless.
2386 2002-10-31 Dietmar Maurer <dietmar@ximian.com>
2388 * class.[ch]: added cast_class to fix bug 29517
2390 Wed Oct 30 19:37:32 CET 2002 Paolo Molaro <lupus@ximian.com>
2392 * marshal.c: create valid IL code in the filter clause:
2393 the new JIT is less forgiving:-)
2395 2002-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2397 * icall.c: removed get_property internal call.
2399 2002-10-25 Zoltan Varga <vargaz@freemail.hu>
2401 * appdomain.h domain.c: Added an ID to appdomains.
2403 * threads.c threads.h icall.c: Implement icall
2404 Thread:GetDomainID(), and remove unused icall
2405 CurrentThreadDomain_internal.
2407 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2409 * icall.c: Don't recurse through the base types in GetConstructor.
2412 Thu Oct 24 16:56:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
2414 * mempool.h, mempool.c: added mono_mempool_empty() and
2415 mono_mempool_stats().
2417 2002-10-23 Dick Porter <dick@ximian.com>
2421 * icall.c: Added MonoIO.GetFileType internal call
2423 2002-10-17 Dick Porter <dick@ximian.com>
2425 * appdomain.c (mono_runtime_cleanup): Don't signal the async
2426 delegate semaphore before waiting for all threads to finish,
2427 because new threads can also call async delegates. Fixes bug
2430 * threadpool.c (async_invoke_thread): Only wait for 500ms instead
2431 of 3 seconds, in case another async job is queued. (This part is
2432 needed because the bug fix reintroduced the 3s exit lag.) This
2433 makes the mono_runtime_shutdown flag superfluous.
2435 Thu Oct 17 13:11:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
2437 * reflection.c: include ehader size in method section headers.
2438 Really check for suplicated modules entries.
2440 2002-10-17 Martin Baulig <martin@gnome.org>
2442 * debug-mono-symfile.c: Added back support for locals.
2444 2002-10-14 Martin Baulig <martin@gnome.org>
2446 * debug-mono-symfile.c: Added MONO_TYPE_I, MONO_TYPE_U and
2449 2002-10-14 Martin Baulig <martin@gnome.org>
2451 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetType): Use
2452 mono_class_get() instead of looking in the class cache.
2454 2002-10-13 Martin Baulig <martin@gnome.org>
2456 * debug-mono-symfile.c: Set version number to 28, include the
2457 signature in method names.
2459 2002-10-13 Martin Baulig <martin@gnome.org>
2461 * debug-mono-symfile.h: Set version number to 27.
2463 2002-10-11 Martin Baulig <martin@gnome.org>
2465 * gc.c: Don't register/unregister NULL pointers as disappearing links.
2467 Thu Oct 10 14:56:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
2469 * metadata.c, metadata.h: added helper function to allocate signatures.
2471 2002-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2473 * icall.c: added internal call to get the location of machine.config.
2475 2002-10-08 Martin Baulig <martin@gnome.org>
2477 * debug-mono-symfile.c: Ignore classes with a pending init for the
2480 2002-10-03 Dick Porter <dick@ximian.com>
2482 * threads.c: Freebsd pthread_t is a pointer
2484 2002-10-03 Dick Porter <dick@ximian.com>
2486 * socket-io.c: Implemented GetHostName_internal
2488 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2491 (mono_config_parse_file): don't leak the text.
2493 2002-10-02 Martin Baulig <martin@gnome.org>
2495 * debug-mono-symfile.c: Added support for methods.
2497 2002-10-01 Martin Baulig <martin@gnome.org>
2499 * debug-mono-symfile.c: Don't emit methods and line numbers for
2500 the dynamic symbol file, just write the type table. We can easily
2501 have an external helper program which creates a symbol file for an
2504 2002-10-01 Dick Porter <dick@ximian.com>
2506 * threads.c (ves_icall_System_Threading_Thread_Start_internal):
2507 Only add the handle to the cleanup array when we're about to
2508 launch the thread. Bug 31425 deadlocked when the test was run on
2511 2002-10-01 Martin Baulig <martin@gnome.org>
2513 * debug-mono-symfile.c: Added support for properties.
2515 Fri Sep 27 18:55:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
2517 * reflection.c: unaligned store fix from Mark Crichton
2518 <crichton@gimp.org>.
2520 2002-09-27 Martin Baulig <martin@gnome.org>
2522 * icall.c ("System.Reflection.Assembly::GetReferencedAssemblies"):
2525 Fri Sep 27 15:38:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
2527 * assembly.h, assembly.c: use a sane API to hook into the assembly
2528 loading process instead of a useless special-purpouse hack
2529 (ngen needs a hook, too, for example).
2531 2002-09-27 Dick Porter <dick@ximian.com>
2533 * threads.c (mono_thread_init): Call GetCurrentProcess() so
2534 io-layer can set up some process handle info. Not needed on w32,
2535 but doesn't hurt either.
2537 * process.c: Pass the program name in the second parameter to
2538 CreateProcess, so the path is searched. Include the working
2539 directory. Implemented process name, process enumeration, and some
2540 process detail internal calls.
2542 * icall.c: Added internal calls for process lookup, and some
2545 2002-09-26 Martin Baulig <martin@gnome.org>
2547 * assembly.c (mono_install_open_assembly_hook): New global
2548 function to install a function to be invoked each time a new
2550 (mono_assembly_open): Run this callback function if set.
2552 * debug-mono-symfile.c: Put back line numbers for the dynamic
2553 symbol file and also record the .il file as source file. This
2554 allows us to install the temporary symbol file as `file.dbg' just
2555 like a compiler-generated one.
2557 2002-09-26 Nick Zigarovich <nick@chemlab.org>
2559 * Corrected typo in gc.c (BOHEM vs BOEHM).
2561 2002-09-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2563 * icall.c: fixed bug #31235 by copying a few lines from GetMethods to
2564 GetProperties. Also avoid calling g_slist_length in GetProperties and
2567 Wed Sep 25 22:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
2569 * reflection.c: avoid unaligned stores (bug spotted by
2570 Mark Crichton <crichton@gimp.org>).
2572 2002-09-25 Martin Baulig <martin@gnome.org>
2574 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Use pointers
2575 instead of guint64 for addresses and added prologue/epilogue info.
2577 2002-09-25 Martin Baulig <martin@gnome.org>
2579 * debug-mono-symfile.h (MonoDebugLineNumberEntry): New type to
2580 store line number info. For the dynamic symbol file, we only need
2581 to provide the JIT generated dynamic line number info for the dynamic
2584 2002-09-25 Martin Baulig <martin@gnome.org>
2586 * debug-mono-symfile.h: Incremented version number.
2588 2002-09-24 Martin Baulig <martin@gnome.org>
2590 * class.c (mono_debugger_class_init_func): New global function
2592 (mono_class_init): If mono_debugger_class_init_func is non-NULL,
2595 * debug-mono-symfile.c (mono_debug_symfile_add_type): New
2596 function. This is called via the mono_debugger_class_init_func
2597 hook to add all types to the dynamic type table.
2598 (ves_icall_MonoDebugger_GetType): New interncall to get a class
2599 from its metadata token.
2601 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetType"):
2602 New interncall for the debugger.
2604 2002-09-24 Nick Drochak <ndrochak@gol.com>
2606 * icall.c (ves_icall_System_Enum_ToObject): validate the type parameter
2607 before using it in case it is null.
2609 Tue Sep 24 13:24:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
2611 * metadata.c: allow custom modifiers in local var signatures
2612 (bug spotted by Zoltan Varga).
2614 Tue Sep 24 12:12:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
2616 * class.c: deal with the <Module> class that may have a NULL vtable.
2619 Tue Sep 24 11:28:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2621 * image.c, image.h: more strong name helpers.
2622 * monosn.c: more work: convert pem keys to cryptoapi format.
2624 Tue Sep 24 11:27:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
2626 * string-icalls.c: speedup IndexOf.
2628 Tue Sep 24 11:17:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2630 * icall.c: updates from Zoltan.2.Varga@nokia.com.
2632 Tue Sep 24 11:09:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
2634 * icall.c: cleanup: use mono_object_domain ().
2636 2002-09-23 Martin Baulig <martin@gnome.org>
2638 * debug-mono-symfile.c: Improved type support.
2640 2002-09-22 Martin Baulig <martin@gnome.org>
2642 * debug-mono-symfile.c: Added support for reference types and strings.
2644 2002-09-22 Martin Baulig <martin@gnome.org>
2646 * debug-mono-symfile.c: Started to work on the type table.
2648 2002-09-21 Martin Baulig <martin@gnome.org>
2650 * debug-mono-symfile.c: Largely reworked the symbol table format.
2651 The symbol table is now incrementally updated each time a new
2652 method is added. We're now also using our own magic and version
2653 so that you don't need to recompile all your classes if the
2654 dynamic table changes.
2655 (mono_debug_update_mono_symbol_file): Removed.
2656 (mono_debug_symfile_add_method): New function to add a method.
2658 2002-09-21 Martin Baulig <martin@gnome.org>
2661 ("System.Reflection.Assembly::MonoDebugger_GetLocalTypeFromSignature"):
2664 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetLocalTypeFromSignature):
2665 New interncall to get a method from its metadata token.
2667 2002-09-21 Martin Baulig <martin@gnome.org>
2669 * debug-mono-symfile.c: Create type table.
2671 2002-09-20 Martin Baulig <martin@gnome.org>
2673 * debug-mono-symfile.c: Reflect latest Mono.CSharp.Debugger changes.
2675 2002-09-20 Martin Baulig <martin@gnome.org>
2677 * debug-mono-symfile.c: Provide information about params and locals.
2679 2002-09-20 Martin Baulig <martin@gnome.org>
2681 * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
2684 * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
2685 interncall to get a method from its metadata token.
2687 2002-09-20 Martin Baulig <martin@gnome.org>
2689 * debug-mono-symfile.c: Added a few checks for method->header
2690 being non-NULL. This should never happen, but for the moment
2691 let's use a g_warning() rather than a g_assert().
2693 2002-09-19 Mark Crichton <crichton@gimp.org>
2695 * gc.c: ves_icall_System_GCHandle_FreeHandle made a call to libgc
2696 even if support for it isn't present. Added an #ifdef to fix this.
2698 * socket-io.c: Added checks back for Solaris support.
2700 2002-09-19 Martin Baulig <martin@gnome.org>
2702 * debug-mono-symfile.c (read_string, write_string): Reflect latest
2703 changes in the symbol file format.
2705 2002-09-18 Martin Baulig <martin@gnome.org>
2707 * debug-mono-symfile.c: Set version number to 21.
2709 2002-09-18 Dick Porter <dick@ximian.com>
2711 * threads.c (mon_new): Use the GC_MALLOC macro to hide differences
2712 on netbsd. Fixes bug 30051.
2714 2002-09-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2717 (set_version_from_string): little fix.
2719 Mon Sep 16 18:57:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2721 * monosn.c, Makefile.am: added strong name utility.
2722 * reflection.h, reflection.c: implemented delayed signing,
2723 locale, version and hash id assembly attributes.
2725 Mon Sep 16 18:51:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
2727 * loader.c, metadata.c: load param attributes in signatures.
2729 2002-09-16 Martin Baulig <martin@gnome.org>
2731 * debug-mono-symfile.c: Added string table with all method names.
2733 2002-09-14 Martin Baulig <martin@gnome.org>
2735 * debug-mono-symfile.h (MonoSymbolFile): Added method range table for
2738 Fri Sep 13 16:04:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
2740 * reflection.c: record the public key token of referenced assemblies.
2742 Fri Sep 13 15:41:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
2744 * image.c, image.h: added functions to get the strong name and the
2745 public key of an assembly.
2746 * pedump.c: use them.
2748 2002-09-12 Dietmar Maurer <dietmar@ximian.com>
2750 * marshal.c (emit_str_to_ptr_conv): support marshalling of delegates.
2752 2002-09-12 Miguel de Icaza <miguel@ximian.com>
2754 * marshal.c (mono_marshal_get_managed_wrapper): Added
2757 2002-09-11 Martin Baulig <martin@gnome.org>
2759 * gc.c: Call GC_unregister_disappearing_link() on all links when
2760 finalizing them, this is necessary to aviod a crash in boehm's
2763 Wed Sep 11 17:06:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
2765 * gc.c: handle GetTarget for finalized objects spotted and fixed by
2768 Wed Sep 11 15:27:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
2770 * icall.c: implemented MonoType::Module.
2771 * reflection.c, reflection.h: mono_module_get_object () from
2772 Tomi Pakarinen <tomi.pakarinen@welho.com>.
2774 Wed Sep 11 12:53:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
2776 * icall.c: ignore overridden methods in GetMethods ().
2777 Fix for FieldInfo::SetValue().
2778 * object.c: handle float/double in runtime invoke.
2780 Tue Sep 10 15:51:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
2782 * object.c: allow a constructor to be called again on an object.
2784 Tue Sep 10 11:58:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2786 * class.h, class.c: move field layout code to it's own function and
2787 export it. Get an interface id earlier. Move fields in MonoClass
2788 so they are more cache friendly and align the bitfields.
2789 * loader.c: temporary handle get_param_names() for a runtime method.
2790 * reflection.c, reflection.h: more code to handle runtime creation of
2793 2002-09-09 Martin Baulig <martin@gnome.org>
2795 * marshal.c (mono_marshal_get_native_wrapper): We need to use a special
2796 signature with the pinvoke field being set for the actual call.
2798 Sat Sep 7 10:12:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
2800 * icall.c: removed some unused icalls. Start of map of glib charsets
2801 to corlib names. Implemented RuntimeMethod::GetFunctionPointer ().
2803 Fri Sep 6 16:08:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
2805 * debug-helpers.c: break infinite loop (found and fixed by
2806 Holger Arnold <harnold@gmx.de>).
2808 Thu Sep 5 18:50:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
2810 * icall.c: target may be null in create_delegate.
2812 Thu Sep 5 17:42:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2814 * marshal.c: handle a boolean return type.
2816 Thu Sep 5 13:09:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2818 * gc.c: put HIDE_POINTER/REVEAL_POINTER only here.
2820 Wed Sep 4 19:23:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
2822 * gc.c: fix weakreferences.
2824 Wed Sep 4 13:59:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
2826 * icall.c: added icall to get default codepage.
2828 2002-09-03 Dick Porter <dick@ximian.com>
2831 * threads.c: Use MonoThread instead of MonoObject where
2834 Store running thread objects in a hash table, so that we have all
2835 the info to hand when waiting for them to finish
2836 (means we don't need OpenThread() any more, so mingw builds should
2837 be fully functional again.)
2840 * object.h: Added thread ID to MonoThread
2842 2002-09-03 Martin Baulig <martin@gnome.org>
2844 * icall.c (System.Reflection.Assembly::get_location): New interncall.
2846 2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2848 * icall.c: fixed leak in get_temp_path. Thanks lupus.
2850 2002-09-03 Martin Baulig <martin@gnome.org>
2852 * debug-helpers.c (mono_disasm_code_one): Added `const guchar **endp'
2853 argument to store the end address of the disassembled instruction.
2855 * debug-mono-symfile.h (MonoDebugMethodInfo, MonoDebugVarInfo): Moved
2856 here from debug-symfile.h.
2857 (MonoDebugMethodJitInfo): Moved all fields which are filled out by the
2858 JIT into this struct.
2859 (MonoSymbolFile): Added `char *image_file' field.
2860 (MonoDebugGetMethodFunc): Removed.
2861 (mono_debug_update_mono_symbol_file): Removed the hash table argument.
2862 (mono_debug_create_mono_symbol_file): Removed the `source_file' argument.
2863 (mono_debug_find_method): New method.
2865 * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): Always
2866 create a full symbol file.
2867 (mono_debug_update_mono_symbol_file): Don't distinguish between dynamic
2868 and static symbol files.
2869 (mono_debug_find_method): The symbol file keeps an internal method hash,
2870 call this to get a MonoDebugMethodInfo from a MonoMethod.
2872 * debug-symfile.[ch]: Removed.
2874 2002-08-29 Miguel de Icaza <miguel@ximian.com>
2876 * image.c (do_mono_image_open): Remove linker version check.
2878 2002-08-29 Dietmar Maurer <dietmar@ximian.com>
2880 * marshal.c (mono_marshal_get_managed_wrapper): don't cache
2881 wrappers for instance methods.
2883 2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2885 * icall.c: added ves_icall_System_IO_Path_get_temp_path.
2887 2002-08-28 Dick Porter <dick@ximian.com>
2889 * Makefile.am: Export HOST_CC for w32 builds
2891 Tue Aug 27 18:34:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
2893 * file-io.c process.c: MonoString are null terminated, no
2894 need for mono_string_to_utf16() anymore.
2896 Tue Aug 27 17:51:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
2898 * icall.c, unicode.h, unicode.c: removed unused iconv stuff.
2900 Tue Aug 27 16:38:58 CEST 2002 Paolo Molaro <lupus@ximian.com>
2902 * icall.c, reflection.h: speedup System.MonoType.
2904 Tue Aug 27 16:37:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
2906 * reflection.c: allow null as the value of a string argument in
2907 custom attributes constructors.
2909 2002-08-27 Martin Baulig <martin@gnome.org>
2911 * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Removed the
2912 `trampoline_address' field.
2914 2002-08-27 Dietmar Maurer <dietmar@ximian.com>
2916 * marshal.c (mono_marshal_get_native_wrapper): removed wrong null
2917 check (fixes bug #29486)
2919 2002-08-27 Martin Baulig <martin@gnome.org>
2921 * debug-mono-symfile.c: Changed the file format in a way that allows us
2922 open it read-only and to use a specially malloced area for all the
2923 dynamic data. We can now also generate a symbol file on-the-fly if we're
2924 debugging IL code and there is no MCS generated symbol file for it.
2926 Mon Aug 26 16:47:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
2928 * object.c: added a define for a good string and array
2929 creation speedup (not enabled by default because we need to deal with
2932 2002-08-26 Martin Baulig <martin@gnome.org>
2934 * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): New
2935 function to create a dynamic symbol file. This is used by the
2936 debugger to create a symbol file for IL code on-the-fly.
2938 2002-08-26 Martin Baulig <martin@gnome.org>
2940 * loader.c (mono_lookup_pinvoke_call): Include the error message
2941 from g_module_error() in the error message.
2943 2002-08-24 Martin Baulig <martin@gnome.org>
2945 * debug-mono-symfile.c (mono_debug_update_mono_symbol_file): New
2946 function to update the symbol file. The symbol file is mmap()ed
2947 writable, but private. This allows us to install the symbol file
2948 together with the assembly.
2950 2002-08-24 Martin Baulig <martin@gnome.org>
2952 * debug-mono-symfile.[ch]: New files. Similar to debug-symfile.[ch]
2953 but they can read the new symbol file format which mcs is now creating.
2955 * debug-symfile.c (mono_debug_find_source_location): Moved to
2956 debug-mono-symfile.c; this is now operating on the new symbol file.
2958 2002-08-23 Martin Baulig <martin@gnome.org>
2960 * debug-helpers.c (mono_method_desc_from_method): New function to get
2961 a MonoMethodDesc from a MonoMethod.
2963 Fri Aug 23 15:54:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
2965 * object.c: fixes assertion failure caused by multiple ExecuteAssembly
2966 calls for same domain (patch by Tomi Pakarinen <Tomi.Pakarinen@iki.fi>).
2968 Fri Aug 23 12:14:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
2970 * string-icalls.[ch]: make helper methods static.
2972 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2974 * icall.c: re-applied patch to GetValueInternal. Also added R4 and R8
2975 types to it and to SetValueInternal.
2977 * object.c: Moved handle_enum label to its proper place. This was the
2980 This time i compiled mcs and gtk-sharp and they both work.
2982 2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2984 * icall.c: reverted partially my previous patch until
2985 object.c:set_value handles enums correcly.
2987 2002-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2990 (ves_icall_MonoField_GetValue): changed to use mono_field_get_value.
2991 (ves_icall_System_Environment_get_MachineName): removed warning when
2992 compiling under cygwin.
2994 Thu Aug 22 18:49:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
2996 * object.c: fixed field_get_value() for reference types.
2998 2002-08-22 Dick Porter <dick@ximian.com>
3000 * socket-io.c (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal):
3001 Don't free a buffer while it's still needed. Patch from Jonathan
3002 Liger <Jonathan.liger@wanadoo.fr>
3004 2002-08-21 Miguel de Icaza <miguel@ximian.com>
3006 * icall.c (ves_icall_System_Environment_get_Platform): Add new
3009 2002-08-21 Dietmar Maurer <dietmar@ximian.com>
3011 * icall.c (ves_icall_get_method_info): s/MonoMethod/MonoReflectionMethod/
3012 (ves_icall_get_parameter_info): s/MonoMethod/MonoReflectionMethod/
3014 * marshal.c (mono_marshal_get_remoting_invoke): save lmf, because
3015 we call unmanaged code which throws exceptions.
3017 Wed Aug 21 12:56:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3019 * appdomain.h: added per-domain entry_assembly.
3020 * appdomain.c: ensure mono_runtime_exec_main () gets non-null
3022 * icall.c: Assembly::GetEntryAssembly icall.
3023 * object.c: set domain->entry_assembly in mono_runtime_exec_main().
3024 Changes above from a patch by Tomi Pakarinen <tomi.pakarinen@welho.com>.
3026 Tue Aug 20 15:42:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3028 * appdomain.h, gc.c: added mono_domain_finalize ().
3030 2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3033 (mono_print_unhandled_exception): changed g_warning by g_printerr
3034 because g_log has a 1024 characters limit (yeah, i got a big stack
3035 trace). Don't print exception name, that should be in ToString
3038 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3040 * icall.c: added ves_icall_FieldInfo_SetValueInternal.
3041 * object.c: added missing MONO_TYPE_ARRAY in mono_runtime_invoke_array.
3043 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3046 (mono_print_unhandled_exception): after previous commit, i realized
3047 that MS calls ToString on the exception. I changed this function to
3048 do that. This way we get stack_trace for free.
3050 2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3053 (mono_print_unhandled_exception): invoke Message property instead of
3054 getting 'message' field from Exception. Don't allocate memory for
3055 'trace' and 'message' if not needed.
3057 2002-08-18 Dick Porter <dick@ximian.com>
3059 * unicode.c: Fix asserts to match Encoder.cs checks
3061 Fri Aug 16 21:42:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3063 * marshal.c: fix unaligned store issue and a few wrong
3064 opcode argument types.
3066 2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3068 * icall.c: added GetUninitializedObjectInternal internal call.
3070 2002-08-16 Dietmar Maurer <dietmar@ximian.com>
3072 * appdomain.c (mono_runtime_invoke_in_domain): transfer Exception
3073 to the right domain.
3075 2002-08-14 Dietmar Maurer <dietmar@ximian.com>
3077 * marshal.c (mono_marshal_get_runtime_invoke): unbox value types
3079 * class.c (class_compute_field_layout): set blittable to false for Strings
3081 * appdomain.c (mono_domain_transfer_object): added support for ISerializable
3083 Wed Aug 14 17:26:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3085 * appdomain.h, reflection.c, icall.c, object.c, reflection.h:
3086 first chunk of code to create types at runtime. Code to
3087 handle ReflectedType/DeclaringType. Make reflection handles
3090 Wed Aug 14 17:24:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
3092 * class.c: set correct name in arrays.
3094 2002-08-13 Dietmar Maurer <dietmar@ximian.com>
3096 * appdomain.c (mono_domain_transfer_object): make it work with
3097 valuetypes. bug fixes.
3099 2002-08-12 Dick Porter <dick@ximian.com>
3101 * object.h: Rename some parameters to avoid c++ keywords (Patch
3102 from Joseph Wenninger <kde@jowenn.at>)
3104 Thu Aug 8 13:04:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
3106 * icall.c: added icall to implement Assembly.GetFile*.
3108 Thu Aug 8 10:18:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3110 * reflection.h, reflection.c: code to embed managed resources.
3112 Tue Aug 6 17:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3114 * class.c: move all the type size stuff into
3115 class_compute_field_layout().
3117 Tue Aug 6 11:20:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3119 * class.c: ensure enums have always the correct instance size.
3120 * unicode.c: remove wrong assert.
3122 Mon Aug 5 19:30:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
3124 * assembly.c: fix mem corruption issue.
3125 * image.h, image.c: added mono_image_get_resource () to access
3127 * icall.c: implemented Assembly.EntryPoint property and some
3128 Managed Resources related internalcalls.
3131 Mon Aug 5 18:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3133 * image.c, image.h: impemented mono_image_get_entry_point ().
3134 * appdomain.c: use mono_image_get_entry_point.
3136 Mon Aug 5 13:08:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3138 * reflection.c: support the object type argument when loading
3141 2002-08-05 Dietmar Maurer <dietmar@ximian.com>
3143 * marshal.c (mono_marshal_get_managed_wrapper): add suppport for
3144 String as return type.
3146 Fri Aug 2 21:15:42 CEST 2002 Paolo Molaro <lupus@ximian.com>
3148 * reflection.c: fix encoding of named args for custom attrs to match
3149 the ms implementation. Read them back when instantiating custom
3152 2002-08-02 Radek Doulik <rodo@ximian.com>
3154 * marshal.c (mono_mb_add_data): convert ret value to LE, suggested
3155 by Dietmar as quick fix
3156 (mono_marshal_get_delegate_begin_invoke): use sig->param_count +
3157 16 as stack size, used on more places as quick fix before Dietmar
3158 will fix it properly
3160 Fri Aug 2 17:48:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3162 * object.h, object.c: added accessors for fields and properties.
3164 Fri Aug 2 17:45:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3166 * class.c, class.h: made mono_class_get_field_from_name ()
3167 loop on parent types.
3168 Added mono_class_get_property_from_name ().
3170 Fri Aug 2 11:40:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3172 * class.c, class.h: move the code to setup the type vtable in its own
3173 function so that it can be reused also for types created at runtime.
3174 Eliminate the "class" identifier from the header file.
3175 * reflection.c: setup the vtable for enums so that we can create
3176 objects for use in SetConstant ().
3178 2002-08-02 Dietmar Maurer <dietmar@ximian.com>
3180 * marshal.c (mono_delegate_to_ftnptr): pass delegate->target
3181 instead of the delegate itself as this pointer (bug #28383)
3183 2002-08-01 Dietmar Maurer <dietmar@ximian.com>
3185 * marshal.c (mono_marshal_get_managed_wrapper): added return type
3188 Wed Jul 31 16:49:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3190 * loader.c: don't set the pinvoke bit on icalls.
3192 2002-07-31 Dietmar Maurer <dietmar@ximian.com>
3194 * debug-helpers.c (mono_method_full_name): only print a number to
3195 indicate wrapper type (so that the output is more readable in traces).
3197 2002-07-30 Dietmar Maurer <dietmar@ximian.com>
3199 * class.c (mono_class_init): include method override patch from Paolo
3201 Tue Jul 30 15:20:08 CEST 2002 Paolo Molaro <lupus@ximian.com>
3203 * icall.c: fixed GetTypeCode().
3205 2002-07-29 Dietmar Maurer <dietmar@ximian.com>
3207 * threads.c (ves_icall_System_Threading_Thread_Thread_internal):
3208 use real delegate invoke function to make it work with multicast
3209 delegates (fix bug# 28291).
3211 Fri Jul 26 11:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3213 * object.c: load constant strings.
3215 Fri Jul 26 11:36:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3217 * reflection.c: no magic numbers.
3218 * tabledefs.h: security action enum.
3220 Fri Jul 26 11:22:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3222 * assembly.c: fix possible memory corruption.
3224 Thu Jul 25 13:58:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
3226 * reflection.h, reflection.c: added support for linking resources.
3227 * verify.c: check we have an updated corlib.
3229 2002-07-25 Dietmar Maurer <dietmar@ximian.com>
3231 * marshal.c (mono_marshal_get_native_wrapper): correctly marshal
3233 (mono_marshal_string_array): null terminate unmanaged string arrays.
3234 (mono_marshal_get_managed_wrapper): print warning for arrays (not implemented)
3236 Wed Jul 24 13:32:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3238 * icall.c: Type.GetType () can now return also types from the
3241 Wed Jul 24 13:04:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3243 * loader.h, loader.c: stack walking support.
3244 * icall.c: implemented GetCurrentMethod, GetExecutingAssembly,
3247 2002-07-24 Dietmar Maurer <dietmar@ximian.com>
3249 * marshal.c: added optimisations for blittable types
3251 * class.c (mono_array_class_get): do not set blittable attribute on arrays
3252 (mono_class_setup_mono_type): set blittable attribute for single
3255 * marshal.c (mono_string_utf8_to_builder): impl.
3256 (mono_string_builder_to_utf8): impl.
3257 (mono_marshal_get_native_wrapper): impl. StringBuilder marshaling
3259 2002-07-23 Dietmar Maurer <dietmar@ximian.com>
3261 * marshal.c (mono_marshal_get_native_wrapper): impl. byref types
3262 (mono_marshal_get_managed_wrapper): impl. byref types
3264 2002-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3267 (search_method): don't display debug message.
3269 2002-07-22 Dietmar Maurer <dietmar@ximian.com>
3271 * metadata.c (mono_type_stack_size): removed temporary fix for new gcc
3273 Mon Jul 22 18:17:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3275 * appdomain.c: set the missing filename when throwing exception.
3277 2002-07-22 Dietmar Maurer <dietmar@ximian.com>
3279 * metadata.c (mono_type_size): code cleanup
3280 (mono_type_stack_size): removed some test code
3282 2002-07-21 Miguel de Icaza <miguel@ximian.com>
3284 * appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Use
3285 mono_get_exception_file_not_found now.
3287 * exception.c (mono_exception_from_name_two_strings): New version
3288 that will call a constructor with two string arguments.
3289 (mono_get_exception_file_not_found): New helper routine, used to
3290 report file-not-found errors.
3292 2002-07-20 Dick Porter <dick@ximian.com>
3295 * process.c: Pass file handles to CreateProcess
3299 * file-io.c: Implemented CreatePipe
3301 2002-07-19 Dietmar Maurer <dietmar@ximian.com>
3303 * metadata.c (mono_get_param_info): set alignment for value types
3305 Fri Jul 19 18:58:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3307 * appdomain.h, domain.c, threads-types.h: don't include config.h in headers.
3308 Constify mono_domain_assembly_open().
3309 * loader.c: handle null namespace in icalls.
3311 2002-07-19 Dietmar Maurer <dietmar@ximian.com>
3313 * marshal.c (emit_ptr_to_str_conv): marshal object as structs
3314 (emit_str_to_ptr_conv): marshal object as structs
3316 * metadata.c (mono_type_to_unmanaged): marshal object as structs
3318 * marshal.c (mono_marshal_get_runtime_invoke): support value types
3320 2002-07-18 Dietmar Maurer <dietmar@ximian.com>
3322 * marshal.c (mono_marshal_get_runtime_invoke): use exception filters
3323 (mono_marshal_get_native_wrapper): we an now return value types
3325 Wed Jul 17 18:21:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3327 * verify.c: more checks implemented.
3329 2002-07-17 Dietmar Maurer <dietmar@ximian.com>
3331 * marshal.c (mono_delegate_to_ftnptr): invoke the right method
3333 (mono_marshal_get_native_wrapper): allow byref arguments
3334 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringXXX):
3335 impl. PtrToStringXXX methods
3336 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type): impl.
3337 (ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf): impl.
3338 (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi): impl.
3339 (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni): impl.
3340 (ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure): impl.
3342 Tue Jul 16 19:00:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3344 * reflection.c: fix buglet in parsing an assembly name.
3346 2002-07-16 Dietmar Maurer <dietmar@ximian.com>
3348 * marshal.c (emit_ptr_to_str_conv): first impl.
3350 Tue Jul 16 12:39:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
3352 * object.c, class.h: cache the vtable in the class as suggested by
3353 vargaz@freemail.hu (Zoltan Varga).
3355 Tue Jul 16 11:27:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3357 * class.h, loader.c: added mono_field_from_token().
3358 * verify.c: first cut of type checking code.
3360 2002-07-16 Dietmar Maurer <dietmar@ximian.com>
3362 * marshal.c (mono_marshal_get_native_wrapper): support valuetypes
3364 2002-07-15 Dietmar Maurer <dietmar@ximian.com>
3366 * marshal.c (mono_marshal_get_native_wrapper): handle enum types
3368 (mono_marshal_get_remoting_invoke): impl.
3369 (mono_delegate_begin_invoke): impl.
3370 (mono_mb_emit_save_args): impl.
3371 (mono_delegate_end_invoke): impl.
3372 (mono_marshal_get_delegate_begin_invoke):
3373 (mono_marshal_get_delegate_end_invoke):
3374 (mono_marshal_get_delegate_invoke): generate a special name for
3375 those methods (including the signature) and associate them whith
3378 2002-07-13 Gonzalo Paniagua Javier <gonzalo@gnome-db.org>
3381 (mono_reflection_type_from_name): now it has a MonoImage parameter
3382 which is used as the default image to search the type in. If the image
3383 is NULL or getting the type from it fails, it defaults to corlib.
3385 * icall.c: changed 1 call to mono_reflection_type_from_name to match
3388 Sat Jul 13 19:32:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3390 * reflection.c: update the parameter table index.
3392 Sat Jul 13 17:34:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3394 * domain.c: don't include the mark byte in the string hash.
3396 Sat Jul 13 15:06:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3398 * icall.cs: icall for Type.GetTypeCode ().
3399 * verify: a couple of fixes and disabled local initialization checks.
3401 2002-07-12 Dietmar Maurer <dietmar@ximian.com>
3403 * marshal.c: better debugging support (DEBUG_RUNTIME_CODE)
3405 * debug-helpers.c (mono_method_full_name): print the type of the
3408 * metadata.c (mono_signature_hash): a hash function for signatures
3409 (mono_signature_hash): better hash algorithm
3411 * marshal.c (mono_marshal_get_delegate_invoke): cache methods by signature
3413 * debug-helpers.c (mono_method_full_name): this can now generate
3414 method names with signatures
3416 * marshal.c (mono_marshal_get_managed_wrapper): bug fix: unmanaged
3417 method dont have this pointers.
3419 Fri Jul 12 11:35:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
3421 * reflection.c: fixup typebuilder tokens.
3422 * image.c: fix buglet.
3423 * marshal.h: remove whitespace.
3424 * metadata.h, metadata.c: reinstate code that was removed.
3425 * verify.c: handle catch directives and fix another couple of bugs.
3427 2002-07-11 Dietmar Maurer <dietmar@ximian.com>
3429 * marshal.c (mono_marshal_get_native_wrapper): support BOOLEAN
3430 (mono_marshal_get_native_wrapper): make it comp. with the old code
3431 (mono_marshal_get_native_wrapper): support boolean
3432 (mono_marshal_get_managed_wrapper): support more types
3434 2002-06-25 Dietmar Maurer <dietmar@ximian.com>
3436 * class.c (class_compute_field_layout): compute class->blittable attribute.
3438 2002-07-09 Dick Porter <dick@ximian.com>
3440 * threads.c: Make the thread cleaning up cope with threads that
3443 2002-07-08 Radek Doulik <rodo@ximian.com>
3445 * reflection.c (method_encode_code): use non-translated values to
3446 compute finally_start, this fixes exception handling on ppc, yay!
3448 * decimal.h (struct signscale): fix endianess
3450 2002-07-07 Radek Doulik <rodo@ximian.com>
3452 * reflection.c: swap box_val and not val
3454 Mon Jul 8 15:18:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
3456 * reflection.c, reflection.h: handle full assembly info in type name.
3457 Handle Type arguments when loading custom attributes.
3458 * icall.c: updated to use new mono_reflection_type_from_name () method.
3460 2002-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3463 (method_from_memberref): also print assembly name when method not found.
3465 2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3468 (ves_icall_TypeGetProperties): fixed bug #27473.
3470 2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3472 * reflection.c: display image name and token when cannot find the
3473 .ctor for an attribute.
3475 2002-07-05 Martin Baulig <martin@gnome.org>
3477 * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3479 2002-07-04 Dick Porter <dick@ximian.com>
3481 * threads.c (mono_thread_cleanup): Nasty kludge to get this to
3482 compile on mingw. This will cause mingw builds to not wait for
3483 subthreads to terminate after the main thread does. I've lodged a
3484 bug with the mingw developers for them to wrap OpenThread().
3486 2002-07-03 Dick Porter <dick@ximian.com>
3488 * threads.c: Store thread IDs instead of handles, because
3489 GetCurrentThread() returns a pseudohandle and therefore stores
3490 useless values. mono_thread_cleanup() continues checking the
3491 array of threads until it is empty, to cope with subthreads
3492 spawning new threads after the main thread has finished.
3496 * profiler-private.h: Pass the thread ID to thread profiler
3497 functions, instead of a handle
3499 Wed Jul 3 17:43:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3501 * verify.c: fixes to make it more usable.
3502 * pedump.c: added --verify code to verify IL code in an assembly.
3504 Tue Jul 2 20:40:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3506 * reflection.c: turn errors into warnings to allow compiling corlib.
3508 Tue Jul 2 19:33:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
3510 * reflection.c: add special cases to compile corlib.
3512 Mon Jul 1 18:00:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3514 * reflection.c: handle properties with only a set method.
3516 Mon Jul 1 17:11:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
3518 * opcodes.h: add enum with opcodes in opval order.
3520 2002-07-01 Dick Porter <dick@ximian.com>
3523 * object.c (mono_runtime_run_main): Removed unneeded argument
3525 2002-06-28 Martin Baulig <martin@gnome.org>
3527 * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3529 2002-06-27 Dick Porter <dick@ximian.com>
3531 * threads.c: Store the handle in both the parent thread and in the
3532 subthread, to minimise the time between starting a new thread and
3535 2002-06-26 Dick Porter <dick@ximian.com>
3537 * appdomain.c (mono_runtime_cleanup): Close the socket library
3538 after all the threads have finished, not before
3540 2002-06-26 Martin Baulig <martin@gnome.org>
3542 * debug-symfile.c (mono_debug_find_source_location): Added
3543 `guint32 *line_number' argument. If it's not NULL, store the line number
3544 there and return the file name without the line number.
3546 2002-06-25 Dick Porter <dick@ximian.com>
3550 * process.c: Process forking and other support functions
3552 2002-06-25 Dick Porter <dick@ximian.com>
3554 * image.c (do_mono_image_open): Set ref_count to 1, so that bad
3555 things dont happen when the image is closed.
3556 (mono_image_lookup_resource): Walk the resource section looking
3557 for a particular entry
3559 * cil-coff.h: PE resource section decoding
3561 2002-06-25 Dick Porter <dick@ximian.com>
3565 (mono_assembly_foreach): Accessor functions to walk the list of
3567 (mono_assembly_set_main):
3568 (mono_assembly_get_main): Process methods need to know which
3569 assembly is the "main" one
3571 * object.c (mono_runtime_run_main): Record the main assembly
3573 * debug-helpers.c: Fix typo
3575 2002-06-24 Dietmar Maurer <dietmar@ximian.com>
3577 * icall.c (ves_icall_System_Runtime_InteropServices_Marshal_copy_to_unmanaged): impl.
3578 (ves_icall_System_Runtime_InteropServices_Marshal_copy_from_unmanaged): impl.
3580 Sat Jun 22 11:37:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3582 * icall.c: fix off-by-one in Assembly.GetTypes() reported by bob@karr.ath.cx.
3584 2002-06-21 Miguel de Icaza <miguel@ximian.com>
3586 * image.c (do_mono_image_open): Initialize reference count,
3587 otherwise we leak the MonoImage.
3589 Fri Jun 21 19:16:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3591 * reflection.c: small tweak to handle self-hosting.
3593 Thu Jun 20 23:28:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
3595 * reflection.c: fix type name parse code.
3597 Thu Jun 20 19:24:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3599 * reflection.c: break out of the loop.
3600 * image.c: special case corlib.
3602 Thu Jun 20 16:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3604 * reflection.c: add all the custom attrs at the end to ensure the
3605 ctors have been properly initialized when the attributes are defined
3606 in the current assembly.
3608 Thu Jun 20 13:46:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3610 * reflection.c: handle correctly multiple-nested types.
3612 Thu Jun 20 11:49:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
3614 * row-indexes.h: fix typos.
3615 * reflection.c: adjust for typos and fix method_def_or_ref
3616 encoding in MethodImpl table.
3618 Wed Jun 19 21:57:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3620 * reflection.c: fix entry point patching (thanks Serge!).
3622 2002-06-18 Dietmar Maurer <dietmar@ximian.com>
3624 * verify.c: add check for System.Exception
3626 Mon Jun 17 20:23:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3628 * image.c, class.c: minifix for code just c&p'ed.
3629 * reflection.c: warning fix.
3630 * object.h, loader.h, domain.c: load also StringBuilder.
3632 Mon Jun 17 17:29:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3634 * marshal.h, marshal.c: some support code to handle complex marshaling.
3636 Mon Jun 17 16:32:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3638 * class.h, class.c, reflection.c: handle ignorecase in GetType ().
3639 Better signatures with vtable error dump.
3641 Mon Jun 17 16:13:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
3643 * reflection.c, reflection.h, icall.c: fixes for multiple-nested types.
3645 2002-06-17 Dietmar Maurer <dietmar@ximian.com>
3647 * icall.c (ves_icall_Type_GetField): impl.
3649 Mon Jun 17 16:08:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3651 * metadata.h, metadata.c: added mono_metadata_get_marshal_info()
3652 to retrieve a marshal description blob for a field or param.
3654 Mon Jun 17 14:57:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3656 * reflection.h, reflection.c: change order of nested type emission
3657 to avoid table corruption. The NestedTypes table is sorted.
3658 * icall.c: change order of GetConstructor results to workaround mcs bug.
3660 Fri Jun 14 16:24:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3662 * reflection.h, reflection.c: handle field and param marshal
3665 Wed Jun 12 16:30:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3667 * icall.c, marshal.c marshal.h: more Marshal class implementation.
3669 Tue Jun 11 17:29:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3671 * reflection.c: fix call convention.
3673 Tue Jun 11 16:52:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3675 * reflection.h, reflection.c: mono_image_get_memberref_token()
3676 takes a type instead of a class, now. Added
3677 mono_image_get_array_token() to create tokens for the special
3678 multi-dim array methods.
3680 Tue Jun 11 13:21:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
3682 * assembly.c: handle modules (no assembly table). Split
3683 loading references in its own function.
3684 * class.c: handle moduleref resolution scope.
3685 * image.c, image.h: cache module name in image.
3687 2002-06-07 Martin Baulig <martin@gnome.org>
3689 * reflection.c (mono_image_get_type_info): Only add a class layout entry
3690 if we actually have a `tb->class_size' (ie. it's not UnspecifiedTypeSize).
3692 Fri Jun 7 22:07:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3694 * icall.c: more signature fixes that used uint instead of int.
3696 Fri Jun 7 20:41:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3698 * reflection.c: fixed signature of field refs.
3700 Fri Jun 7 19:41:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3702 * class.c, reflection.c: handle typerefs of nested types
3703 (both on read and when writing files).
3705 Fri Jun 7 17:46:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
3707 * icall.c: fix method signatures that tried to workaround the previous
3710 Fri Jun 7 17:36:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
3712 * debug-helpers.c: fix typo.
3714 Fri Jun 7 17:00:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
3716 * cil-coff.h, icall.c, image.c, reflection.c, reflection.h:
3717 rewrote the PE/COFF writing code (our programs are understood by the
3720 Tue Jun 4 18:10:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3722 * gc.c, gc.h, icall.c: weakreference support.
3724 Tue Jun 4 16:06:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3726 * Makefile.am, mono-config.c: use $(sysconfdir).
3728 Mon Jun 3 13:13:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3730 * icall.c: changed default precision of Double.ToString() to 15.
3731 Fixed memory leak. Unified with Single.ToString.
3733 Sat Jun 1 14:26:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
3735 * sysmath.c: workaround systems missing NAN and/or HUGE_VAL.
3737 Sat Jun 1 13:46:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
3739 * pedump.c, appdomain.c, appdomain.h, assembly.c, domain.c,
3740 gc.c, icall.c, image.c, mono-config.c, reflection.c: killed
3741 warnings and compilation fixes from Dennis Haney (davh@davh.dk)
3744 Fri May 31 16:58:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3746 * debug-symfile.c, sysmath.c: yet more compilation fixes.
3748 Fri May 31 16:35:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3750 * reflection.c, socket-io.c: more compilation fixes.
3752 Fri May 31 15:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3754 * appdomain.c, class.c, class.h, debug-symfile.c, decimal.c,
3755 domain.c, loader.c, object.c, object.h, reflection.c, string-icalls.h,
3756 unicode.c: warning and compiler compatibility fixes.
3758 Fri May 31 15:36:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
3760 * class.h, metadata.c: fixed warnings/compilation errors.
3762 Fri May 31 13:08:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3764 * Makefile.am, mono-config.c, mono-config.h: configuration file
3766 * loader.c, loader.h: make Dll mapping configurable at runtime in the
3767 config file. Export methods to insert and lookup mappings.
3769 Fri May 31 12:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
3771 * reflection.c: handle types and boxed objects in custom attr
3774 2002-05-30 Martin Baulig <martin@gnome.org>
3777 (ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token): Removed.
3779 Thu May 30 14:15:02 CEST 2002 Paolo Molaro <lupus@ximian.com>
3781 * metadata.c, metadata.h: added mono_metadata_implmap_from_method()
3782 to lookup the implmap row for a P/Invoke method.
3783 * loader.c: added mono_lookup_pinvoke_call(): we only lookup a
3784 P/Invoke method from the runtime on an as needed basis.
3786 2002-05-28 Dietmar Maurer <dietmar@ximian.com>
3788 * metadata.c (mono_metadata_parse_signature): impl.
3790 Tue May 28 16:02:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3792 * class.c: handle .pack directive.
3794 Tue May 28 11:04:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
3796 * object.c: initialize static fields with RVA data.
3798 2002-05-25 Martin Baulig <martin@gnome.org>
3801 (ves_icall_Debugger_DwarfFileWriter_get_type_token): Removed.
3803 2002-05-24 Martin Baulig <martin@gnome.org>
3806 (ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig): Removed.
3807 (ves_icall_Debugger_MonoSymbolWriter_method_from_token): Renamed to
3808 `ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token'.
3810 Thu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
3812 * object.c: special case string ctros in invoke.
3813 * gc.c: silly whitespace changes.
3815 2002-05-23 Dietmar Maurer <dietmar@ximian.com>
3817 * threadpool.[ch]: impl. a threadpool that can
3818 be used by mint and mono.
3820 2002-05-22 Martin Baulig <martin@gnome.org>
3822 * debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
3823 The first argument is now a `MonoReflectionModuleBuilder *', the return
3824 value is a `MonoReflectionModuleBuilder *'. Use the AssemblyBuilder's
3825 `methods' field to get the method builder. The `token' argument is the
3828 * unicode.c (iconv_get_length, iconv_convert): Silently ignore all
3829 invalid characters instead of g_assert_not_reached()ing. This seems
3830 to be the behaviour of mscorlib.
3832 2002-05-22 Dietmar Maurer <dietmar@ximian.com>
3834 * object.c (mono_runtime_invoke_array): applied patch from Rachel
3835 Hestilow to fix bug #25104
3837 2002-05-21 Martin Baulig <martin@gnome.org>
3839 * debug-symfile.c (mono_debug_find_source_location): New function.
3840 Looks up an IL offset in the line number table and returns the source
3841 location as a string.
3843 2002-05-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3846 (mono_double_ToStringImpl): changed %f by %g until we have something
3849 2002-05-21 Nick Drochak <ndrochak@gol.com>
3851 * icall.c : Use different name for Math.Pow's icall. Needed to check
3852 parameters first in C#.
3854 Mon May 20 17:36:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3856 * icall.c, reflection.h: added icall to get info about an event.
3858 2002-05-20 Radek Doulik <rodo@ximian.com>
3860 * object.c (mono_value_box): don't use memcpy for boxing on BIG
3862 (mono_value_box): don't use memcpy for small sizes on
3863 architectures with unaligned access
3865 2002-05-20 Martin Baulig <martin@gnome.org>
3867 * reflection.c (mono_reflection_setup_internal_class): Don't crash
3868 if `tb->parent == NULL'.
3869 (mono_reflection_create_internal_class): New function. This is
3870 called from TypeBuilder.CreateType() and sets `klass->enum_basetype'
3873 * icall.c ("System.Reflection.Emit.TypeBuilder::create_internal_class"):
3876 2002-05-19 Martin Baulig <martin@gnome.org>
3878 * unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
3879 argument to get the length, don't default to the array length.
3881 2002-05-18 Miguel de Icaza <miguel@ximian.com>
3883 * assembly.c (mono_assembly_setrootdir): New function used to
3884 override the MONO_ASSEMBLIES directory.
3886 Fri May 17 20:39:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
3888 * icall.c: ValueType_GetHashCode() initialize local var.
3890 Thu May 16 17:20:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3892 * reflection.c: sort custom attributes table.
3894 Thu May 16 16:08:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
3896 * reflection.c: support named args in custom attributes (write support).
3898 Thu May 16 13:04:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
3900 * reflection.c: fix finally position calculation.
3902 2002-05-15 Radek Doulik <rodo@ximian.com>
3904 * reflection.c: fixed endianess at many places
3906 * icall.c (ves_icall_InitializeArray): comment out debug msg
3908 2002-05-15 Dietmar Maurer <dietmar@ximian.com>
3910 * object.c (mono_unhandled_exception): new function to handle
3911 unhandled exceptions.
3912 (mono_unhandled_exception): call the UnhandledException event.
3913 (mono_runtime_delegate_invoke): impl.
3915 Wed May 15 15:59:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
3917 * metadata.h, metadata.c, class.c: mono_metadata_field_info ()
3918 returns the RVA, not the direct pointer to the data. Handle the case
3919 when the class size is fixed.
3921 Tue May 14 16:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3923 * reflection.c: fix some endianess issues.
3925 2002-05-14 Dietmar Maurer <dietmar@ximian.com>
3927 * object.c (mono_runtime_invoke): is now able to catch exceptions.
3929 * threads.c (mono_thread_init): added a callback which is invoked
3932 2002-05-14 Dan Lewis <dihlewis@yahoo.co.uk>
3934 * icall.c: make GetHashCode return non-negative values.
3936 2002-05-14 Dan Lewis <dihlewis@yahoo.co.uk>
3938 * object.c, icall.c, gc.c: revert to address-based hashcode.
3940 2002-05-13 Miguel de Icaza <miguel@ximian.com>
3942 * icall.c (mono_double_ParseImpl): Added ParseImpl method.
3944 Mon May 13 16:40:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3946 * icall.c, class.c: special case <Module>.
3948 2002-05-13 Dan Lewis <dihlewis@yahoo.co.uk>
3950 * icall.c: fix bug in GetNow().
3952 2002-05-11 Dietmar Maurer <dietmar@ximian.com>
3954 * object.c (mono_runtime_class_init): make sure that we call all
3955 static class constructors.
3957 Fri May 10 18:14:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
3959 * reflection.c: sort methodsemantics table.
3961 Fri May 10 16:31:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3963 * reflection.h, reflection.c: honour init locals setting.
3965 Thu May 9 18:50:00 EDT 2002 Daniel Morgan <danmorg@sc.rr.com>
3967 * icall.c: copied Double ToStringImpl for Single ToStringImpl
3969 Wed May 8 12:28:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
3971 * reflection.c: support ContructorBuilders in attribute blob creation.
3973 Wed May 8 12:06:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3975 * reflection.c: some changes to build a binary that can be run
3976 directly in windows.
3978 Mon May 6 13:10:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
3980 * loader.c: print a big message when an icall can't be found.
3982 2002-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3984 * string-icalls.c: fix bug 24248.
3986 Sat May 4 14:03:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
3988 * appdomain.c, appdomain.h, assembly.c, assembly.h, image.h,
3989 icall.c, reflection.h: separate assembly loading by pathname and by
3990 assembly name. Use the MONO_PATH env var to search for assemblies.
3992 Thu May 2 17:56:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3994 * assembly.c, image.h: add some support for assemblies
3995 with multiple modules.
3996 * class.c, class.h: export mono_class_from_typeref().
3997 * loader.c: remove duplicated code and use mono_class_from_typeref(),
4000 Thu May 2 15:51:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4002 * unicode.c: Char.IsNumber doesn't include hex digits as the ms
4003 documentation says (the ECMA one is correct).
4005 2002-05-02 Dick Porter <dick@ximian.com>
4007 * threads.c: Use GC_debug_register_finalizer with GC_debug_malloc.
4008 Don't name the synchronisation mutex.
4010 2002-04-30 Jeffrey Stedfast <fejj@ximian.com>
4013 (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetBytes):
4014 Make the prototypes match.
4015 (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetNonZeroBytes):
4019 (ves_icall_System_CurrentTimeZone_GetTimeZoneData): Fixed for
4020 systems that use 'timezone' rather than tm.tm_gmtoff. Also, not
4021 all systems have tm.tm_zone, so use strftime() with %Z to print
4022 the timezone abreviation into a temp string.
4024 * object.c (mono_ldstr): Fixed to use mono_string_chars() macro
4025 rather than mono_array_addr() on a MonoString on Big Endian
4028 2002-04-30 Dietmar Maurer <dietmar@ximian.com>
4030 * string-icalls.c (ves_icall_System_String_InternalReplace_Str):
4033 2002-04-30 Dick Porter <dick@ximian.com>
4035 * socket-io.c: Cope with SOCKET being an integer rather than a
4038 * threads.c: Added Thread_free_internal, to deal with thread
4039 handle cleanup. Moved calls to handle_store() and handle_remove()
4040 to start_wrapper(), so each can only be called once. Allocate
4041 synchronisation blocks with GC_malloc(), and use GC finalisation
4042 to close the handles.
4044 * icall.c: added System.Threading.Thread::Thread_free_internal
4046 Mon Apr 29 15:33:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4048 * icall.c: support Environment.Exit, CommandLineArgs().
4050 Mon Apr 29 15:15:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
4052 * object.c, object.h: added mono_runtime_run_main () and
4053 mono_runtime_get_main_args () for use in System.Environment.
4055 Mon Apr 29 13:45:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4057 * gc.c: fix thinko, enable actual finalization since the jit is now
4060 Mon Apr 29 12:47:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4062 * gc.c, object.c: take into account that an object may be offset wrt the address
4063 returned by GC_malloc().
4065 Mon Apr 29 12:14:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
4067 * image.c: handle files without entries in the assembly table (modules).
4069 2002-04-28 Patrik Torstensson <patrik.torstensson@intel.com>
4071 * reflection.c (mono_reflection_setup_internal_class): remove g_assert_not_reached() to allow
4072 mcs selfhosting again (build breaker) and did move the check to class instead. parent is
4073 allowed to be null when it's System.Object class setup.
4075 2002-04-27 Martin Baulig <martin@gnome.org>
4077 * reflection.c (mono_reflection_setup_internal_class): g_assert_not_reached()
4078 if `tb->parent == NULL' rather than crashing.
4080 2002-04-28 Nick Drochak <ndrochak@gol.com>
4082 * sysmath.c (ves_icall_System_Math_Asin): Fix copy-paste error. Was
4083 calling acos() where asin() should have been called.
4085 2002-04-26 Martin Baulig <martin@gnome.org>
4087 * assembly.c (default_assembly_name_resolver): Use G_FILE_TEST_IS_REGULAR
4088 instead of G_FILE_TEST_EXISTS - if you're in mcs/class/corlib/System/Test,
4089 there's a subdirectory called `System', but we don't want to read that
4090 subdirectory as an assembly.
4092 2002-04-25 Martin Baulig <martin@gnome.org>
4094 * debug-symfile.c: Reflect latest MonoString changes.
4096 Thu Apr 25 16:38:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
4098 * rand.c, rand.h: instance method icalls need to have an explicit
4099 this pointer as first argument in the C implementation.
4101 2002-04-25 Nick Drochak <ndrochak@gol.com>
4103 * icall.c: Fix typo in map for GetNonZeroBytes
4105 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4107 * string-icalls.c : String does now passes unit tests without any
4108 errors, the following changes has been made:
4110 Implemented replace methods.
4111 Renaming of methods to (try) follow the standard.
4112 Fixed compare ordinal
4113 Made all memory allocated directly to function instead of via icall function.
4114 Small performance fix in is_in_array function
4116 (2002-04-23) Changes from Duncan Mak <duncan@ximian.com>
4118 c (mono_string_Internal_ctor_charp_int_int):
4119 (mono_string_Internal_ctor_sbytep_int_int): Removed check for
4120 sindex < 0, throw ArgumentOutOfRangeException instead of
4121 ArgumentNullException.
4123 Added new check for length == 0, however
4124 I need to make it return String.Empty from the C code.
4126 (mono_string_Internal_ctor_sbytep): Use mono_string_new, and let
4127 that calculate the length for us here.
4129 (mono_string_Internal_ctor_sbytep_int_int): Replaced
4130 mono_string_new_utf16 with mono_string_new, since value is utf8.
4132 Wed Apr 24 18:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4134 * object.c: register the object for finalization if needed.
4135 Allocate one more char in the string for the terminating 0 char.
4137 Wed Apr 24 18:22:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4139 * class.c, class.h, image.c: check if a type implemenst a destructor.
4140 Use the proper key for array class lookups.
4141 * icall.c: register the icalls in the System.GC class.
4142 * gc.c, gc.h: GC-related functions and icalls.
4144 2002-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4148 * unicode.c: free some strings gotten from mono_string_to_utf8 and
4149 changed a couple of free () by g_free ().
4151 * decimal.c: one-liner in the comments for decimal2string ().
4153 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4155 * object.c (mono_runtime_invoke_array) : Bug because of my incompetence.
4157 2002-04-24 Patrik Torstensson <patrik.torstensson@labs2.com>
4159 * reflection.c (mono_reflection_get_custom_attrs) : fixed image bug (crash)
4160 * object.c (mono_runtime_invoke_array) : handle null in params
4162 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4164 * string-icalls.c: fixed bug in split (one off bug)
4166 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4168 * string-icalls.c: fixed bug in remove and lastindexofany, add equals icall.
4169 * icalls.c: added String::Equals as internal method
4171 2002-04-23 Patrik Torstensson <patrik.torstensson@labs2.com>
4173 * threads.c: fixed bug in the double interlocked functions
4175 2002-04-22 Patrik Torstensson <patrik.torstensson@labs2.com>
4177 * threads.c: implemented all of the new interlocked icalls.
4178 * string-icalls.c: fix a bug in insert.
4179 * icalls.c: added the icalls for interlocked, removed old string functions.
4181 Mon Apr 22 19:44:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4183 * loader.c: fix off-by-one error when reading argument names.
4185 Mon Apr 22 19:28:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4187 * profiler.c: win32 counter implementation (untested).
4188 * icall.cs: win32 GetNow() and GetTimeZoneData() implementations
4189 (the latter needs testing and more complete impl. from win32 folks).
4191 2002-04-21 Dan Lewis <dihlewis@yahoo.co.uk>
4193 * object.c: mono_array_new_full workaround mono_array_class_get
4196 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4198 * string-icalls.c (mono_string_InternalRemove): Fixed overwrite bug.
4199 * object.h (mono_string_chars): Changed casting type.
4201 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4203 * string-icalls.c: Fixed trim method, added the constructors done by Duncan, fixed
4204 method signatures to use gunichar2 instead of gint16.
4206 2002-04-20 Dan Lewis <dihlewis@yahoo.co.uk>
4208 * object.h, object.c: domain-specific versions of mono_object_new and
4211 2002-04-20 Dietmar Maurer <dietmar@ximian.com>
4213 * object.c: changed String layout
4215 * string-icalls.c (mono_string_Internal_ctor_chara): added
4216 internal string constructors.
4218 Sat Apr 20 13:33:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
4220 * threads.c: pass 'this' to the thread start routine.
4222 2002-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4224 * string-icalls.c: fix IndexOf and LastIndexOf. Now
4225 InternalCompareStr don't call twice mono_string_cmp_char for the last
4226 character. Improved performance in mono_string_cmp_char.
4228 Fri Apr 19 19:26:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
4230 * Makefile.am, appdomain.c, class.c, object.c: split runtime-depended
4231 code into its own library: libmonoruntime.
4233 2002-04-19 Dan Lewis <dihlewis@yahoo.co.uk>
4235 * object.h, object.c: changed array format so that szarrays do not
4236 require a bounds structure.
4237 * icall.c, appdomain.c: support for new szarray format.
4239 Fri Apr 19 18:04:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
4241 * metadata.c: compare also the retuns type when comparing signatures:
4242 we didn't do this as an optimization since really overloaded methods
4243 must differ also in the arguments, but this doesn't work with
4244 low-level IL code (or when using explicit conversion operators: see
4245 bug#23498 for an example).
4247 Fri Apr 19 16:14:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
4249 * loader.c: SZARRAY types can be saved as TYPESPEC, too.
4251 Thu Apr 18 17:15:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
4253 * icall.c: make MonoType::GetElementType its own icall.
4255 Thu Apr 18 16:41:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
4257 * icall.c: remove MonoMethod_get_Name().
4258 * reflection.c, reflection.h, verify: cache the method name in the MonoMethod
4261 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4263 * string-icalls.c: optimized a few methods.
4265 2002-04-17 Patrik Torstensson <patrik.torstensson@labs2.com>
4267 * icall.c: added all new string internal calls
4268 * string-icalls.c: added, new string internal call implementation.
4269 * object.c: added mono_string_new_size for allocating a string a size
4271 2002-04-17 Dietmar Maurer <dietmar@ximian.com>
4273 * object.c (mono_object_isinst): use the same code as in the
4274 optimized x86 version.
4276 Wed Apr 17 14:14:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4278 * profiler.c: TSC-based timer code (faster and more accurate).
4279 Not hooked up in configure, yet (set USE_X86TSC to 1).
4281 Wed Apr 17 12:33:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
4283 * profiler.c, profiler.h: track time spent compiling methods.
4284 * threads.c: track thread creation/destruction.
4286 Tue Apr 16 20:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
4288 * profiler.c, profiler.h, profiler-private.h: profiling interface
4289 and sample implementation. Moved here so that it can be used also by
4292 Tue Apr 16 12:58:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
4294 * reflection.c, reflection.h: keep types and other handles separate in
4295 the hash tables for referred tokens. Add guid for modules.
4297 Mon Apr 15 11:37:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
4299 * assembly.c: fix bugs found with valgrind.
4300 * metadata.h, metadata.c: added mono_metadata_guid_heap().
4302 2002-04-14 Patrik Torstensson <patrik.torstensson@labs2.com>
4304 * threads: added icall support for getting current domain for
4307 2002-04-13 Martin Baulig <martin@gnome.org>
4309 * debug-symfile.h (MonoDebugLocalInfo): Renamed to MonoDebugVarInfo.
4310 (MonoDebugVarInfo): Added `index' field for register based addresses.
4311 (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 9.
4312 (MonoDebugMethodInfo): Replaced `guint32 *param_offsets' with
4313 `MonoDebugVarInfo *params' and `guint32 this_offset' with
4314 `MonoDebugVarInfo *this_var'.
4316 * debug-symfile.c (relocate_variable): New static function to write
4317 a location description for a local variable or method parameter.
4319 2002-04-12 Martin Baulig <martin@gnome.org>
4321 * debug-symfile.h (MonoDebugLocalInfo): New type. This contains the
4322 stack offset and begin/end scope address of a local variable.
4323 (MonoDebugMethodInfo): Replaced `guint32 *local_offsets' with
4324 'MonoDebugLocalInfo *locals', added `prologue_end' and `epilogue_begin'.
4325 (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 8.
4327 * debug-symfile.c (MRT_variable_start_scope, MRT_variable_end_scope):
4328 Added new relocation types for start/end scope of a local variable.
4330 Fri Apr 12 18:30:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4332 * object.h: add mono_object_domain() macro.
4333 * reflection.c: handle typespecs.
4334 * icall.c: MonoMethod::get_Name() implementation.
4336 Thu Apr 11 12:29Ni:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4338 * icall.c: String::GetHashCode() icall implementation.
4340 Wed Apr 10 21:16:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4342 * icall.c: String::IndexOfAny icall.
4343 * object.c, object.h: make array->max_length more useful.
4344 Intrduced mono_object_class() and mono_string_length() macros.
4346 2002-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4348 * unicode.c (ves_icall_System_Char_IsNumber): use g_unichar_isxdigit
4349 instead of g_unichar_isdigit.
4351 2002-04-11 Nick Drochak <ndrochak@gol.com>
4353 * icall.c: Implement a simple Double.ToString().
4355 Tue Apr 9 21:31:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4357 * appdomain.h: only io-layer.h is supposed to be included.
4358 * icall.c: explicitly import environ. Fix warning.
4360 2002-04-10 Nick Drochak <ndrochak@gol.com>
4362 * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData) :
4363 return true even if it's not Daylight Savings time.
4364 Only return false for the case where the function isn't
4365 implemented for a plaform (read Windows).
4367 Tue Apr 9 13:05:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4369 * appdomain.h, appdomain.c, class.c, object.c: protect MonoDomain
4372 2002-04-09 Dietmar Maurer <dietmar@ximian.com>
4374 * mempool.c (mono_mempool_alloc): only use g_malloc when
4375 absolutely necessary.
4377 2002-04-08 Dietmar Maurer <dietmar@ximian.com>
4379 * mempool.c (MEM_ALIGN): hardcode MEM_ALIGN to 8
4381 * class.c (mono_class_vtable): use domain mempool to allocate vtable
4382 (mono_class_proxy_vtable): use domain mempool
4384 Mon Apr 8 17:17:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
4386 * appdomain.h, appdomain.c: split initialization that requires the
4387 execution engine support into mono_runtime_init().
4389 2002-04-08 Dietmar Maurer <dietmar@ximian.com>
4391 * class.c (mono_class_init): don't include vtable inside MonoClass
4392 to save some memory, gather some statistics.
4393 (mono_class_vtable): use g_malloc instead of GC_malloc when possible
4395 Sat Apr 6 20:07:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4397 * icall.c: internalcall implementation for ValueType.Equals().
4399 2002-04-06 Dietmar Maurer <dietmar@ximian.com>
4401 * object.c (mono_message_init): moved
4402 (mono_runtime_exec_main): new arch. independent impl.
4403 (mono_runtime_invoke_array): new method - like
4404 mono_runtime_invoke, but you can pass an array of objects.
4405 (mono_remoting_invoke): new arch. independent impl.
4406 (mono_message_invoke): new arch. independent impl.
4407 (mono_runtime_class_init): new arch. independent impl.
4408 (mono_runtime_object_init): new arch. independent impl.
4410 Fri Apr 5 18:29:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4412 * metadata.c, object.c, reflection.c: documented the exported
4415 Fri Apr 5 15:42:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
4417 * icall.c: simpler code to pass the assembly builder data to corlib.
4418 Implement GetNestedTypes() internalcall.
4420 Thu Apr 4 21:46:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4422 * class.c: warn if a type can't be loaded.
4424 2002-04-04 Dietmar Maurer <dietmar@ximian.com>
4426 * image.h: typedef MonoImageOpenStatus
4427 * types.h: removed unused file
4429 2002-04-04 Dan Lewis <dihlewis@yahoo.co.uk>
4431 * icall.c: Enum_ToObject accepts enum value arguments.
4433 Thu Apr 4 11:35:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
4435 * class.c: move initialization of properties, events and nested
4436 classes, so that they happen for interfaces, too.
4438 Wed Apr 3 20:03:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
4440 * icall.c: cleanup some ugly casts in Array_SetValue*.
4442 Wed Apr 3 19:49:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
4444 * icall.c: the values array fro enums is of the correct type, now.
4445 Implement (correctly) getFullName instead of assQualifiedName for
4447 * reflection.h, reflection.c: added mono_type_get_name ().
4449 Wed Apr 3 17:56:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
4451 * assembly.c, image.h: for each MonoImage, record from wich assembly
4453 * reflection.h, icall.c: added System_Reflection_Assembly_GetTypes().
4454 Make Type.Assembly work.
4456 2002-04-03 Dietmar Maurer <dietmar@ximian.com>
4458 * debug-symfile.h: use char* instead of gpointer to avoid
4461 * appdomain.c (mono_jit_info_table_find): use char* instead of gpointer
4463 * icall.c (ves_icall_InternalExecute): impl. FielSetter
4464 (ves_icall_System_Array_SetValueImpl): removed strange MonoArray cast
4466 2002-03-30 Dietmar Maurer <dietmar@ximian.com>
4468 * icall.c (mono_message_init): impl. (code cleanup)
4469 (ves_icall_InternalExecute): impl. FieldGetter
4471 * class.c (mono_class_init): added exerimental EXT_VTABLE_HACK, if
4472 defined we call all (non-static)methods through the vtable.
4474 Fri Mar 29 18:09:08 CET 2002 Paolo Molaro <lupus@ximian.com>
4476 * class.c: it seems GC_debug_malloc() makes the Boehm GC call the
4477 finalizer even though the memory is still referenced (and the chunk of
4478 memory is not freed).
4480 Fri Mar 29 17:43:04 CET 2002 Paolo Molaro <lupus@ximian.com>
4482 * assembly.c: fix brokeness.
4484 Fri Mar 29 16:09:54 CET 2002 Paolo Molaro <lupus@ximian.com>
4486 * class.c: kill some warnings. Check explicit interface method
4487 implementation also without considering the namespace.
4488 Load also literal strings in static class data.
4490 2002-03-29 Miguel de Icaza <miguel@ximian.com>
4492 * assembly.c (default_assembly_name_resolver): Kill memory leak.
4493 (default_assembly_name_resolver): Make the resolver take the
4494 "base" directory where the assembly was originally defined, so we
4495 can load DLLs that are in the same directory as the assembly that
4496 is being referenced.
4498 2002-03-28 Dick Porter <dick@ximian.com>
4504 * unicode.c: Warning cleanups
4506 Thu Mar 28 18:06:14 CET 2002 Paolo Molaro <lupus@ximian.com>
4508 * object.h, reflection.h: use the correct type instead of MonoObject.
4510 2002-03-28 Martin Baulig <martin@gnome.org>
4512 * debug-symfile.c (mono_debug_class_get): Don't look in referenced assemblies.
4513 (mono_debug_update_symbol_file): Initialize classes if necessary.
4515 Thu Mar 28 15:58:43 CET 2002 Paolo Molaro <lupus@ximian.com>
4517 * assembly.c, debug-helpers.c, image.c, image.h, metadata.c, pedump.c,
4518 rawbuffer.c, reflection.c, verify.c: mare warning cleanups.
4520 Thu Mar 28 15:20:39 CET 2002 Paolo Molaro <lupus@ximian.com>
4522 * assembly.h: fix function prototype.
4523 * metadata.h, metadata.c, object.h, private.h: get rid of warnings.
4524 * mono-endian.h: use const cast.
4526 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
4528 * icall.c (ves_icall_MonoMethodMessage_InitMessage): moved from message.c
4530 Thu Mar 28 12:32:00 CET 2002 Paolo Molaro <lupus@ximian.com>
4532 * loader.c: don't assert when a typeref can't be loaded, give
4533 a chance to the runtime to trow an exception instead.
4534 * loader.h: fix warning.
4536 2002-03-28 Dietmar Maurer <dietmar@ximian.com>
4538 * class.c (mono_class_proxy_vtable): added proxy support
4540 2002-03-27 Dan Lewis <dihlewis@yahoo.co.uk>
4542 * icall.c: removed last of PAL calls, added System.Environment
4543 * file-io.h, file-io.c: MonoIO implementation
4544 * object.h, object.c: mono_string_to_utf16() now returns gunichar2*
4546 Tue Mar 26 19:56:10 CET 2002 Paolo Molaro <lupus@ximian.com>
4548 * appdomain.c: do not use the byte marker in ldstr table lookup.
4549 * debug-helpers.c: allow two ':' to separate class and method name.
4550 * object.c: allocate arrays bounds with the GC, too.
4551 * verify: add a few more checks.
4553 Tue Mar 26 18:45:46 CET 2002 Paolo Molaro <lupus@ximian.com>
4555 * reflection.c: output also literal strings. Allocate parameter data
4556 with GC_malloc() (thanks, Martin, for catching this!).
4558 2002-03-26 Martin Baulig <martin@gnome.org>
4560 * debug-symfile.h (MonoDebugMethodInfo): Added `this_offset', don't
4561 include the `this' offset in the `param_offsets'.
4563 2002-03-25 Martin Baulig <martin@gnome.org>
4565 * debug-symfile.c (mono_debug_update_symbol_file): Use a new
4566 mono_debug_get_class() function to get the classes. Added new
4567 relocation types for arrays and strings.
4568 (mono_debug_get_class): New static function to search in all
4569 referenced assemblies for a metadata token.
4571 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 7.
4573 Mon Mar 25 13:08:18 CET 2002 Paolo Molaro <lupus@ximian.com>
4575 * reflection.h, reflection.c: use a gc-safe hash for hash tables that
4576 hold gc-allocated objects. Make the string heap a stream like the
4577 others. Removed duplicated code when writing stream info.
4578 Added asserts to catch possible buffer overflows. Set the sorted map
4579 for tables that need sorting. Added some documentation.
4581 Mon Mar 25 13:04:56 CET 2002 Paolo Molaro <lupus@ximian.com>
4583 * appdomain.h, appdomain.c, class.c, object.c: use a GC-safe hash table
4584 for interned strings and vtables.
4586 2002-03-24 Martin Baulig <martin@gnome.org>
4588 * icall.c (ves_icall_Type_GetFields): Reverse the list before storing
4589 it in the array since it was created with g_slist_prepend().
4591 2002-03-24 Martin Baulig <martin@gnome.org>
4593 * debug-symfile.c (mono_debug_local_type_from_signature): Renamed
4594 to ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig().
4595 (mono_debug_method_from_token): Renamed to
4596 ves_icall_Debugger_MonoSymbolWriter_method_from_token().
4597 (ves_icall_Debugger_DwarfFileWriter_get_type_token): New interncall.
4599 * debug-symfile.c (MRT_type_sizeof, MRT_type_field_offset): New
4602 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 6.
4604 2002-03-24 Martin Baulig <martin@gnome.org>
4606 * debug-symfile.c (mono_debug_local_type_from_signature): New func.
4607 (mono_debug_method_from_token): New func.
4609 * icall.c (Mono.CSharp.Debugger.MonoSymbolWriter::get_local_type_from_sig):
4610 New interncall, calls mono_debug_local_type_from_signature().
4611 (Mono.CSharp.Debugger.MonoSymbolWriter::get_method): New interncall,
4612 calls mono_debug_method_from_token().
4614 2002-03-23 Martin Baulig <martin@gnome.org>
4616 * unicode.c (ves_icall_iconv_get_char_count): The `count' argument
4617 specifies the number of bytes to be converted, not the array size.
4618 Return the number of chars, not the number of bytes.
4619 (ves_icall_iconv_get_chars): The `byteCount' argument
4620 specifies the number of bytes to be converted, not the array size.
4622 2002-03-23 Martin Baulig <martin@gnome.org>
4624 * reflection.h (MonoReflectionSigHelper): New type.
4626 * reflection.c (mono_reflection_sighelper_get_signature_local),
4627 (mono_reflection_sighelper_get_signature_local): New functions.
4629 * icall.c (System.Reflection.Emit.SignatureHelper::get_signature_local),
4630 (System.Reflection.Emit.SignatureHelper::get_signature_field): New
4633 2002-03-23 Martin Baulig <martin@gnome.org>
4635 * rawbuffer.c (mono_raw_buffer_load_mmap): Use MAP_SHARED when
4636 is_writeable is set.
4637 (mono_raw_buffer_update): New function to write the modified map
4640 * debug-symfile.h (MonoDebugSymbolFile): Added `raw_contents_size'.
4642 * debug-symfile.c (mono_debug_update_symbol_file): Call
4643 mono_raw_buffer_update() when done writing.
4645 2002-03-23 Martin Baulig <martin@gnome.org>
4647 * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 5.
4649 * debug-symfile.c: Added support for arguments and local variables.
4651 2002-03-23 Dick Porter <dick@ximian.com>
4653 * debug-symfile.c: Remove extraneous 'include <elf.h>' that wasn't
4654 protected by ifdefs, hence breaking the w32 build.
4656 Thu Mar 21 17:35:01 CET 2002 Paolo Molaro <lupus@ximian.com>
4658 * object.c: implement is_interned() the right way.
4660 2002-03-21 Martin Baulig <martin@gnome.org>
4662 * debug-symfile.[ch]: New files to handle debugging information
4663 files. There's also support to dynamically update these symbol
4664 files to include machine dependent information.
4666 2002-03-20 Dietmar Maurer <dietmar@ximian.com>
4668 * threads.c (mono_thread_create): new function to create thread
4671 2002-03-20 Martin Baulig <martin@gnome.org>
4673 * icall.c (ves_icall_InternalInvoke): Create a new object if the
4674 method is a constructor.
4675 (icall_map): Added "System.Reflection.MonoCMethod::InternalInvoke",
4676 points to ves_icall_InternalInvoke().
4678 2002-03-20 Dan Lewis <dihlewis@yahoo.co.uk>
4680 * file-io.c: Flush shouldn't throw exceptions.
4682 2002-03-19 Dan Lewis <dihlewis@yahoo.co.uk>
4684 * file-io.c: FileStream flush support; FileSetLength now
4685 restores file pointer.
4687 Tue Mar 19 18:17:21 CET 2002 Paolo Molaro <lupus@ximian.com>
4689 * class.c: set image for pointer classes.
4691 2002/03/19 Nick Drochak <ndrochak@gol.com>
4693 * sysmath.c: Forgot one.
4695 2002-03-18 Miguel de Icaza <miguel@ximian.com>
4697 * sysmath.c: Avoid redefining existing names.
4699 2002-03-18 Dan Lewis <dihlewis@yahoo.co.uk>
4701 * sysmath.c, sysmath.h, icall.c, Makefile.am: math routines now
4702 handled by runtime as icall rather than dllimport from libm.so
4703 * file-io.c, file-io.h: fixed handle argument type.
4705 2002-03-18 Dick Porter <dick@ximian.com>
4707 * reflection.c (mono_image_get_type_info): rename interface to
4708 iface, because of "#define interface struct" on windows.
4710 Sat Mar 16 19:18:38 CET 2002 Paolo Molaro <lupus@ximian.com>
4712 * class.c, class.h: rename and export mono_ptr_class_get().
4713 * metadata.c: support MONO_TYPE_ARRAY in MonoType compare.
4714 * reflection.c, reflection.h, icall.c: better/saner type name
4715 parsing and MonoType creation. Handle MONO_TYPE_ARRAY in
4718 2002-03-14 Dietmar Maurer <dietmar@ximian.com>
4720 * class.c (mono_class_init): removed hardcoded GHC_SLOT
4722 * icall.c (ves_icall_InternalInvoke): impl.
4724 Wed Mar 13 00:27:30 CET 2002 Paolo Molaro <lupus@ximian.com>
4726 * reflection.c: output the interface map table, too.
4728 2002-03-12 Dietmar Maurer <dietmar@ximian.com>
4730 * class.c (class_compute_field_layout): separate computation of
4733 2002-03-12 Dan Lewis <dihlewis@yahoo.co.uk>
4735 * icall.c: added System.Buffer support.
4736 * file-io.c: moved file icalls from PAL to FileStream.
4738 2002-03-12 Dietmar Maurer <dietmar@ximian.com>
4740 * icall.c (ves_icall_System_Object_GetHashCode): impl.
4742 2002-03-11 Dietmar Maurer <dietmar@ximian.com>
4744 * icall.c (ves_icall_System_ValueType_GetHashCode): impl.
4746 Mon Mar 11 14:45:42 CET 2002 Paolo Molaro <lupus@ximian.com>
4748 * verify.c, verify.h: moved here the corlib/runtime consistency checks.
4750 Mon Mar 11 11:12:23 CET 2002 Paolo Molaro <lupus@ximian.com>
4752 * debug-helpers.{c,h}: moved here from monograph some useful functions
4753 to locate a method by name/signature in a class or image. Included
4754 also a small and flexible IL disassembler.
4756 Fri Mar 8 16:29:29 CET 2002 Paolo Molaro <lupus@ximian.com>
4758 * reflection.c: fixup tokens in methods with small header size, too.
4760 2002-03-08 Dietmar Maurer <dietmar@ximian.com>
4762 * object.c (mono_string_to_utf8): remove assert(!error), instead
4765 Thu Mar 7 18:55:15 CET 2002 Paolo Molaro <lupus@ximian.com>
4767 * icall.c: update to the new mono_Array_class_get interface.
4769 Thu Mar 7 17:23:26 CET 2002 Paolo Molaro <lupus@ximian.com>
4771 * appdomain.c, object.c: Boehm-GC enable.
4772 * icall.c: make get_data_chunk() support split data requests.
4773 Ensure a class is initialized in more cases. Return only the first
4774 property found in GetProperties() or the compiler gets confused.
4775 Implemented GetEvents(). Temporary fix to GetType(), needs rewriting.
4776 * reflection.h, reflection.c: add fixup mechanism for field and method
4777 tokens. Initialize assembly->typeref in a single place. Output
4778 properties after events. Support custom attributes for events, too.
4779 Typo fix for paramter custom attrs.
4781 2002-03-07 Martin Baulig <martin@gnome.org>
4783 * icall.c (ves_icall_System_Array_FastCopy): Small fix.
4785 2002-03-07 Dietmar Maurer <dietmar@ximian.com>
4787 * class.c (mono_array_class_get): fix. for multi. dim. arrays
4789 2002-03-06 Martin Baulig <martin@gnome.org>
4791 * icall.c (ves_icall_System_Array_CreateInstanceImpl): Make this work with
4792 non-zero lower bounds. See testcases #F10-#F13.
4794 2002-03-05 Martin Baulig <martin@gnome.org>
4796 * exception.c (mono_get_exception_argument_out_of_range): New exception.
4798 * icall.c (ves_icall_System_Array_GetValue): Moved actual implementation to
4799 ves_icall_System_Array_GetValue(), only calculate the absolute array position
4801 (ves_icall_System_Array_SetValue): Likewise.
4802 (ves_icall_System_Array_GetValueImpl): New interncall. Takes an array position
4803 as argument and does the actual work. This function is used when copying a
4804 multi-dimensional array.
4805 (ves_icall_System_Array_SetValueImpl): Almost completely rewrote this. It can
4806 now do all the widening conversions of value types.
4807 (ves_icall_System_Array_CreateInstanceImpl): Implemented.
4809 Tue Mar 5 18:14:01 CET 2002 Paolo Molaro <lupus@ximian.com>
4811 * class.c: remove some magic numbers and use the smbolic names,
4812 instead. Added init_events() to load event info at class init time.
4813 * metadata.h, metadata.c: added mono_metadata_events_from_typedef()
4814 and mono_metadata_methods_from_event().
4815 * reflection.h, reflection.c: added support for writing out the evnets
4816 related information.
4818 Mon Mar 4 20:32:43 CET 2002 Paolo Molaro <lupus@ximian.com>
4820 * reflection.h, icall.c: use a different method (GetInterfaces)
4821 to gather interface info and add isbyref, isprimitive and
4822 ispointer to the ves_icall_get_type_info() return value.
4824 Mon Mar 4 11:22:26 CET 2002 Paolo Molaro <lupus@ximian.com>
4826 * class.h: stared adding support for events.
4827 * icall.c: split find_members implementation. Added debug icall to get
4828 the address of an object.
4829 * reflection.c: handle TypeBuilders in mono_type_get_object().
4831 2002-03-01 Martin Baulig <martin@gnome.org>
4833 * icall.c (ves_icall_System_Array_GetLength): This must throw an
4834 ArgumentOutOfRangeException(), not an ArgumentException().
4835 (ves_icall_System_Array_GetLowerBound): Likewise.
4836 (ves_icall_System_Array_GetValue): Improved argument checking.
4837 (ves_icall_System_Array_SetValue): Improved argument checking.
4839 2002-03-01 Martin Baulig <martin@gnome.org>
4841 * icall.c (ves_icall_System_Array_GetValue): Raise an exception when
4842 called with invalid arguments rather than just dying with g_assert().
4843 (ves_icall_System_Array_SetValue): Likewise.
4844 (ves_icall_System_Array_CreateInstanceImpl): Don't g_assert_not_reached(),
4845 raise a NotImplementedException instead.
4846 (ves_icall_System_Array_GetLength): Added argument checking.
4847 (ves_icall_System_Array_GetLowerBound): Added argument checking.
4849 2002-03-01 Dietmar Maurer <dietmar@ximian.com>
4851 * object.h (mono_assert): new macros mono_assert and
4852 mono_assert_not_reached
4854 2002-02-28 Martin Baulig <martin@gnome.org>
4856 * icall.c: Rename "System::String::Intern" to "System::String::_Intern"
4857 and "System::String::IsInterned" to "System::String::_IsInterned".
4859 Thu Feb 28 19:19:35 CET 2002 Paolo Molaro <lupus@ximian.com>
4861 * icall.c: remove hacks for typebuilder. Added icall to create a
4862 modified type from a tybebuilder.
4863 * reflection.c: removed hacks for TypeBuilder. Create also a MonoImage
4864 in mono_image_basic_init (). Added mono_reflection_setup_internal_class ()
4865 to create a backing MonoClass for a TypeBuilder.
4867 Thu Feb 28 15:35:51 CET 2002 Paolo Molaro <lupus@ximian.com>
4869 * class.c, class.h: more refactoring of class init.
4870 Export mono_class_setup_mono_type() and mono_class_setup_parent().
4872 Thu Feb 28 12:33:41 CET 2002 Paolo Molaro <lupus@ximian.com>
4874 * marshal.c, marshal.h: start of marshaling interface.
4876 Wed Feb 27 22:15:17 CET 2002 Paolo Molaro <lupus@ximian.com>
4878 * icall.c: fix order in assembly qualified name icall.
4880 Wed Feb 27 18:45:03 CET 2002 Paolo Molaro <lupus@ximian.com>
4882 * class.c: do not free str, since we store it in the hash table.
4883 * reflection.h: add label field to MonoILExceptionInfo.
4884 * reflection.c: handle references to more than one assembly. Handle
4885 case when there isn't a module created in the assembly.
4887 Wed Feb 27 12:35:10 CET 2002 Paolo Molaro <lupus@ximian.com>
4889 * class.c: Fix typo. Start refactoring of class init code.
4891 Wed Feb 27 12:23:00 CET 2002 Paolo Molaro <lupus@ximian.com>
4893 * appdomain.c: exit with 1 on error.
4894 * class.c: we already have the name in MonoClassField.
4895 * image.c, image.h, metadata.c, pedump.c: use directly a pointer in
4896 MonoStreamHeader instead of an offset of image->raw_metadata.
4898 2002-02-26 Miguel de Icaza <miguel@ximian.com>
4900 * appdomain.c (mono_init): Be even more descriptive about the error.
4902 Tue Feb 26 16:18:07 CET 2002 Paolo Molaro <lupus@ximian.com>
4904 * appdomain.c: give the user an informative message when corlib can't
4907 2002-02-26 Martin Baulig <martin@gnome.org>
4909 * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData):
4910 New icall to get the time zone data.
4912 Mon Feb 25 15:51:51 CET 2002 Paolo Molaro <lupus@ximian.com>
4914 * reflection.c: set virtual and raw size of section correctly.
4915 * threads.c: transfer domain information to newly created threads.
4917 Fri Feb 22 18:55:57 CET 2002 Paolo Molaro <lupus@ximian.com>
4919 * class.c: when instancing a class in a domain, load the default
4920 vaules for static fields from the constant table. Fix System.Enum to
4922 * icall.c: implement Object::GetType() internalcall. Implemented
4923 MonoField::GetValue() internalcall. Avoid SEGV in search_method().
4924 Fixed checking of binding flags in find_members().
4925 * metadata.c, metadata.h: introduce mono_metadata_type_hash().
4926 * reflection.c: handle enumerations when writing to the constant
4927 table. Use a different object cache for types.
4930 2002-02-22 Dietmar Maurer <dietmar@ximian.com>
4932 * object.c (mono_object_isinst): fix for arrays
4934 * icall.c (ves_icall_type_is_subtype_of): fix for 2 interfaces
4936 Thu Feb 21 21:00:13 CET 2002 Paolo Molaro <lupus@ximian.com>
4938 * object.c: don't use mprotect () and fix intern pool hash table
4939 lookup for big endian systems.
4941 Thu Feb 21 19:30:29 CET 2002 Paolo Molaro <lupus@ximian.com>
4943 * icall.c: change type_is_subtype_of () signature.
4945 2002-02-21 Mark Crichton <crichton@gimp.org>
4947 * rand.c, rand.h: Added random number generator for
4948 System.Security.Cryptography classes.
4950 * exception.c, exception.h: Added mono_get_exception_not_implemeted.
4952 * icall.c: Added System.Security.Cryptography calls.
4954 Thu Feb 21 16:45:34 CET 2002 Paolo Molaro <lupus@ximian.com>
4956 * class.c, icall.c, metadata.c: better support for pointer types.
4957 Create a class for them as suggested by dietmar. Fix TYPE_ARRAY class.
4958 * reflection.c: Add support for getting custom attrs for properties
4959 and simplify some code.
4961 Wed Feb 20 22:20:29 CET 2002 Paolo Molaro <lupus@ximian.com>
4963 * icall.c: change getToken () and add custom attribute GetBlob()helper
4965 * reflection.h: add custom attrs array to the reflection builder structures.
4966 * reflection.c: encode and emit custom attributes for all the relevant
4967 reflection objects. Cache fieldref and methodref tokens. Change
4968 mono_image_create_token() interface to take a MonoDynamicAssembly.
4969 More complete custom attributes decoder. Load custom attributes for
4970 Assembly, Field, Method and Constructor objects, too. Make the
4971 returned array an Attribute[] one, not object[]. Added
4972 mono_reflection_get_custom_attrs_blob() to encode the arguments of a
4973 custom attribute constructor.
4975 2002-02-20 Dick Porter <dick@ximian.com>
4979 * socket-io.c: Windows portability fixes (sometimes just ifdeffing
4980 problem code out for now).
4982 2002-02-19 Radek Doulik <rodo@ximian.com>
4984 * object.c (mono_ldstr): use hash table to avoid multiple swapping
4986 Tue Feb 19 20:23:11 CET 2002 Paolo Molaro <lupus@ximian.com>
4988 * icall.c: register the GetCustomAttributes method.
4989 * object.c, object.h: add mono_string_new_len ().
4990 * reflection.h, reflection.c: added mono_runtime_invoke(),
4991 mono_install_runtime_invoke(). Added
4992 mono_reflection_get_custom_attrs () to load custom attributes and
4993 create the attribute objects.
4995 2002-02-19 Dick Porter <dick@ximian.com>
4996 * threads-dummy-types.c:
4997 * threads-dummy-types.h:
5000 * threads-pthread-types.c:
5001 * threads-pthread-types.h:
5002 * threads-pthread.c:
5003 * threads-pthread.h: Deleted obsolete files
5005 2002-02-19 Dietmar Maurer <dietmar@ximian.com>
5007 * class.c (mono_class_vtable): runtime init the class when we
5008 allocate static class data.
5010 * icall.c (ves_icall_System_Array_SetValue): check for null values.
5012 * appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
5013 and String - but we will need generic marshalling support in the
5015 (mono_init): set the domain name in a ms compatible way
5017 * object.c (mono_string_new_utf16): bug fix: use char[] instead of
5020 2002-02-18 Dietmar Maurer <dietmar@ximian.com>
5022 * object.c (mono_array_clone): use alloca() instead of g_malloc
5025 * appdomain.c (mono_domain_unload): impl.
5027 Mon Feb 18 15:52:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5029 * appdomain.c, object.c: fix intern pool implementation.
5030 * class.c: fix alignment code.
5032 2002-02-16 Radek Doulik <rodo@ximian.com>
5034 * icall.c (ves_icall_System_Enum_ToObject): in case of big endian
5035 and s2 > s1, just copy lower bytes to be compatible with little
5036 endian (i.e. 64bit value & 0xffffffff --> 32bit value)
5037 (ves_icall_System_Enum_ToObject): and likewise for s1 > s2
5039 * unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
5040 force big_endian to be 1 for big endian machines
5041 (ves_icall_iconv_new_decoder): ditto
5043 2002-02-16 Jeffrey Stedfast <fejj@ximian.com>
5045 * socket-io.c (convert_sockopt_level_and_name): If the system
5046 doesn't define SOL_IP or SOL_TCP, get them by hand using
5047 getprotobyname() and caching the values (because this could be a
5049 (ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
5050 Use the appropriate struct when the system does support it. Ie,
5051 not all systems have struct ip_mreqn so use struct ip_mreq when
5054 Fri Feb 15 18:15:44 CET 2002 Paolo Molaro <lupus@ximian.com>
5056 * reflection.c: handle finally clauses.
5058 Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <lupus@ximian.com>
5060 * socket-io.c: use g_snprintf() instead of snprintf.
5062 2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
5064 * reflection.c (mono_param_get_objects): Cast second argument to
5065 mono_method_get_param_names to a const char** to silence the
5068 * appdomain.c (mono_domain_assembly_open): Put parens around the
5069 truth statement in the for-loop.
5071 * unicode.c (iconv_convert): Got rid of a compiler warning about
5072 int i being unused when the system has a new iconv.
5073 (iconv_get_length): Same.
5075 * image.c (load_class_names): Cast the second argument to
5076 g_hash_table_insert() to char* to hush compiler warnings about the
5078 (mono_image_open): Same here.
5080 * socket-io.c: Don't conditionally include sys/filio.h or
5081 sys/sockio.h here anymore since we now get them from
5083 (inet_pton): If the system doesn't support inet_aton, implement
5084 using inet_addr and also #define INADDR_NONE if it isn't defined
5087 Thu Feb 14 19:01:06 CET 2002 Paolo Molaro <lupus@ximian.com>
5089 * metadata.c, metadata.h: added function to get packing and size info
5091 * reflection.h, reflection.c: handle field RVA data. Save info about
5092 the table layout if needed. Assign typedef indexes to all the types
5093 before dumping the info about them to avoid forward reference problems.
5095 2002-02-14 Dietmar Maurer <dietmar@ximian.com>
5097 * socket-io.c (convert_sockopt_level_and_name): ifdef
5098 SO_ACCEPTCONN because it is not defined on my system (old debian)
5100 Thu Feb 14 11:49:30 CET 2002 Paolo Molaro <lupus@ximian.com>
5102 * opcode.c: use stddef.h to get NULL.
5104 2002-02-14 Jeffrey Stedfast <fejj@ximian.com>
5106 * socket-io.c: conditionally include sys/filio.h and sys/sockio.h
5107 for FIONBIO, FIONREAD and SIOCATMARK.
5108 (ves_icall_System_Net_Dns_GetHostByAddr_internal): SunOS doesn't
5109 define INADDR_NONE and besides, inet_addr() is deprecated and
5110 should not be used. Use inet_pton() instead - it also has the
5111 added bonus that it can easily handle IPv6 addresses as well.
5112 (inet_pton): Implement using inet_aton() ifndef HAVE_INET_PTON.
5114 Wed Feb 13 23:00:21 CET 2002 Paolo Molaro <lupus@ximian.com>
5116 * decimal.c: remove _MSC_VER conditional.
5118 2002-02-13 Dick Porter <dick@ximian.com>
5121 * icall.c: Internal calls for Blocking, Select, Shutdown,
5122 GetSocketOption and SetSocketOption
5124 Wed Feb 13 19:20:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5126 * assembly.cs: better resolver: use it instead of some kludgy
5129 Wed Feb 13 18:25:55 CET 2002 Paolo Molaro <lupus@ximian.com>
5131 * reflection.c: the best way to speed-up the compiler is to avoid
5134 2002-02-13 Dietmar Maurer <dietmar@ximian.com>
5136 * class.c (mono_class_vtable): changed the object layout
5137 (obj->vtable->class).
5138 (mono_class_create_from_typespec): consider MONO_TYPE_PTR
5140 Tue Feb 12 20:06:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5142 * assembly.c: look for assemblies in the assembly dir, too.
5144 Tue Feb 12 14:03:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5146 * class.c: fix thinko in mono_class_from_type().
5148 Mon Feb 11 19:43:51 CET 2002 Paolo Molaro <lupus@ximian.com>
5150 * exception.h, exception.c: added TypeLoadException.
5151 * object.h, object.c: added mono_array_clone ().
5152 * icall.c: handle throwOnError in AssemblyGetType().
5153 Added Array.Clone().
5154 * opcode.h, opcode.c: use a single value for the opcode val.
5155 Compile fix for non-gcc compilers.
5157 Fri Feb 8 12:26:37 CET 2002 Paolo Molaro <lupus@ximian.com>
5159 * opcodes.c, opcodes.h: export interesting info about opcodes.
5161 2002-02-05 Dietmar Maurer <dietmar@ximian.com>
5163 * object.h (MONO_CHECK_ARG, MONO_CHECK_ARG_NULL): new macro for
5166 * class.c (class_compute_field_layout): set element_class for enums
5167 (mono_class_create_from_typedef): set element_class for normal classes
5169 * icall.c (ves_icall_System_Enum_get_value): impl.
5171 * class.c (mono_class_create_from_typedef): do not set valuetype
5172 flag for System.ValueType and System.Enum
5174 2002-02-04 Dietmar Maurer <dietmar@ximian.com>
5176 * unicode.c (iconv_convert): fix big endian problem.
5178 Fri Feb 1 16:13:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5180 * class.c: add asserts if we are ever going to scribble over memory.
5181 * socket-io.c: not all systems have AF_IRDA defined.
5183 2002-01-31 Dietmar Maurer <dietmar@ximian.com>
5185 * class.c (class_compute_field_layout): do not consider static
5186 fields to compute alignment
5188 2002-01-25 Dietmar Maurer <dietmar@ximian.com>
5190 * appdomain.c (mono_appdomain_get): impl.
5191 (ves_icall_System_AppDomain_ExecuteAssembly): impl.
5193 Thu Jan 24 12:59:23 CET 2002 Paolo Molaro <lupus@ximian.com>
5195 * icall.c: ignore "file://" prefix when loading an assembly.
5197 2002-01-23 Dick Porter <dick@ximian.com>
5201 * Makefile.am: Added socket support
5203 2002-01-23 Miguel de Icaza <miguel@ximian.com>
5205 * icall.c (ves_icall_appdomain_get_default_assemblies): put this
5206 code back. This should return the assemblies that are loaded by
5207 the runtime on behalf of an application domain.
5209 The current implementation is still broken, it just returns every
5210 assembly loaded, but until we get real applications domain this
5213 2002-01-23 Dietmar Maurer <dietmar@ximian.com>
5215 * icall.c (ves_icall_appdomain_get_cur_domain): runtime_init the
5218 2002-01-23 Miguel de Icaza <miguel@ximian.com>
5220 * icall.c (ves_icall_appdomain_get_cur_domain): Cache the value of
5221 the mono_class_from_name lookup.
5222 (ves_icall_get_parameter_info): ditto.
5223 (ves_icall_appdomain_get_assemblies, add_assembly): Implement new internal
5225 (ves_icall_System_Reflection_Assembly_get_code_base): Another new call.
5227 Tue Jan 22 22:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
5229 * class.c: load also nested classes on class init.
5230 System.ValueType instance methods gets passed boxed
5231 values, unless methods in derived classed that get a pointer to the
5233 * icall.c: use better name parsing code in GetType().
5234 * image.c, image.h: add mono_image_loaded ().
5235 * metadata.c, metadata.h: add mono_metadata_nesting_typedef ().
5236 * reflection.c, reflection.h: added mono_reflection_parse_type().
5238 2002-01-22 Veronica De Santis <veron78@interfree.it>
5240 * icall.c : Added mapping of internal calls for Manual and Auto reset events
5241 * threads.c : Added the implementation of internal calls for events
5242 * threads.h : Added prototypes of internal calls for events
5244 2002-01-21 Radek Doulik <rodo@ximian.com>
5246 * icall.c (ves_icall_InitializeArray): swap bytes on big endians
5248 2002-01-21 Dietmar Maurer <dietmar@ximian.com>
5250 * class.c (mono_class_init): set min_align to 1 (instead of 0)
5251 (mono_class_value_size): use min_align
5253 2002-01-20 Dick Porter <dick@ximian.com>
5256 * threads.c: Replaced all instances of WapiHandle * with HANDLE,
5257 so it compiles on w32.
5259 2002-01-17 Dietmar Maurer <dietmar@ximian.com>
5261 * metadata.c (mono_type_stack_size): impl.
5263 * class.c (mono_class_get_field): impl. memberref token
5265 2002-01-16 Veronica De Santis <veron78@@interfree.it>
5267 * icall.h : Added the internal calls mapping for CreateMutex_internal
5268 and ReleaseMutex_internal.
5269 * threads.h : Added the prototype of mutexes internal calls.
5270 * threads.c : Added the implementations of mutexes internal calls.
5272 Tue Jan 15 22:47:57 CET 2002 Paolo Molaro <lupus@ximian.com>
5274 * metaparse.h: removed unused file.
5275 * reflection.c, reflection.h: added stream_data_align () function
5276 to align data in streams and keep stream aligned. Add support for
5277 exception support in method headers.
5279 Tue Jan 15 19:42:50 CET 2002 Paolo Molaro <lupus@ximian.com>
5281 * unicode.c: make iconv_convert () return the number of bytess written
5282 in the output buffer.
5284 2002-01-15 Dick Porter <dick@ximian.com>
5285 * threads.c: Make the runtime's idea of infinite timeouts coincide
5286 with the class library's
5288 Fix a particularly egregious bug in mono_thread_cleanup(). That
5289 code was so utterly bogus it must have been written on a Monday.
5291 Mon Jan 14 17:01:03 CET 2002 Paolo Molaro <lupus@ximian.com>
5293 * reflection.h: add subtypes field to TypeBuilder.
5294 * reflection.c: encode constants for literal fields.
5295 Handle subtypes. Fix user string token (and add a zero byte)
5298 2002-01-14 Dietmar Maurer <dietmar@ximian.com>
5300 * class.c (mono_class_init): bug fix: assign slot numbers for
5303 Fri Jan 11 18:54:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5305 * reflection.c: don't try to output a code RVA for abstract methods.
5306 Small fixes for method header format. Output parameter info to the
5307 ParamDef table. Save method overriding info to MethodImpl table.
5308 Fix property support. Allow typedef.extends to be a type in the
5310 * verify.c: fix off-by-one error.
5312 Thu Jan 10 19:36:27 CET 2002 Paolo Molaro <lupus@ximian.com>
5314 * class.c: fix mono_class_from_mono_type () for szarray types.
5315 Remove unused cache check in mono_class_from_type_spec().
5316 * icall.c: *type_from_name () functions handle simple arrays and byref.
5317 * reflection.c: handle byref and szarray types. Handle methods without
5318 body (gets P/Invoke compilation working). Handle types and fields in
5320 * reflection.h: add rank to MonoTypeInfo.
5322 2002-01-10 Dick Porter <dick@ximian.com>
5324 * threads.c: Implemented WaitAll(), WaitAny() and WaitOne()
5327 Wed Jan 9 19:27:13 CET 2002 Paolo Molaro <lupus@ximian.com>
5329 * icall.c: initialize class in type_from_handle ().
5330 Loop also in parent classes for get_method ().
5331 * reflection.c: properly encode class and valuetype types.
5332 Start on encoding TypeBuilder types. Handle fieldrefs.
5333 Use correct length when registering a user string.
5334 Handle ConstructorBuilder and MonoMethod in get_token ().
5335 Make mono_type_get_object () aware of cached types.
5336 * object.c: back out change to mono_string_new ().
5338 Tue Jan 8 22:47:44 EST 2002 Matt Kimball <matt@kimball.net>
5339 * object.c: mono_string_new should return a NULL when the string
5340 passed in is NULL -- not try to deference it.
5342 Sat Jan 5 15:48:04 CET 2002 Paolo Molaro <lupus@ximian.com>
5344 * icall.c: hack to make IsSubType work for TypeBuilders.
5345 * reflection.c: emit constructors before methods.
5346 Retrieve param names in mono_param_get_objects().
5348 2002/01/05 Nick Drochak <ndrochak@gol.com>
5350 * Makefile.am: fix list of headers and sources so automake 1.5
5351 doesn't complain. Removed \# at end of list.
5353 Thu Jan 3 23:17:17 CET 2002 Paolo Molaro <lupus@ximian.com>
5355 * reflection.c: get token for a method ref. Set return type of
5356 constructor to void.
5357 * loader.c: debug message.
5358 * class.c: typo fix.
5360 Mon Dec 24 17:18:10 CET 2001 Paolo Molaro <lupus@ximian.com>
5362 * icall.c: fix array init with rank > 1. FindMembers
5363 loops in parent class as well.
5364 * image.c: do not insert nested types in name cache.
5365 * reflection.c: warning fix.
5366 * reflection.h: add override method (for interface impl).
5368 Mon Dec 24 16:16:56 CET 2001 Paolo Molaro <lupus@ximian.com>
5370 * metadata.c: fix customattr decoding.
5372 2001-12-21 Miguel de Icaza <miguel@ximian.com>
5374 * rawbuffer.cs: Added native Win32 implementation, avoids using
5375 mmap on Cygwin. This patch is from Dan Lewis (dihlewis@yahoo.co.uk)
5377 Thu Dec 20 20:11:26 CET 2001 Paolo Molaro <lupus@ximian.com>
5379 * class.c: make the low-level routines handle the cache.
5381 Thu Dec 20 15:20:35 CET 2001 Paolo Molaro <lupus@ximian.com>
5383 * image.c: fopen (file, "rb") ("David Dawkins" <david@dawkins.st>).
5385 Tue Dec 18 18:50:00 CET 2001 Paolo Molaro <lupus@ximian.com>
5387 * class.c: fix mono_array_element_size() for objects.
5388 * class.h, class.c: add properties to MonoClass and load them
5390 * icall.c: check with isinst() when assigning a value to an array
5391 instead of requiring the classes to match exactly.
5392 Implemented icall for System.Type::GetType().
5393 Implemented icalls to get ParameterInfo, ProprtyInfo and info about
5394 enums. Handle bindingflags when looking for methods and fields.
5395 * metadata.h, metadata.c: implemented mono_metadata_properties_from_typedef()
5396 and mono_metadata_methods_from_property().
5397 * reflection.h, reflection.c: added structures for propreties,
5398 parameters and enums. Implemented mono_property_get_object() and
5399 mono_param_get_objects().
5401 2001-12-18 Dick Porter <dick@ximian.com>
5403 * file-io.c: Use mono_string_to_utf16() instead of
5406 * object.c: Added mono_string_to_utf16(), which copies the non
5407 NULL-terminated MonoString into a new double-null-terminated
5410 2001-12-17 Dietmar Maurer <dietmar@ximian.com>
5412 * icall.c (ves_icall_System_DateTime_GetNow): added EPOCH adjustment
5414 2001-12-16 Dietmar Maurer <dietmar@ximian.com>
5416 * file-io.c: raise exceptions if handle is invalid.
5418 Thu Dec 13 20:27:08 CET 2001 Paolo Molaro <lupus@ximian.com>
5420 * assembly.c: yet another check for mscorlib.
5421 * class.c, class.h: load nesting info for classes.
5422 * icall.c: many new functions to support the Reflection classes.
5423 * metadata.c, metadata.h: mono_metadata_nested_in_typedef() added.
5424 * reflection.h, reflection.c: mono_image_create_token(),
5425 mono_assembly_get_object(), mono_type_get_object(),
5426 mono_method_get_object(), mono_field_get_object(): methods to return
5427 objects that parallel the C representation of assemblies, types,
5430 2001-12-11 Dick Porter <dick@ximian.com>
5433 * file-io.c: Internal calls for file IO.
5435 Thu Dec 6 16:21:30 CET 2001 Paolo Molaro <lupus@ximian.com>
5437 * tabledefs.h: missing FileAttributes.
5438 * verify.h, verify.c: use is_valid_string () to simplify and check for
5439 valid strings more correctly. Fix warnings and speeling.
5440 Check more tables: Filed, File, ModuleRef, StandAloneSig.
5441 Check code: branches, maxstack, method calls.
5443 2001-12-04 Dietmar Maurer <dietmar@ximian.com>
5445 * object.c (mono_object_allocate): removed static, so that the jit
5446 can allocate value types.
5448 * icall.c (ves_icall_System_DateTime_GetNow): impl.
5450 Mon Dec 3 17:02:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5452 * class.c: init enum types right away and register the
5453 token->MonoClass map in mono_class_create_from_typedef ().
5454 * verify.h, verify.c: first cut of the verifier.
5455 * pedump.c: add --verify switch to verify metadata tables.
5456 * tabledefs.h: add some missing enums.
5458 2001-11-30 Dietmar Maurer <dietmar@ximian.com>
5460 * class.c (mono_install_runtime_class_init): impl.
5461 (mono_class_init): renamed mono_class_metadata_init to
5462 mono_class_init, also removed the metadata_inited flag
5464 * object.c (mono_object_isinst): use faster algorithm
5466 2001-11-30 Radek Doulik <rodo@ximian.com>
5468 * mono-endian.h: reverted last change
5469 added function prototypes
5471 * Makefile.am (libmetadata_a_SOURCES): reverted my last change and
5472 add mono-endian.c back
5474 * mono-endian.c: returned back, as Paolo pointed out, it's needed
5475 for unaligned access, I've mistaked it with endianess. I am
5477 (mono_read16): fix reverted endianess
5478 (mono_read64): ditto
5479 (mono_read32): ditto
5481 2001-11-30 Dick Porter <dick@ximian.com>
5483 * exception.c: Implement mono_exception_from_name()
5485 Fri Nov 30 12:01:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5487 * metadata.h, metadata.c: remove params_size and locals_size and their
5488 calculation from the metadata code: they are only usefult to the
5491 2001-11-29 Radek Doulik <rodo@ximian.com>
5493 * object.c (mono_ldstr): swap bytes here, it's probably not the
5494 best place, but works for me now, I'll redo it once I know mono
5495 better, also note that I add PROT_WRITE and don't reset back, also
5496 note that it's only affects big endians, so x86 should be OK
5498 * mono-endian.h (read16): use just glib macros for both endians
5500 * mono-endian.c: removed as glib macros are used in in
5501 mono-endian.h so we don't need to care about endianess for read
5502 macros as glib does that for us already
5504 Thu Nov 29 18:20:58 CET 2001 Paolo Molaro <lupus@ximian.com>
5506 * class.h, class.h: take minimum alignment into consideration so
5507 that the fields of a class remain aligned also when in an array.
5509 Tue Nov 27 16:39:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5511 * loader.h, loader.c: add mono_method_get_param_names().
5512 * class.c: 0-init class fields.
5514 2001-11-26 Dick Porter <dick@ximian.com>
5518 * threads.c: New file that handles System.Threading on all platforms
5521 * object.h: Remove the synchronisation struct from MonoObject,
5522 replace it with a pointer that gets initialised on demand
5524 * Makefile.am: Replace all the system-specific threading code with
5525 a single file that uses the new wrapper library
5527 Mon Nov 19 11:37:14 CET 2001 Paolo Molaro <lupus@ximian.com>
5529 * class.c, class.h: add mono_install_trampoline() so that the runtime
5530 can register a function to create a trampoline: removes the ugly
5531 requirement that a runtime needed to export arch_create_jit_trampoline.
5532 * object.h, object.c: added mono_install_handler() so that the runtime
5533 can install an handler for exceptions generated in C code (with
5534 mono_raise_exception()). Added C struct for System.Delegate.
5535 * pedump.c: removed arch_create_jit_trampoline.
5536 * reflection.c: some cleanups to allow registering user strings and
5537 later getting a token for methodrefs and fieldrefs before the assembly
5539 * row-indexes.h: updates and fixes from the new ECMA specs.
5541 Thu Nov 15 17:44:49 CET 2001 Paolo Molaro <lupus@ximian.com>
5543 * class.h, class.c: add enum_basetype field to MonoClass.
5544 * metadata.h, metadata.c: add mono_metadata_get_constant_index()
5545 to get index in the constant table reated to a field, param or
5547 * reflection.h, reflection.c: handle constructors. Set public-key and
5548 version number of the built assembly to 0.
5549 * row-indexes.h: update from new ECMA spec.
5551 Wed Nov 14 19:26:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5553 * class.h, class.c: add a max_interface_id to MonoClass.
5554 * icall.c: rename my_mono_new_object() to my_mono_new_mono_type()
5555 since it's used to do that. Added mono_type_type_from_obj().
5556 Make GetType() return NULL instead of segfaulting if the type was not
5557 found. Handle simple arrays in assQualifiedName.
5558 * object.h: add a struct to represent an Exception.
5559 * reflection.c: output call convention in method signature.
5560 Add code to support P/Invoke methods and fixed offsets for fields.
5562 Mon Nov 12 12:41:32 CET 2001 Paolo Molaro <lupus@ximian.com>
5564 * decimal.c, decimal.h: mono_double2decimal() get the sign bit from
5566 * icall.c: use mono_array_addr instead of array->vector: fixes the
5567 reflection image writing.
5568 * reflection.c: init call convention byte to 0 in method signature.
5569 Encode the property signature. Don't output property-related methods
5570 twice. Really process the properties for a type (don't cast a field to
5571 a property, my mom always told me that).
5572 Fix 64 bit issues in pointer alignment in a different and more
5575 2001-11-10 Sean MacIsaac <macisaac@ximian.com>
5577 * loader.h: Removed type class from MonoDefaults, added monotype
5579 * loader.c: Loaded MonoType, removed loading of Type
5581 * icall.c (my_mono_new_object): Now returns a System.MonoType,
5582 and fills in System.Type._impl with a RuntimeTypeHandle rather
5583 than the actual MonoClass *
5585 (ves_icall_type_from_handle): change from type_class to
5588 (ves_icall_System_Runtime_InteropServices_Marshal_ReadIntPtr):
5591 (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAuto):
5594 (ves_icall_System_Reflection_Assembly_LoadFrom): implemented
5596 (ves_icall_System_Reflection_Assembly_GetType): implemented
5598 (ves_icall_System_MonoType_assQualifiedName): implemented
5600 (ves_icall_System_PAL_OpSys_GetCurrentDirecotry): implemented
5602 2001-11-09 Miguel de Icaza <miguel@ximian.com>
5604 * assembly.c (mono_assembly_open): Implement a cache for the
5607 (mono_assembly_close): only destroy the assembly when the last
5610 2001-11-09 Dick Porter <dick@ximian.com>
5612 * Makefile.am (pedump_LDADD): Don't need THREAD_LIBS any more
5614 2001-11-09 Dietmar Maurer <dietmar@ximian.com>
5616 * class.c (mono_class_metadata_init): bug fix: compute the right slot
5618 Fri Nov 9 15:48:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5620 * icall.c, decimal.h, decimal.c: integrated decimal internalcalls
5621 from Martin Weindel.
5622 * object.h: add mono_string_chars ().
5624 2001-11-07 Miguel de Icaza <miguel@ximian.com>
5626 * reflection.c (build_compressed_metadata): Eliminates warnings
5627 and uses 64-bit clean code.
5629 * metadata.c (mono_type_hash): Change signature to eliminate warnings.
5630 (mono_type_equal): Change signature to eliminate warnings.
5632 Wed Nov 7 15:40:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5634 * icall.c, loader.c: remove the internalcall array constructors.
5635 Changes to match the new MonoArray structure.
5636 * object.h, object.c: an array object doesn't allocate an extra
5637 vector. Add mono_array_new_full () to create jagged arrays easily.
5639 Mon Nov 5 19:51:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5641 * metadata.h, metadata.c: add mono_metadata_field_info () to
5642 retreive all the info about a field from vairous tables.
5643 * icall.c: implement S.Runtime.CServices::InitializeArray () icall.
5644 * class.h, class.c: augment MonoClassField with more info.
5645 Implemented mono_ldtoken for fields. Implemented ExplicitLayout
5646 policy and load a field's RVA if needed.
5648 2001-11-05 Dietmar Maurer <dietmar@ximian.com>
5650 * class.c (mono_class_metadata_init): create a trampoline for all
5651 virtual functions instead of actually compiling them.
5653 Fri Nov 2 19:37:51 CET 2001 Paolo Molaro <lupus@ximian.com>
5655 * class.h, class.c: include name in MonoClassField.
5656 * class.c: fix fundamental type of System.Object and System.String.
5657 Set the right fundamental type for SZARRAY, too. Handle TypeSpec
5659 * icall.c: remove internalcalls for the Reflection stuff that is now
5661 * loader.c: mono_field_from_memberref () implementation.
5662 * mono-endian.c: thinko (s/struct/union/g).
5663 * object.c, object.h: make the mono_string_* prototypes actually use
5664 MonoString instead of MonoObject.
5665 * reflection.c, reflection.h: updates for changes in the reflection
5666 code in corlib: we use C structures that map to the actual C# classes.
5667 Handle SZARRAYs when encoding types. Handle locals in methods. Use a
5668 fat method header if needed and use the info from the ILGenerator for
5669 methods. Handle fields in types. Misc fixes.
5671 2001-10-17 Dietmar Maurer <dietmar@ximian.com>
5673 * class.c (mono_class_metadata_init): bug fix: always allocate
5674 space for static class data
5676 2001-10-25 Dietmar Maurer <dietmar@ximian.com>
5678 * class.c (mono_compute_relative_numbering): use relative
5679 numbering to support fast runtime type checks.
5681 2001-10-17 Sean MacIsaac <macisaac@ximian.com>
5683 * class.c (mono_class_create_from_typeref): added debugging output
5684 to print class name when MonoDummy is returned instead of real class
5686 2001-10-15 Dietmar Maurer <dietmar@ximian.com>
5688 * class.c (mono_class_metadata_init): interface offset table now
5689 contains pointers into the vtable - this is more efficient for the jit
5691 2001-10-12 Dietmar Maurer <dietmar@ximian.com>
5693 * class.c (mono_class_metadata_init): use a temporary vtable (the
5694 old algorithm only worked for the interpreter, but not for the jit)
5696 2001-10-11 Dietmar Maurer <dietmar@ximian.com>
5698 * loader.c (method_from_memberref): use mono_class_get to get the
5699 class of an array instead of using System.Array directly.
5700 (mono_get_method): also add MEMBERREF methods to the method cache
5701 which usefull for arrays.
5703 2001-10-10 Dietmar Maurer <dietmar@ximian.com>
5705 * pedump.c (arch_compile_method): added to compute vtable entry
5707 * metadata.c (mono_metadata_interfaces_from_typedef): also return the
5708 number of interfaces.
5710 * class.h: merged MonoArrayClass into MonoClass
5712 * class.c (mono_class_create_from_typedef): compute the vtable size and
5713 allocate space to include the vtable inside MonoClass
5714 (mono_class_metadata_init): initialize the vtable
5716 Mon Oct 8 16:12:38 CEST 2001 Paolo Molaro <lupus@ximian.com>
5718 * metadata.c, metadata.h: use MonoArrayType to describe the shape of an array.
5719 Guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux).
5720 * image.c: endian fixes by Laurent Rioux.
5721 * object.h, object.c: rename MonoStringObject to MonoString and
5722 MonoArrayObject to MonoArray. Change some function names to conform to
5723 the style mono_<object>_<action>. mono_string_new_utf16 () takes a
5724 guint16* as first argument, so don't use char*.
5725 Provide macros to do the interesting things on arrays in a portable way.
5726 * threads-pthread.c: updates for the API changes and #include <sched.h>
5727 (required for sched_yield()).
5728 * icall.c: updates for the API changes above.
5729 * Makefile.am, mono-endian.c. mono-endian.h: include unaligned read routines for
5730 platforms that need them.
5732 Mon Oct 8 10:43:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
5734 * class.c: set the correct type for all the fundamental
5735 type when loading the class.
5737 2001-10-05 Dick Porter <dick@ximian.com>
5739 * threads-pthread.c (pthread_mutex_timedlock): Simple
5740 compatibility version for C libraries that lack this call.
5742 Thu Oct 4 19:10:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
5744 * class.c: MonoTypes stored in MonoClass are stored as
5745 fundamental MonoTypes when the class represents a
5746 fundamental type (System.Int32, ...).
5747 The TypeHandle return by ldtoken is a MonoType*.
5748 * icall.c: ves_icall_get_data_chunk () write out all the
5749 PE/COFF stuff. Implement ves_icall_define_method (),
5750 ves_icall_set_method_body (), ves_icall_type_from_handle ().
5751 * image.c: properly skip unknown streams.
5752 * loader.h, loader.c: add type_class to mono_defaults.
5753 * metadata.c, metadata.h: export compute_size () as
5754 mono_metadata_compute_size () with a better interface.
5756 * pedump.c: don't try to print the entry point RVA if there is no entry point.
5757 * reflection.c, reflection.h: many cleanups, fixes, output method
5758 signatures and headers, typedef and typeref info, compress the metadata
5759 tables, output all the heap streams, cli header etc.
5760 * row-indexes.h: typo fixes.
5762 2001-10-04 Dick Porter <dick@ximian.com>
5764 * object.h: Add a synchronisation mutex struct to MonoObject
5766 * object.c (mono_new_object): Initialise the object
5767 synchronisation mutexes
5769 * icall.c: System.Threading.Monitor internal calls
5771 * threads-pthread.h:
5772 * threads-pthread.c: System.Threading.Monitor internal calls
5774 * threads-types.h: New file, includes the system-specific thread
5777 * threads-pthread-types.h:
5778 * threads-pthread-types.c: New files, handle pthread-specific
5779 synchronisation types
5781 * threads-dummy-types.h:
5782 * threads-dummy-types.c: New files of dummy support for
5783 thread-specific types
5787 * pedump.c: include mono-endian.h not endian.h
5789 * Makefile.am: More threads files.
5790 Name mono-endian.h not endian.h
5792 Tue Oct 2 20:33:48 CEST 2001 Paolo Molaro <lupus@ximian.com>
5794 * Makefile.am, reflection.h, reflection.c: move here the reflection related
5795 stuff and implement a few more bits.
5796 * icall.c: a field needs to be dereferenced twice. Do not use the same
5797 name for two variables in the same scope.
5798 * image.c, image.h: cleanups.
5800 2001-10-02 Dietmar Maurer <dietmar@ximian.com>
5802 * class.c (mono_class_metadata_init): bug fix: compute the right size
5804 Mon Oct 1 20:43:57 CEST 2001 Paolo Molaro <lupus@ximian.com>
5806 * icall.c: implemented some of the Reflection internalcalls.
5807 * image.c, image.h: start writing out the PE/COFF image.
5808 * metadata.h, metadata.c: implement mono_metadata_encode_value ()
5809 that does the reverse than decode_blob_size ().
5810 * object.c: use mono_metadata_encode_value (). Move here
5811 temporary implementation of mono_string_to_utf8 ().
5812 * rawbuffer.c: make malloc_map static.
5814 Fri Sep 28 19:26:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
5816 * metadata.c: fix type comparison for arrays.
5817 * loader.h, loader.c: half-assed fix to get more tests work in cygwin.
5818 Added a couple of new classes to monodefaults.
5819 * icall.c: added a couple of Reflection-related internalcalls.
5820 * class.h, class.c: implemented mono_ldtoken () for RuntimeTypeHandles.
5821 Added a byval_arg MonoType to MonoClass.
5823 2001-09-28 Dick Porter <dick@ximian.com>
5826 * threads-pthread.h:
5827 * threads-pthread.c: Implemented internal calls for
5828 LocalDataStoreSlot operations. Applied mutexes around all shared
5829 data. Reworked the thread creation and Start() operations to
5830 avoid a race condition.
5833 * threads-dummy.c: Dummy calls for the LocalDataStoreSlot operations
5835 Thu Sep 27 21:45:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
5837 * rawbuffer.c: disable mmap on cygwin since it seems to be broken there.
5839 Thu Sep 27 19:52:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
5841 * class.c, loader.c: warn and return NULL instead of erroring out.
5842 * icall.c: added System.AppDomain::getCurDomain().
5843 * loader.c: we don't need to lookup the typedef again for p/invoke calls.
5845 2001-09-25 Dick Porter <dick@ximian.com>
5847 * threads-pthread.h:
5848 * threads-pthread.c: Implemented timed thread joining and added
5849 System.Threading.Thread::Join_internal internal call
5851 * icall.c: Added System.Threading.Thread::Join_internal internal call
5854 * threads-dummy.c: Dummy calls for System.Thread.Thread::Join_internal
5856 Mon Sep 24 18:56:59 CEST 2001 Paolo Molaro <lupus@ximian.com>
5858 * object.c, object.h: added mono_ldstr (), mono_string_is_interned () and
5859 mono_string_intern () to implement the semantics of the ldstr opcode
5860 and the interning of System.Strings.
5861 * icall.c: provide hooks to make String::IsIntern and String::Intern
5864 2001-09-23 Dick Porter <dick@ximian.com>
5867 * threads-dummy.h: New files of dummy threading routines
5869 * Makefile.am (THREAD_SOURCE): Arrange to compile different thread
5870 support code based on system specifics
5872 Rename PTHREAD_LIBS to THREAD_LIBS
5874 2001-09-23 Dick Porter <dick@ximian.com>
5876 * threads-pthread.c: Implement the System.Threading.Thread::Sleep,
5877 Schedule (called when asked to Sleep for 0 ms) and CurrentThread
5879 (mono_thread_init): Set up a Thread object instance to return when
5880 the main thread calls Thread.CurrentThread
5881 (mono_thread_cleanup): Wait for all subthreads to exit
5883 * icall.c: New internal calls for System.Threading.Thread::Sleep
5884 (including Schedule) and CurrentThread
5886 * threads.h: New file, to insulate thread-specific stuff from the
5889 2001-09-21 Dick Porter <dick@ximian.com>
5891 * threads-pthread.h:
5892 * threads-pthread.c: New file, for handling pthreads-style
5893 threading support. Start() now starts a new thread and executes
5894 the ThreadStart delegate instance.
5896 * icall.c: Added the internalcall for
5897 System.Threading.Thread::Start_internal
5899 * Makefile.am: Added new files, and PTHREADS_LIBS to the link line
5901 Thu Sep 20 19:37:39 CEST 2001 Paolo Molaro <lupus@ximian.com>
5903 * loader.c: work around the different signatures for delegates
5904 constructors csc generates in compiled code vs the ones compiled in mscorlib.
5906 Tue Sep 18 13:16:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
5908 * class.h, class.c: add mono_class_get_field_from_name ().
5909 * *: Fix C comments and other ANSI C issues.
5911 Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
5913 * endian.h, assembly.c: fix some endianness issues.
5915 Fri Sep 7 18:40:40 CEST 2001 Paolo Molaro <lupus@ximian.com>
5917 * loader.h, load.c: add delegate_class to mono_defaults.
5918 Handle runtime provided methods in mono_get_method ().
5920 2001-08-29 Dietmar Maurer <dietmar@ximian.com>
5922 * loader.c (mono_get_method): use pinvoke for internal call
5924 * icall.c: use pinvoke for internal call
5926 * loader.c (method_from_memberref): set the method name
5928 Wed Aug 29 12:43:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
5930 * metadata.c: help the compiler generate better code for
5931 mono_class_from_mono_type ().
5933 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
5935 * class.c (mono_class_metadata_init): delayed computing of the
5936 class size to mono_class_metadata_init ()
5938 Tue Aug 28 15:47:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
5940 * class.c, class.h: add an interfaces member to MonoClass.
5941 * image.c, image.h: add assembly_name field to MonoImage
5942 from the assembly table.
5943 * metadata.c, metadata.h: add mono_metadata_interfaces_from_typedef ().
5945 Mon Aug 27 20:12:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
5947 * class.c: Handle Array in mono_class_from_mono_type ().
5948 * metadata.c, pedump.c: some endian fixes.
5950 Mon Aug 27 15:23:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
5952 * class.c, loader.c, loader.h: More types handled in mono_class_from_mono_type ().
5953 * metadata.c: fix small problem introduced with the latest commit.
5955 Mon Aug 27 12:17:17 CEST 2001 Paolo Molaro <lupus@ximian.com>
5957 * loader.c, metadata.c, metadata.h: Export mono_metadata_type_equal().
5958 We don't need a MonoMetadata pointer anymore to compare signatures in
5959 mono_metadata_signature_equal (), update callers.
5960 Reduced memory usage an number of allocations for MonoMethodHeader and
5961 MonoMethodSignature.
5963 Sun Aug 26 23:03:09 CEST 2001 Paolo Molaro <lupus@ximian.com>
5965 * metadata.c: added compare for szarray.
5967 Sun Aug 26 11:34:24 CEST 2001 Paolo Molaro <lupus@ximian.com>
5969 * class.h, class.c, loader.h, loader.c: export mono_class_from_mono_type ()
5970 and add a couple more types to it and mono_defaults. Give an hint on
5971 classes that need implementing in our corlib and are referenced
5974 Sat Aug 25 12:52:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
5976 * class.h, class.c: keep track if a class is also an Enum.
5977 * loader.c: Implement a couple more types for use in libffi
5978 marshalling. Gives better diagnostics when failing to dlopen
5979 a library. Set method->klass for P/Invoke methods, too.
5981 Fri Aug 24 19:30:25 CEST 2001 Paolo Molaro <lupus@ximian.com>
5983 * class.c, class.h: add a MonoType this_arg to MonoClass that
5984 represents a pointer to an object of the class' type that
5985 can be used by the interpreter and later the type cache.
5986 Add best guess alignment info for valuetype objects.
5988 Fri Aug 24 15:50:31 CEST 2001 Paolo Molaro <lupus@ximian.com>
5990 * metadata.h, metadata.c, class.h, class.c: squeezed MonoParam
5991 into MonoType: one less level of indirection and allocation and
5992 simplifies quite a bit of code. Added cache for MonoTypes that are
5993 used frequently, so that we don't need to allocate them all the time.
5995 2001-08-24 Dietmar Maurer <dietmar@ximian.com>
5997 * class.c (mono_class_create_from_typedef): System.Enum is also a
5998 value type, although it does not derive from System.ValueType
5999 (maybe a bug in the ms compiler?)
6001 * metadata.c (mono_type_size): return the right size for value types
6003 * loader.c (mono_get_method): only initialize method header if not abstract
6005 * class.c (mono_class_from_mono_type): use mono_default values.
6007 2001-08-23 Dietmar Maurer <dietmar@ximian.com>
6009 * *: use MonoClass pointers instead of <type_tokens>
6011 * class.h: new flag: metadata_inited.
6013 * class.c (mono_class_metadata_init): impl.
6014 (mono_class_instance_size): impl.
6015 (mono_class_data_size): impl.
6017 Wed Aug 22 16:27:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
6019 * metadata.c, loader.h, loader.c, image.h, image.c, class.h, class.c:
6020 MonoClass now has the name and name_space fields.
6021 MonoMethod has a pointer to its MonoClass, instead of MonoImage.
6022 mono_get_method () takes and optional MonoClass as argument.
6023 Removed mono_typedef_from_name() and added mono_class_token_from_name()
6024 instead that takes advantage of a map from class names to typedef
6025 tokens in MonoImage.
6027 Tue Aug 21 18:54:58 CEST 2001 Paolo Molaro <lupus@ximian.com>
6029 * metadata.c: zero is not a valid alignment boundary.
6030 Merge MONO_TYPE_VOID in default decoding code.
6032 2001-08-21 Dietmar Maurer <dietmar@ximian.com>
6034 * image.h: merged MonoMetadata into MonoImage
6036 * class.h: cleanup of MonoArrayClass, use a MonoClass pointer to
6037 identify the type of elements.
6039 Mon Aug 20 19:39:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
6041 * blob.h: fix MONO_TYPE_TYPEDBYREF value.
6042 * cil-coff.h: split MonoMSDOSHeader and add size info.
6043 * image.c: add some consistency checks.
6044 * metadata.c: fix row size computation: one programmer
6045 error and one LAMESPEC. Handle MONO_TYPE_TYPEDBYREF.
6046 add explanation for the locator routine.
6047 Fix decoding of size in method header.
6049 2001-08-20 Miguel de Icaza <miguel@ximian.com>
6051 * assembly.c (g_concat_dir_and_file): Use _S for string concat.
6052 (g_concat_dir_and_file): Bring g_concat_dir_and_file
6053 function from gnome-libs. This uses the right path separator
6054 based on the OS, and also works around a bug in some systems where
6055 a double slash is not allowed.
6056 (default_assembly_name_resolver): Use g_concat_dir_and_file
6057 (mono_assembly_open): ditto.
6059 2001-08-20 Dietmar Maurer <dietmar@ximian.com>
6061 * metadata.c (mono_metadata_signature_equal): impl.
6063 * *: void is now a realy MonoType (instead of using NULL)
6065 * metadata.c (do_mono_metadata_parse_type): use
6066 mono_metadata_parse_type to parse void value.
6068 Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
6070 * metadata.c, metadata.h: in the signature and method header store
6071 only the space required for holding the loca vars and incoming arguments.
6073 2001-08-15 Dietmar Maurer <dietmar@ximian.com>
6075 * metadata.c (do_mono_metadata_parse_type): treat void like any
6076 other type (instead of assigning NULL);
6078 2001-08-14 Dietmar Maurer <dietmar@ximian.com>
6080 * metadata.c (mono_metadata_parse_mh): fixxed pinned/byref value
6082 2001-08-09 Dietmar Maurer <dietmar@ximian.com>
6084 * image.c (do_mono_image_open): added a cache for arrays.
6086 Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6088 * metadata.h, metadata.c: add mono_metadata_decode_row_col () to
6089 decode a single column from a row in a metadata table and changes
6090 to take advantage of it in the typedef locator (gives a nice speed up).
6091 Store offset info for function params.
6093 2001-08-02 Dietmar Maurer <dietmar@ximian.com>
6095 * image.h (MONO_IMAGE_IS_CORLIB): removed
6097 Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
6099 * assembly.c: how could mono_assembly_close () had ever worked?
6100 * metadata.c, metadata.h: provide offset info for local vars.
6101 Implement mono_type_size () to take care of alignment as well
6102 as size (it was mono_field_type_size in cli/class.c before).
6104 2001-08-01 Dietmar Maurer <dietmar@ximian.com>
6106 * image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
6108 * assembly.h (CORLIB_NAME): set to corlib.dll
6110 * assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
6112 Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6114 * metadata.h, metadata.c, Makefile.am, private.h, assembly.c, blob.h,
6115 cil-coff.h, image.c, image.h, pedump.c, rawbuffer.c, rawbuffer.h, row-indexes.h,
6116 tokentype.h: massive namespace cleanup.
6118 Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
6120 * metadata.h, metadata.c: decode exception clauses when parsing method header.
6122 2001-07-27 Dietmar Maurer <dietmar@ximian.com>
6124 * metadata.c (mono_metadata_free_type): added check for type !=
6125 NULL (void) before calling mono_metadata_free_type()
6127 Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
6129 * metadata.h, row_indexes.h: added header with enumerations to use
6130 to index in the columns from tables in metadata and to decode coded
6131 tokens: we should start using this instead of embedding magic numbers
6134 Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
6136 * assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
6137 Move metadata_t info from cli_image_info_t to MonoImage, where
6138 it's easily accessible. Changed all the uses accordingly.
6139 Added the method and class caches to MonoImage.
6140 * metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
6141 and mono_metadata_decode_value () signature to be more consistent
6142 with the other parse functions (and simplify code). Taken advantage
6143 of zero-length array allocation with GCC. Removed reduntant (and
6144 wrong) MonoFieldType struct and use MonoParam instead. Changed
6145 mono_metadata_parse_field_type () to use common code for parsing.
6146 Added mono_metadata_typedef_from_field () and
6147 mono_metadata_typedef_from_method () to lookup a typedef index from a
6148 field or method token.
6149 Pack the MonoRetType structure more tightly (fits in 8 bytes now).
6151 2001-07-23 Miguel de Icaza <miguel@ximian.com>
6153 * metadata.c (mono_metadata_parse_field_type): Implement.
6154 (do_mono_metadata_parse_type): Split engine from
6155 mono_metadata_parse_type, so that we can create smaller structures
6156 for things that just have one pointer to the MonoType (look at
6159 2001-07-20 Miguel de Icaza <miguel@ximian.com>
6161 * metadata.c (mono_metadata_parse_mh): Correct the implementation,
6162 as Jan Gray found out, it is incorrect.
6164 2001-07-18 Miguel de Icaza <miguel@ximian.com>
6166 * assembly.c: Implement asssembly loading. This loads an image
6167 and loads all the referenced assemblies. Come to think of it, we
6168 could always do lazy loading of the assemblies.
6170 * image.c (mono_image_open): Keep loaded images in a hashtable.
6172 * image.h (MonoImage): Add reference count.
6174 2001-07-17 Miguel de Icaza <miguel@ximian.com>
6176 * assembly.c (mono_assembly_open): Keep track of the file name in
6177 case the assembly has no ASSEMBLY table.
6179 * metadata.h: Fixed Paolo's quick hack. Put the documnentation
6182 Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
6184 * metadata.c, metadata.h: decode local vars in method header
6185 parse function. Change callers accordingly.
6187 Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
6189 * metadata.h, cil-coff.h: protect against multiple inclusion.
6190 Added some new structures to hold information decoded from metadata:
6191 MonoType, MonoParam, MonoArray, MonoMethod, MonoMethodSignature
6192 and relevant decoding/free functions.
6193 * metadata.c: implement decoding functions. Add warning for out of bounds
6194 index in mono_metadata_locate(). Implement mono_get_method () to retreive
6195 all the info about a method signature and invocation. Remove check on
6196 uninitialized local var in parse_mh() and fix memory leak.
6198 2001-07-12 Miguel de Icaza <miguel@ximian.com>
6200 * metadata.h: More macros.
6202 * tokentype.h: New file.
6204 Fri Jul 6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
6206 * assembly.c: added a consistency check and initialize
6207 some structures with g_new0().
6208 * metadata.c: fixed a couple more bugs in table size computation
6209 and add other checks for out-of bound access to metadata.
6211 Thu Jul 5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
6213 * metatada.c: fix bugs computing table sizes. Spew a
6214 warning when index in string heap is out of bounds.
6216 2001-07-04 Miguel de Icaza <miguel@ximian.com>
6218 * metadata.h: Add a couple of macros to manipulate tokens.
6220 Tue Jul 3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
6222 * assembly.c: g_free(ii->cli_sections) (and avoid double free of
6223 cli_section_tables).
6225 2001-07-01 Miguel de Icaza <miguel@ximian.com>
6227 * metadata.c (mono_metadata_user_string): New function, provides
6228 access to the UserString heap.
6230 2001-06-27 Miguel de Icaza <miguel@ximian.com>
6232 * metadata.c: Add inline documentation.
6234 2001-06-26 Miguel de Icaza <miguel@ximian.com>
6236 * propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
6239 2001-06-22 Miguel de Icaza <miguel@ximian.com>
6241 * typeattr.h: New file, TypeAttribute flags.
6243 2001-06-21 Miguel de Icaza <miguel@ximian.com>
6245 * mono/metadata/assembly.c (mono_assembly_ensure_section_idx,
6246 mono_assembly_ensure_section): Section loading code.
6247 (load_section_tables): Load the sections.
6249 * mono/metadata/metadata.c (mono_metadata_locate_token,
6250 mono_metadata_locate): Functions to locate the information
6251 definition given a token or a table and an index.
6252 (mono_metadata_compute_table_bases): New.
6253 (compute_size): New function to compute the sizes of the various
6256 * mono/metadata/metadata.h: Finish listing the different index
6259 * mono/metadata/pedump.c: Improve to dump new information.
6261 2001-06-19 Miguel de Icaza <miguel@ximian.com>
6263 * mono/metadata/metadata.c: Entered all the tables matching
6266 * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2