2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mono / metadata / ChangeLog
1 2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * socket-io.c: fixed compilation for systems that define AF_INET6
4         and don't define SOL_IP/SOL_IPV6.
5
6 2003-08-21  Zoltan Varga  <vargaz@freemail.hu>
7
8         * object.c (mono_object_isinst): Fix casts to TransparentProxy in
9         the interpreter. Patch by Bernie Solomon (bernard@ugsolutions.com).
10
11         * rawbuffer.c rawbuffer.h: Make this module thread safe.
12
13         * domain.c: Make this module thread safe.
14
15         * domain.c (mono_init): Call new initialization function.
16
17         * icall.c (ves_icall_System_Array_SetValueImpl): Check types for
18         reference types too. Fixes #38812.
19
20         * image.c (mono_image_init): Fixed warnings.
21
22         * class.c (mono_class_from_typeref): Handle assembly load failure
23         correctly.
24
25         * appdomain.c (add_assemblies_to_domain): Handle the case when
26         the references of an assembly are not yet loaded.
27
28         * metadata.c image.c assembly.c: Moved initialization of global
29         variables to a separate function called at startup since lazy 
30         initialization of these variables is not thread safe.
31         
32         * image.c assembly.c: Made this module thread safe by adding locks in 
33         the appropriate places.
34
35         * domain.c (mono_init): Call the new initialization functions of the
36         three modules.
37
38 2003-08-20  Lluis Sanchez Gual  <lluis@ximian.com>
39
40         * marshal.c: mono_delegate_begin_invoke(): If the target is a proxy,
41           make a direct call. It is proxy's work to make the call asynchronous.
42           mono_delegate_end_invoke(): If the targe is a proxy, just collect
43           the return values.
44         * object.cs: mono_method_call_message_new(): read AsyncResult and
45           state object from parameters list, if this info is requested.
46         * object.h: Added fields to store remote call output values in
47           MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.
48
49 Wed Aug 20 12:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
50
51         * object.h: add needed fields to MonoThread.
52         * threads.c, threads.h: allow registering a function to cleanup data
53         allocated per thread by the JIT.
54
55 Tue Aug 19 18:22:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
56
57         * loader.h: portability fix by Bernie Solomon
58         * <bernard@ugsolutions.com>.
59
60 2003-08-16  Zoltan Varga  <vargaz@freemail.hu>
61
62         * reflection.h reflection.c (mono_param_get_objects): Changed this to 
63         return a MonoArray. This simplifies the code and also ensures that
64         the cache allways contains an object reference as a value.
65
66         * icall.c (ves_icall_get_parameter_info): Simplified using the new
67         function.
68
69 2003-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
70
71         * socket-io.c: patch by Bernie Solomon <bernard@ugsolutions.com> that
72         fixes a problem with byte ordering when getting the address family for
73         a socket.
74
75 2003-08-15  Zoltan Varga  <vargaz@freemail.hu>
76
77         * .cvsignore: Added monosn.
78
79         * reflection.h reflection.c loader.c: Added support for parameter
80         marshalling to dynamically created types. Fixes #47295.
81
82 Fri Aug 15 11:42:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
83
84         * rand.c: remove useless warnings.
85
86 Wed Aug 13 15:49:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
87
88         * class.c: implemented ldtoken for methods and fieldrefs.
89
90 2003-08-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
91
92         * threadpool.c: when mono_async_invoke was called, no one took care of
93         monitoring the queue. So if the method invoked took some time and we
94         got new async invoke requests after 500 ms (the thread created waited
95         that long in WaitForSingleObject), the new async invoke was not called
96         until the previous one finished.
97
98         This is fixed now. Thanks to Totte for helping with it.
99
100 2003-08-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
101
102         * threadpool.c: set threadpool_thread to TRUE. Patch by totte.
103
104 2003-08-11  Martin Baulig  <martin@ximian.com>
105
106         * mono-debug-debugger.c (mono_debugger_lookup_type): New function.
107
108 2003-08-06  Martin Baulig  <martin@ximian.com>
109
110         * mono-debug-debugger.c: Added support for static fields,
111         properties and methods.
112
113 2003-08-06  Martin Baulig  <martin@ximian.com>
114
115         * mono-debug-debugger.c: Don't store the MonoString's vtable to
116         make this work for applications with multiple application domains.
117
118 2003-08-04  Martin Baulig  <martin@ximian.com>
119
120         * mono-debug-debugger.c: Completely reworked the type support; the
121         most important thing is that we're now just using one single
122         `MonoType' instance per type.
123
124 Sat Aug  2 13:05:27 BST 2003 Malte Hildingson <malte@amy.udd.htu.se>
125
126         * mono-endian.h, mono-endian.c, icall.c: Added icall
127         ves_icall_System_Double_AssertEndianity to assert double word endianity
128         on ARM (FPA). The icall uses a macro defined in mono-endian.h.
129
130 Fri Aug 1 16:51:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
131
132         * class.c, class.h, reflection.c, metadata.c, icall.c: more generics
133         support, icalls and fixes.
134
135 2003-07-31  Miguel de Icaza  <miguel@ximian.com>
136
137         * unicode.c (ves_icall_System_Char_IsPunctuation): The set of
138         classes that are a punctuation character in .NET is not the same a
139         g_unichar_ispunct.
140
141 Tue Jul 29 18:07:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
142
143         * socket-io.c: ipv6 portability fixes from Felix Ortga (guile@lared.es).
144
145 2003-07-29  Miguel de Icaza  <miguel@ximian.com>
146
147         * icall.c: Add new MemCopy internalcall.
148         (ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
149         Simplified code; It is not necessary to handle all the cases here,
150         as the C# code takes care of it.  Only handle the case of the name
151         resource embedded into the assembly.
152
153         Changed signature to return the data pointer and the size of the
154         data. 
155
156 2003-07-26  Miguel de Icaza  <miguel@ximian.com>
157
158         * reflection.c (mono_image_get_method_info): Allow for 0x40 to be
159         encoded.        (Partition II.22.1.7: PInvokeAttribute:SupportsLastErr).
160
161 2003-07-29  Lluis Sanchez Gual  <lluis@ximian.com>
162
163         * socket-io.c: ignore EINTR error in select.
164
165 Tue Jul 29 15:25:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
166
167         * class.h, class.c: removed unused subclasses field in MonoClass.
168
169 2003-07-29  Lluis Sanchez Gual  <lluis@ximian.com>
170
171         * icall.c: improve fix of get_base_definition(). If the parent class
172           doesn't have the mehod, look at the parent of the parent.
173         * object.c: mono_message_init(): use the attribute PARAM_ATTRIBUTE_OUT
174           to check if a parameter is an in or out parameter
175           (PARAM_ATTRIBUTE_IN is not set by default).
176           mono_method_return_message_restore(): Use mono_class_value_size to
177           get the size of a value type. mono_type_stack_size (parameterType)
178           does not return the correct value if parameterType is byRef.
179           mono_load_remote_field(), mono_load_remote_field_new(),
180           mono_store_remote_field(), mono_store_remote_field_new():
181           raise exception if the remote call returns an exception.
182
183 2003-07-28  Martin Baulig  <martin@ximian.com>
184
185         * mono-debug-debugger.c (mono_debugger_runtime_invoke): New
186         method.  This is a wrapper around mono_runtime_invoke() which
187         boxes the instance object if neccessary.
188
189 Fri Jul 25 19:14:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
190
191         * class.c, class.h, image.c, image.h, loader.c, metadata.c,
192         metadata.h, row-indexes.h, verify.c: first cut of generics support.
193
194 Thu Jul 24 11:34:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
195
196         * icall.c: disable mcs bug workaround.
197
198 2003-07-21  Miguel de Icaza  <miguel@ximian.com>
199
200         * object.c (mono_runtime_class_init): Take the metadata_section
201         mutex before obtaining the domain mutex.
202
203         * appdomain.h: Added definition of metadata_section mutex here. 
204
205         * object.c: define metadata_mutex here.
206
207 2003-07-24  Ravi Pratap  <ravi@ximian.com>
208
209         * icall.c: Remove the FIXED_MCS_45127 workarounds - this has been
210         fixed.
211
212 2003-07-24  Lluis Sanchez Gual  <lluis@ximian.com>
213
214         * reflection.c: Fix bug #46669
215
216 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
217
218         * exception.c:
219         * exception.h:
220         * icall.c:
221         * object.h: fill in the type name for TypeLoadException.
222
223 2003-07-23  Ravi Pratap  <ravi@ximian.com>
224
225         * class.c: Fixes from Paolo in response to bug #45415 (Subclass
226         relationship between TypeBuilders while compiling corlib) and bug
227         45993 (Array types returned from the runtime while compiling
228         corlib were from the loaded corlib).
229
230 2003-07-22  Martin Baulig  <martin@ximian.com>
231
232         * mono-debug-debugger.c: Reworked the type support a bit more;
233         distinguish between types and classes.
234
235 Tue Jul 22 15:48:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
236
237         * icall.c: add IsArrayImpl icall.
238
239 2003-07-22  Zoltan Varga  <vargaz@freemail.hu>
240
241         * class.c (mono_class_layout_fields): Fix gc aware auto layout by
242         initializing real_size only once. Also fix bug #46602.
243
244 2003-07-21  Jerome Laban <jlaban@wanadoo.fr>
245
246         * object.c: Renamed mono_metadata_section to metadata_section.
247
248 2003-07-21  Lluis Sanchez Gual  <lluis@ximian.com>
249
250         * icall.c: in MS.NET ves_icall_Type_GetInterfaces returns an
251           empty array if the type is an array. Fixed.
252           ves_icall_MonoMethod_get_base_definition: if the base method
253           is abstract, get the MethodInfo from the list of methods of
254           the class.
255         * reflection.c: ParameterInfo.PositionImpl should be zero-based
256           and it was 1-based. Fixed in mono_param_get_objects.
257
258 2003-07-20  Martin Baulig  <martin@ximian.com>
259
260         * mono-debug.h: Set version number to 31.
261         (mono_debug_init): Added `MonoDomain *' argument.
262
263         * mono-debug-debugger.c: Reworked the type support; explicitly
264         tell the debugger about builtin types; pass the `klass' address to
265         the debugger.
266
267 2003-07-20 Jackson Harper <jackson@latitudegeo.com>
268
269         * image.c: Allow new metadata tables to be loaded without a
270         warning. Also update the warning message to give the new constant value.
271                 
272 Fri Jul 18 13:12:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
273
274         * class.c, class.h, debug-helpers.c, icall.c, image.c, marshal.c,
275         metadata.c, metadata.h, mono-debug-debugger.c, object.c, reflection.c: 
276         array type representation changes.
277
278 Fri Jul 18 11:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
279
280         * icall.c, appdomain.h, appdomain.c: support full runtime shutdown
281         on Environment.Exit () call.
282
283 Thu Jul 17 17:21:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
284
285         * icall.c, reflection.h, reflection.c, verify.c: cleanups,
286         requires a matching corlib.
287
288 2003-07-17  Lluis Sanchez Gual  <lluis@ximian.com>
289
290         * Changelog: My editor decided to add a CR to each line. Sorry about that.
291           Committed again without the CRs.
292         
293 2003-07-17  Lluis Sanchez Gual  <lluis@ximian.com>
294
295         * socket-io.c: Get system_assembly using mono_image_loaded(), instead
296           getting it from the "this" socket instance. Did not work
297           if the socket is a subclass of Socket.
298           Also fixed bug #35371.
299
300 Thu Jul 17 13:39:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
301
302         * metadata.c: fixed size for TypedByRef.
303         * loader.c: when searching for a method, consider the vararg amrker.
304         * unicode.c, decimal.c: constify some arrays.
305
306 2003-07-15  Dick Porter  <dick@ximian.com>
307
308         * socket-io.c: Fixed compilation for gcc < 3.2.
309
310         Fixed compilation for machines that don't have AF_INET6 (thanks to
311         Bernie Solomon <bernard@ugsolutions.com> for that part.)
312
313         Fixed compile warnings.
314         
315         Fixed formatting and line endings.
316
317 2003-07-14  Jerome Laban <jlaban@wanadoo.fr>
318
319         * socket-io.h:
320         * socket-io.c: Added IPv6 support.
321
322 2003-07-13  Zoltan Varga  <vargaz@freemail.hu>
323
324         * class.c (mono_class_is_assignable_from): New function to implement
325         the is_assignable_from logic. Used by mono_object_isinst, 
326         Type::IsAssignableFrom () and the interpreter.
327
328         * class.c (mono_class_is_subclass_of): Make all classes a subclass of
329         Object, even interfaces.
330         
331         * object.c (mono_object_isinst): Implement in terms of 
332         is_assignable_from.
333
334         * icall.c (ves_icall_type_is_assignable_from): New icall.
335
336 2003-07-11  Zoltan Varga  <vargaz@freemail.hu>
337
338         * domain.c (foreach_domain): fix compiler warning.
339
340 2003-07-11  Dietmar Maurer  <dietmar@ximian.com>
341
342         * image.c (load_metadata_ptrs): use g_strndup because strndup is
343         not available on all plattforms
344
345 2003-07-10  Zoltan Varga  <vargaz@freemail.hu>
346
347         * image.h image.c: Store the metadata version string in MonoImage.
348         * icall.c: New icall to retrieve the image version.
349         * reflection.c (create_dynamic_image): Fill in the image version field
350         * reflection.c (build_compressed_metadata): Use the image version
351         from the image structure.
352
353 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
354
355         * appdomain.c: modified comment.
356         * gc.c: finalizer_thread can call finalizers even when finished == TRUE.
357         That will be its last iteration when mono_gc_cleanup is called from
358         mono_runtime_cleanup and before the domain is unloaded.
359
360         Fixes bug #45962.
361
362 2003-07-04  Dietmar Maurer  <dietmar@ximian.com>
363
364         * marshal.c (mono_marshal_get_native_wrapper): fixes for [out]
365         attributes.
366
367 Thu Jul 3 17:22:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
368
369         * object.c, file-io.c, metadata.c, mono-endian.h, reflection.c,
370         rawbuffer.c: more 64 bit and picky (or old) compiler fixes from
371         Bernie Solomon <bernard@ugsolutions.com>.
372
373 Thu Jul 3 17:17:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
374
375         * object.c, object.h: provide mono_object_new_fast() for faster
376         allocation in some special cases.
377
378 Wed Jul 2 13:21:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
379
380         * object.h, reflection.h, verify.c: fixes for some 64bit issues,
381         mostly from a patch by Laramie Leavitt <lar@leavitt.us>.
382
383 Tue Jul 1 21:24:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
384
385         * threadpool.c: fix leaks.
386
387 2003-07-01  Dick Porter  <dick@ximian.com>
388
389         * threadpool.c (mono_async_invoke): Use mono_g_hash_table_remove when
390         using MonoGHashTables.  Fixes threadpool bug posted to list.
391
392 Tue Jul 1 11:45:40 CEST 2003 Paolo Molaro <lupus@ximian.com>
393
394         * image.h, image.c: added support to load an assembly from a byte array.
395         * Makefile.am, assembly.c, make-bundle.pl, sample-bundle: added 
396         assembly bundle support.
397
398 2003-06-27  Dietmar Maurer  <dietmar@ximian.com>
399
400         * threadpool.c (mono_thread_pool_add): keep a reference to the
401         AsyncResult to prevent GC
402
403 Thu Jun 26 12:13:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
404
405         * class.c: leak fix.
406
407 2003-06-25  Dick Porter  <dick@ximian.com>
408
409         * threadpool.c (mono_thread_pool_add): Don't set up a finaliser
410         for the async object, the WaitHandle object will close the handle.
411         Fixes bug 45321.
412
413 Wed Jun 25 18:12:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
414
415         * class.c: in mono_array_class_get (), lookup from the hash with the
416         same type we insert: this works around a bug in
417         mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
418         lluis. The real fix will have to wait for after the release.
419
420 Wed Jun 25 13:14:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
421
422         * icall.c: fix memory leak when getting type members.
423
424 Mon Jun 23 16:12:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
425
426         * reflection.c: added more pubtoken special cases.
427
428 Mon Jun 23 15:29:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
429
430         * class.c: handle field offset correctly when class size
431         is set (bug# 45182, partially from a patch by jlaban@wanadoo.Fr (Jerome Laban)).
432
433 2003-06-20  Martin Baulig  <martin@ximian.com>
434
435         * mono-debug-debugger.h (MonoDebuggerSymbolFile): Added `MonoImage
436         *image' field.
437
438 2003-06-20  Martin Baulig  <martin@ximian.com>
439
440         * image.h, mono-debug-debugger.h: Fixed compiler warnings.
441
442 2003-06-20  Martin Baulig  <martin@ximian.com>
443
444         * mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed.  We
445         just distinguish between variables in registers and variables at
446         an offset relative to a register.
447
448 2003-06-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
449
450         * icall.c: #ifdef out latest changes until mcs is fixed.
451
452 Thu Jun 19 11:03:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
453
454         * icall.c: return members in metadata order.
455
456 Wed Jun 18 15:26:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
457
458         * icall.c: avoid infinite loop in GetTimeZoneData.
459
460 Wed Jun 18 12:47:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
461
462         * icall.c: added Marshal.Prelink/All icalls.
463
464 Wed Jun 18 12:17:48 CEST 2003 Paolo Molaro <lupus@ximian.com>
465
466         * object.c, object.h: fix warnings and do some overflow checking
467         when creating arrays.
468
469 2003-06-17  Dick Porter  <dick@ximian.com>
470
471         * file-io.h:
472         * file-io.c: File attributes need to be tweaked slightly when
473         passed from the managed to the w32 world.
474
475 2003-06-17  Zoltan Varga  <vargaz@freemail.hu>
476         * profiler.h profiler-private.h profiler.c: Rework last patch
477         based on suggestion by Paolo.
478         
479 2003-06-17  Zoltan Varga  <vargaz@freemail.hu>
480
481         * profiler.h profiler-private.h profiler.c: Added infrastructure for 
482         instruction level coverage data collection.
483         * profiler.h profiler.c (: Added new callback function which can be
484         used by the profiler to limit which functions should have coverage
485         instrumentation.
486         * profiler.c (mono_profiler_load): Call g_module_build_path to
487         generate the file name of the profiler library.
488
489 Mon Jun 16 18:11:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
490
491         * profiler.c, profiler.h, profiler-private.h: added basic block 
492         coverage profiling API.
493
494 2003-06-15  Zoltan Varga  <vargaz@freemail.hu>
495
496         * reflection.c (mono_reflection_create_runtime_class): Add support
497         for events in dynamically generated code.
498
499         * gc.c: Start GCHandle indexes from 1, since 0 means the handle is
500         not allocated.
501
502 Sat Jun 14 19:01:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
503
504         * icall.c: when getting timezone info, return reasonable values if we
505         can't get the actual data.
506
507 2003-06-14  Dick Porter  <dick@ximian.com>
508
509         * threads.c (start_wrapper): Remove the reference to the thread
510         object in the TLS data, so the thread object can be finalized.
511         This won't be reached if the thread threw an uncaught exception,
512         so those thread handles will stay referenced :-( (This is due to
513         missing support for scanning thread-specific data in the Boehm GC
514         - the io-layer keeps a GC-visible hash of pointers to TLS data.)
515
516 Sat Jun 14 13:16:17 CEST 2003 Paolo Molaro <lupus@ximian.com>
517
518         * reflection.c: ensure streams and tables are first allocated with
519         ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
520
521 Sat Jun 14 13:13:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
522
523         * icall.c: fixed GetElementType for byrefs (bug# 44792).
524
525 2003-06-13  Zoltan Varga  <vargaz@freemail.hu>
526
527         * reflection.c (mono_reflection_create_runtime_class): Add support for
528         properties to dynamically created classes.
529         * reflection.c: Fix a few places where non-MonoObjects were inserted
530         into the tokens hashtable.
531
532 Fri Jun 13 19:10:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
533
534         * object.c: some support to handle out of memory exceptions.
535
536 2003-06-12  Dietmar Maurer  <dietmar@ximian.com>
537
538         * marshal.c (mono_marshal_get_native_wrapper): support reference
539         return types
540
541 Wed Jun 11 18:32:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
542
543         * object.h, object.c: more portability stuff from Bernie Solomon.
544         Unexport mono_object_allocate(). Added mono_object_unbox ().
545         Set exitcode when an unhandled exception is thrown.
546
547 2003-06-11  Dietmar Maurer  <dietmar@ximian.com>
548
549         * marshal.c (mono_marshal_get_native_wrapper): use custom
550         marshaler for return types.
551
552 2003-06-10  Dick Porter  <dick@ximian.com>
553
554         * socket-io.c: Don't assume that one of struct ip_mreqn or struct
555         ip_mreq is available
556
557 Tue Jun 10 17:35:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
558
559         * debug-mono-symfile.c, marshal.c, metadata.c, monitor.c,
560         mono-debug-debugger.c, mono-debug.c, process.c: portability fixes
561         by Bernie Solomon <bernard@ugsolutions.com>.
562
563 2003-06-10  Zoltan Varga  <vargaz@freemail.hu>
564
565         * gc.c (mono_gc_init): Avoid error message on shutdown when
566         GC_DONT_GC=1 is used.
567
568         * icall.c (ves_icall_System_Reflection_Module_GetGuidInternal): 
569         New icall to return the GUID of a module.
570
571 Mon Jun 9 19:33:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
572
573         * class.c: ensure instance size always includes the parent's size
574         even whem class size is set explicitly (fixes bug#44294).
575
576 Thu Jun 5 19:51:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
577
578         * profiler.h, profiler.c: made the simple profiler thread-safe,
579         get more accurate timing info. Allow the loading of an
580         externally-developed profiler module.
581
582 2003-06-05  Dietmar Maurer  <dietmar@ximian.com>
583
584         * marshal.c (mono_marshal_get_native_wrapper): improved
585         class/byref arguments.
586         (mono_marshal_get_native_wrapper): better string marshaling support.
587
588 Wed Jun 4 18:01:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
589
590         * class.c: ensure .pack and .size are handled correctly and
591         simplified layout of static fields.
592
593 2003-06-04  Dietmar Maurer  <dietmar@ximian.com>
594
595         * appdomain.c
596         (ves_icall_System_AppDomainSetup_InitAppDomainSetup): fix for bug 42934
597
598         * loader.c (mono_lookup_pinvoke_call): look for modules in the
599         current directory (fix bug 44008)
600
601 2003-06-03  Dietmar Maurer  <dietmar@ximian.com>
602
603         * marshal.c (mono_marshal_get_native_wrapper): started support for
604         custom marshalers.
605         (mono_delegate_to_ftnptr): consider marshalling specifications
606
607 Tue Jun 3 11:17:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
608
609         * reflection.c, reflection.h: emit custom marshal info.
610
611 2003-06-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
612
613         * object.c: free the GError.
614         * icall.c: added CloseEvent_internal.
615         * threads.[ch]:
616         (ves_icall_System_Threading_Events_CloseEvent_internal): new internal
617         call.
618
619 2003-06-01  Zoltan Varga  <vargaz@freemail.hu>
620
621         * loader.c (mono_method_get_signature): Add support for dynamic
622         assemblies.
623
624 Sat May 31 15:22:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
625
626         * reflection.c: fixed bug #43905.
627
628 Fri May 30 12:56:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
629
630         * class.c, domain.c, icall.c, metadata.h, object.h: support for
631         handling TypedReference and ArgIterator.
632         * loader.c, loader.h: added function to get signature at call site.
633
634 Thu May 29 11:34:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
635
636         * metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more 
637         data readonly. Buglets and warning fixes. Some MethodSpec support.
638
639 Tue May 27 16:34:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
640
641         * class.h, class.c, object.c: remove relative numbering support.
642
643 2003-05-26  Miguel de Icaza  <miguel@ximian.com>
644
645         * marshal.c (mono_marshal_get_native_wrapper): For now, do not
646         free the string, until we get a chance to fix Gtk#
647
648 2003-05-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
649
650         * marshal.c: revert last patch.
651
652 Mon May 26 20:21:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
653
654         * icall.c: updates for new mono_class_vtable() not calling
655         the type constructor anymore.
656
657 Mon May 26 12:10:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
658
659         * object.h, object.c: separate vtable creation from type
660         initialization. Make running the .cctor thread safe.
661
662 2003-05-26  Dietmar Maurer  <dietmar@ximian.com>
663
664         * marshal.c (mono_marshal_get_native_wrapper): free string return values.
665
666 2003-05-21  Dietmar Maurer  <dietmar@ximian.com>
667
668         * loader.c (mono_get_method): consider calling convention
669
670 2003-05-21  Zoltan Varga  <vargaz@freemail.hu>
671
672         * icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
673         to return the invisible global type for a module.
674
675         * reflection.c (mono_image_build_metadata): Emit global fields too.
676
677 2003-05-20  Peter Williams  <peterw@ximian.com>
678
679         * loader.c (mono_lookup_internal_call): Add a few newlines.
680
681 2003-05-20  Zoltan Varga  <vargaz@freemail.hu>
682
683         * reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
684         literal strings.
685
686         * appdomain.c (set_domain_search_path): Recalculate search path when
687         AppDomainSetup.PrivateBinPath changes.
688
689         * object.c (mono_class_compute_gc_descriptor): It turns out some
690         parts of the class libs (like System.Thread) holds pointers to
691         GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
692         to treat native int a pointer type here.
693         
694 Tue May 20 17:18:16 CEST 2003 Paolo Molaro <lupus@ximian.com>
695
696         * appdomain.h, domain.c: add hashtable for jump target resolution.
697
698 2003-05-19  Zoltan Varga  <vargaz@freemail.hu>
699
700         * reflection.h reflection.c icall.c: Added new icalls 
701         GetManifestResourceInfoInternal, GetModulesInternal and support
702         infrastructure.
703
704 2003-05-16  Dick Porter  <dick@ximian.com>
705
706         * icall.c:
707         * file-io.h:
708         * file-io.c: Implement System.IO.MonoIO::GetTempPath
709
710 2003-05-14  Lluis Sanchez Gual  <lluis@ideary.com>
711
712         * object.c: mono_store_remote_field: little fix to previous patch.
713
714 Wed May 14 18:10:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
715
716         * class.c: add constructors to array classes.
717         * icall.c: special case array construction for InternalInvoke (),
718
719 2003-05-14  Zoltan Varga  <vargaz@freemail.hu>
720
721         * class.h class.c reflection.c object.c: Added support for field
722         defaults in dynamically generated classes.
723
724 Wed May 14 13:35:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
725
726         * reflection.c: properly encode charset for ddlimport.
727
728 Wed May 14 11:14:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
729
730         * threads.c: allow compiling without GC.
731
732 Tue May 13 16:41:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
733
734         * appdomain.h, object.c, object.h, threads.c, threads.h: added
735         handling of thread static data.
736
737 Tue May 13 16:36:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
738
739         * reflection.h, reflection.c: added mono_custom_attrs_free ().
740
741 2003-05-13  Dietmar Maurer  <dietmar@ximian.com>
742
743         * class.c (mono_array_class_get): always set the serializable flags
744         (mono_array_class_get): always set the SEALED attribute for array types
745
746 2003-05-12  Dietmar Maurer  <dietmar@ximian.com>
747
748         * loader.c (mono_lookup_pinvoke_call): consider Ansi/Unicode
749         attributes (fix for bug 42021).
750
751 2003-05-12  Dick Porter  <dick@ximian.com>
752
753         * gc.c: Don't run finalizers when the finalizer thread is
754         finishing up, because the default domain has already been
755         destroyed.
756
757 2003-05-11  Miguel de Icaza  <miguel@ximian.com>
758
759         * string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
760         value is null, we should throw an exception.   This is slightly
761         different than the other conventions used for the constructor.
762
763 2003-05-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
764
765         * socket-io.c: fixed windows build.
766
767 2003-05-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
768
769         * socket-io.c: patch by Jerome Laban that fixes bug #42393.
770
771 2003-05-10  Zoltan Varga  <vargaz@freemail.hu>
772
773         * object.c (mono_string_new_wrapper): Compatibility fix for MS
774         compilers.
775
776 2003-05-09  Zoltan Varga  <vargaz@freemail.hu>
777
778         * class.c (mono_class_layout_fields): Add experimental GC aware
779         auto layout facility. Requires class library changes to work correctly.
780
781         (mono_class_setup_vtable): Avoid overriding explicit interface
782         method implementations. Fixes iface3.exe test.
783
784         * object.c (mono_class_compute_gc_descriptor): Type I can't hold an
785         object reference.
786         (mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
787         (mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
788
789         * metadata.h: Add new type classification macro which determines
790         whenever the type holds an object reference.
791
792 2003-05-08  Dietmar Maurer  <dietmar@ximian.com>
793
794         * marshal.c (mono_marshal_get_native_wrapper): cleanups
795
796 2003-05-07  Zoltan Varga  <vargaz@freemail.hu>
797
798         * gc.c (finalizer_thread): Work around a GC bug.
799
800 2003-05-07  Dietmar Maurer  <dietmar@ximian.com>
801
802         * marshal.c (emit_struct_conv): allow unions
803
804         * class.c (class_compute_field_layout): added patches from Jerome Laban <jlaban@wanadoo.fr>
805
806 2003-05-06  Dietmar Maurer  <dietmar@ximian.com>
807
808         * marshal.c (mono_marshal_get_native_wrapper): free strings after pinvoke
809
810 2003-05-06  Martin Baulig  <martin@ximian.com>
811
812         * mono-debug-debugger.h: #include <mono/io-layer/io-layer.h>.
813
814 2003-05-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
815
816         * socket-io.c:
817         (Select_internal): allow NULLs, don't create arrays if not needed.
818         Coupled with Socket.cs changes.
819
820         * threadpool.c:
821         (mono_thread_pool_add): use GC_MALLOC to allocate the ASyncCall and
822         register a finalizer for it that will close the semaphore handle. This
823         fixes the leak and make Lupus' test run with > 4080 loops.
824
825 2003-05-05  Dietmar Maurer  <dietmar@ximian.com>
826
827         * marshal.c (mono_marshal_get_struct_to_ptr): added fixes from
828         Jerome Laban (bug #42287)
829
830 2003-05-02  Martin Baulig  <martin@ximian.com>
831
832         * debug-mono-symfile.h
833         (MonoSymbolFile): Moved declaration into mono-debug.h.
834         (MonoDebugMethodJitInfo): Likewise.
835         (mono_debug_open_mono_symbol_file): Take the MonoDebugHandle as
836         argument.
837         (_mono_debug_address_from_il_offset): Take a
838         MonoDebugMethodJitInfo instead of a MonoDebugMethodInfo.
839
840         * mono-debug.h
841         (MonoDebugDomainData): New struct.
842         (mono_debug_get_domain_data): New function.
843         (mono_debug_add_method): Take an additional `MonoDomain *'
844         argument.
845         (mono_debug_source_location_from_address): Likewise.
846         (mono_debug_il_offset_from_address): Likewise.
847         (mono_debug_address_from_il_offset): Likewise.
848
849 Thu May 1 19:40:37 CEST 2003 Paolo Molaro <lupus@ximian.com>
850
851         * reflection.c: one more check for null type in custom attrs.
852
853 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
854
855         * reflection.c: avoid warning (comparison is always false due to limited
856         range of data type).
857
858 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
859
860         * icall.c: throw an exception in Type.GetField if the argument 'name'
861         is NULL.
862
863 Wed Apr 30 10:53:09 CEST 2003 Paolo Molaro <lupus@ximian.com>
864
865         * reflection.c: fixed handling of enums in named arguments to custom
866         attributes (bug #42123).
867
868 Tue Apr 29 19:15:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
869
870         * reflection.c: use the right array element type and handle
871         a null for a Type argument, too.
872
873 Tue Apr 29 15:46:00 CEST 2003 Paolo Molaro <lupus@ximian.com>
874
875         * reflection.c: handle arrays as arguments to custom attributes.
876
877 Tue Apr 29 11:43:01 CEST 2003 Paolo Molaro <lupus@ximian.com>
878
879         * reflection.c: handle a string value in a custom attr
880         ctor that takes an object.
881
882 2003-04-29  Dietmar Maurer  <dietmar@ximian.com>
883
884         * marshal.c (mono_mb_emit_restore_result): support MONO_TYPE_PTR
885         (fix bug #42063)
886
887 2003-04-28  Zoltan Varga  <vargaz@freemail.hu>
888
889         * icall.c (ves_icall_Type_GetNestedType): Fixed warnings.
890
891 2003-04-27  Martin Baulig  <martin@ximian.com>
892
893         * mono-debug-debugger.h (MonoDebuggerEvent): Renamed
894         MONO_DEBUGGER_EVENT_BREAKPOINT_TRAMPOLINE to
895         MONO_DEBUGGER_EVENT_BREAKPOINT.
896         (mono_breakpoint_trampoline_code): Removed.
897         (mono_debugger_event_handler): The last argument is now a
898         `guint32'.
899         (mono_debugger_insert_breakpoint_full): Removed the
900         `use_trampoline' argument.
901         (mono_debugger_method_has_breakpoint): Likewise.
902         (mono_debugger_trampoline_breakpoint_callback): Renamed to
903         mono_debugger_breakpoint_callback(); take the method and
904         breakpoint number as arguments.
905
906 Sat Apr 26 19:25:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
907
908         * metadata.c: fix off by one when loading parameters attributes.
909
910 2003-04-24  Martin Baulig  <martin@ximian.com>
911
912         * mono-debug-debugger.c (mono_debugger_io_layer): Put this back.
913
914 2003-04-24  Martin Baulig  <martin@ximian.com>
915
916         * mono-debug-debugger.c: Moved all code which interacts with the
917         Mono Debugger here.
918
919         * debug-mono-symfile.c: This code now just deals with the symbol
920         file itself, the debugger code is now in mono-debug-debugger.c.
921
922 2003-04-23  Martin Baulig  <martin@ximian.com>
923
924         * mono-debug.c (mono_debug_source_location_from_il_offset):
925         New method; like mono_debug_source_location_from_address(), but
926         takes an IL offset instead of a machine address.
927
928 2003-04-23  Martin Baulig  <martin@ximian.com>
929
930         * debug-mono-symfile.h (MonoDebugLineNumberEntry): Removed the
931         `line' field; this is now computed by the debugger.
932
933 2003-04-23  Martin Baulig  <martin@ximian.com>
934
935         * mono-debug.[ch]: New files.  This is the new debugging interface.
936
937         * mono-debug-debugger.[ch]: New files.  Moved all code which
938         interacts with the Mono Debugger here.
939
940 2003-04-22  Dietmar Maurer  <dietmar@ximian.com>
941
942         * domain.c (mono_init): initialize mono_defaults.monitor_class
943
944 2003-04-21  Miguel de Icaza  <miguel@ximian.com>
945
946         * reflection.c (method_encode_code): Add a spicy exception to help
947         future compiler authors.
948
949 2003-04-21  Martin Baulig  <martin@ximian.com>
950
951         * icall.c
952         (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
953         Make this work with relative pathnames; g_filename_to_uri() needs
954         an absolute filename.
955
956 2003-04-18  Zoltan Varga  <vargaz@freemail.hu>
957
958         * icall.c: Track name changes in Object and ValueType.
959
960 2003-04-18  Dietmar Maurer  <dietmar@ximian.com>
961
962         * metadata.c (mono_type_stack_size): size should be a multiple of
963         sizeof (gpointer)
964
965 2003-04-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
966
967         * gc.c:
968         (internal_domain_finalize): moved into mono_domain_finalize. No need
969         to create another thread because the finalizers will be run in the
970         finalizer thread.
971         
972         (ves_icall_System_GC_WaitForPendingFinalizers): implemented.
973         (finalizer_notify): if shutting down, wait 2 seconds for the finalizers
974         to be run (MS does this too).
975
976 2003-04-17  Zoltan Varga  <vargaz@freemail.hu>
977
978         * object.c (mono_class_compute_gc_descriptor): Update comment.
979
980         * loader.h marshal.h marshal.c: Added synchronized method wrappers.
981
982         * image.h: Add synchronized wrapper cache.
983
984         * image.c (do_mono_image_open): Initialize cache.
985
986         * reflection.c (create_dynamic_mono_image): Initialize cache.
987
988 2003-04-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
989
990         * icall.c: patch by Jerome Laban <jlaban@wanadoo.fr> that fixes
991         ves_icall_System_Buffer_ByteLengthInternal.
992
993 Tue Apr 15 13:56:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
994
995         * reflection.c: setup klass->nested_in earlier. Allow
996         a dash in the assembly name.
997
998 2003-04-15  Dietmar Maurer  <dietmar@ximian.com>
999
1000         * metadata.c (mono_type_to_unmanaged): dont access
1001         type->data.klass for MONO_TYPE_OBJECT
1002         (mono_type_to_unmanaged): consider System.Delegate class
1003
1004 Tue Apr 15 11:16:05 CEST 2003 Paolo Molaro <lupus@ximian.com>
1005
1006         * class.c: just setup supertypes in the proper place instead of
1007         initializing the full element class for arrays.
1008
1009 Tue Apr 15 11:03:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
1010
1011         * class.c: ensure the element class of arrays is initialized.
1012         Setup the supertype info for array classes, too.
1013
1014 2003-04-14  Miguel de Icaza  <miguel@ximian.com>
1015
1016         * icall.c (ves_icall_Type_GetNestedType): Add new internal call.
1017
1018 2003-04-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1019
1020         * Makefile.am: re-added -m option when running cygpath. This way,
1021         MONO_ASSEMBLIES and MONO_CFG_DIR will contain '/' as directory
1022         separator.
1023         * mono-config.c: same codepath for locating mono config file for WIN32
1024         and the rest.
1025         * assembly.c: if mono_assembly_setrootdir is called, don't override
1026         the value set.
1027
1028 2003-04-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1029
1030         * Makefile.am: patch by Urs Muff <umuff@quark.com> that fixes
1031         MONO_ASSEMBLIES variable.
1032
1033 Fri Apr 11 12:44:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
1034
1035         * icall.c: added Assembly::GetNamespaces() icall.
1036
1037 2003-04-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1038
1039         * reflection.c: fix from Jaak <jaak@zd.com.pl>.
1040
1041 2003-04-10  Lluis Sanchez Gual  <lluis@ideary.com>
1042
1043         * appdomain.c,appdomain.h,icall.c: Added internal method that returns the process guid
1044         * object.c: fixed bug in the construction of vtable for proxies
1045
1046 2003-04-10  Zoltan Varga  <vargaz@freemail.hu>
1047
1048         * object.c (mono_array_new): Mark mono_array_new as an icall.
1049
1050 2003-04-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1051
1052         * class.c: fixed test for public method when overriding interfaces.
1053         Closes bug #40970.
1054
1055 Wed Apr 9 15:19:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1056
1057         * appdomain.h, domain.c: added mono_domain_foreach() to
1058         be able to access the currently loaded appdomains.
1059         * object.c: make string interning work across sppdomains.
1060         Mark some functions for use as icalls.
1061
1062 2003-04-09  Zoltan Varga  <vargaz@freemail.hu>
1063
1064         * class.c reflection.c: Fix memory leaks reported by ccmalloc.
1065
1066         * reflection.h reflection.c: Allocate long living data using 
1067         GC_MALLOC_ATOMIC so the collector does not need to scan it.
1068
1069         * reflection.c: Double the allocation size in streams instead of
1070         increasing it, to prevent unneccesary copying on large assemblies.
1071         
1072         * reflection.c (mono_reflection_create_runtime_class): Avoid vtable
1073         creation if the assembly does not have the Run flag set.
1074
1075 Tue Apr 8 11:19:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1076
1077         * class.h: avoid the C++ keywords in header files (Jerome Laban
1078         spotted and fixed this).
1079
1080 2003-04-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1081
1082         * object.c:
1083         (mono_unhandled_exception): fill in the arguments for the
1084         UnhandledException event. Only trigger that event for the default
1085         domain (as MS does).
1086
1087 2003-04-04  Zoltan Varga  <vargaz@freemail.hu>
1088
1089         * object.c: Improve typed allocation stuff based on suggestions from
1090         Paolo. Also turn it on if the GC library supports it.
1091
1092 2003-04-03  Zoltan Varga  <vargaz@freemail.hu>
1093
1094         * object.c object.h class.h: Added experimental typed allocation
1095         facility using the interfaces in gc_gcj.h.
1096
1097         * os/gc_wrapper.h: Added new include files.
1098         
1099 2003-04-03  Martin Baulig  <martin@ximian.com>
1100
1101         All the following changes are conditional to `WITH_INCLUDED_LIBGC'
1102         which is not yet enabled by default.
1103
1104         * gc.c (mono_gc_init): Set the gc_thread_vtable to our thread
1105         functions.
1106         (mono_gc_lock, mono_gc_unlock): New static functions.
1107
1108         * threads.c (mono_gc_stop_world, mono_gc_start_world): New public
1109         functions; stop/start the world for the garbage collector.  This
1110         is using the windows API; we need to complete the SuspendThread()/
1111         ResumeThread() implementation in the io-layer to make this work on Unix.
1112         (mono_gc_push_all_stacks): New public function; tells the garbage
1113         collector about the stack pointers from all managed threads.
1114
1115 2003-04-03  Martin Baulig  <martin@ximian.com>
1116
1117         * object.h (MonoThread): Added `gpointer stack_ptr'.
1118
1119         * threads.c (start_wrapper): Save the stack pointer in `stack_ptr'.
1120
1121 2003-04-03  Martin Baulig  <martin@ximian.com>
1122
1123         * Makefile.am: It's called `cygpath -w', not `cygpath -m'.
1124
1125 2003-04-03  Zoltan Varga  <vargaz@freemail.hu>
1126
1127         * reflection.c (typebuilder_setup_fields): Initialize field.first and
1128         field.last.
1129
1130 2003-04-02  Miguel de Icaza  <miguel@ximian.com>
1131
1132         * loader.c (mono_lookup_internal_call): Report the corlib that is
1133         out of sync.
1134
1135 2003-03-05  Aleksey Demakov <avd@openlinksw.com>
1136
1137         * icall.c (ves_icall_type_GetTypeCode): fixed check for
1138         System.DBNull (it's class not valuetype).
1139
1140 Wed Apr 2 18:37:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
1141
1142         * reflection.c: set table_idx in MonoReflectionArrayMethod object even 
1143         if the array method was already assigned a token (fixes bug#40646).
1144
1145 2003-04-02  Zoltan Varga  <vargaz@freemail.hu>
1146
1147         * reflection.c (mono_reflection_get_type): Attempt type resolve even
1148         if no assembly is given.
1149
1150 2003-04-01  Miguel de Icaza  <miguel@ximian.com>
1151
1152         * metadata.h: Added the new tables.
1153
1154         * row-indexes.h: Added definitions for new tables.
1155
1156         * metadata.c: Add schemas for new tables, and add support for
1157         computing the sizes of them.
1158
1159         * class.c: Update for handling the new type cases.
1160
1161 2003-04-01  Dietmar Maurer  <dietmar@ximian.com>
1162
1163         * metadata.h (MONO_TYPE_IS_VOID): new macro
1164
1165 2003-03-31  Martin Baulig  <martin@ximian.com>
1166
1167         * threads.h (MonoThreadCallbacks): Added `thread_created'.
1168
1169         * threads.c (mono_thread_new_init): Call `thread_created' in the
1170         mono_thread_callbacks.
1171
1172 2003-03-31  Lluis Sanchez Gual <lluis@ideary.com>
1173
1174         * loader.h: added marshalbyrefobject_class to mono_defaults
1175         * domain.c: added initialization of mono_defaults.marshalbyrefobject_class 
1176         * icall.c: ves_icall_InternalExecute: fixed bug in field setter and in the
1177           generation of output parameters.
1178           ves_icall_Remoting_RealProxy_GetTransparentProxy: added support for interfaces.
1179         * marshal.c: mono_remoting_wrapper(): avoided call through proxy when the type is
1180           contextbound and the target object belongs to the context of the caller.
1181         * object.h: added context and unwrapped_server variables in MonoRealProxy.
1182         * object.c: Implemented support for interfaces and abstract classes
1183           in mono_class_proxy_vtable. Fixed several methods to avoid unneeded calls through
1184           proxy. Fixed problem when dealing with output parameters in mono_runtime_invoke_array.
1185
1186 2003-03-30  Zoltan Varga  <vargaz@freemail.hu>
1187
1188         * class.h class.c (mono_class_is_subclass_of): New function.
1189         
1190         * icall.c (ves_icall_System_Array_FastCopy): Added optimized copy
1191         routines for most common case (calls from ArrayList::ToArray).
1192
1193         * icall.c (ves_icall_System_Environment_Exit): Call profiler shutdown 
1194         routine so programs which call Environment::Exit() can be profiled.
1195
1196         * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle): 
1197         Added MONO_ARCH_SAVE_REGS.
1198
1199         * icall.c (ves_icall_type_is_subtype_of): Use new function.
1200
1201 2003-03-29  Miguel de Icaza  <miguel@ximian.com>
1202
1203         * blob.h: Add a couple of new MonoType types definitions.
1204
1205         * tabledefs.h: Add a couple of new call convs.
1206
1207 2003-03-27  Zoltan Varga  <vargaz@freemail.h>
1208
1209         * reflection.h (MonoReflectionDynamicAssembly): track changes in
1210         the layout of the class.
1211
1212         * reflection.c (alloc_table): double the size on overflow to avoid
1213         unnecessary copying.
1214
1215         * reflection.h reflection.c: If AssemblyBuilderAccess is Run, then
1216         avoid filling out metadata tables and blobs. Also set mb->ilgen to
1217         null so it can be garbage collected.
1218         
1219 2003-03-27  Zoltan Varga  <vargaz@freemail.hu>
1220
1221         * reflection.c (mono_reflection_get_type): Return the resolved type
1222         only if it is in the assembly we searched.
1223
1224         * reflection.c (ensure_runtime_vtable): Initialize method slots.
1225
1226         * class.c (mono_class_setup_vtable): Set the slot of the overriding
1227         method.
1228
1229 2003-03-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1230
1231         * appdomain.c:
1232         (set_domain_search_path): allow 'file://blah'. It's an invalid URI,
1233         the right one is 'file:///blah', but MS allows it.
1234         * assembly.c:
1235         (mono_assembly_open): allow 'file://blah'
1236
1237         Fixes bug #40306. Thanks to Mitko Iliev (imitko@openlinksw.co.uk).
1238
1239 2003-03-26  Aleksey Demakov <avd@openlinksw.com>
1240
1241         * socket-io.c: fixes bug #40310.
1242
1243 2003-03-25  Zoltan Varga  <vargaz@freemail.hu>
1244
1245         * reflection.c (mono_reflection_parse_type): handle deeply nested
1246         types correctly.
1247
1248         * reflection.c (mono_image_create_token): Use unique token values
1249         since they will be put into a hash table.
1250
1251         * class.c (mono_class_setup_vtable): If a method occurs in more than
1252         one place in the vtable, and it gets overriden, then change the
1253         other occurances too.
1254
1255         * marshal.c (mono_marshal_get_managed_wrapper): Added support for
1256         object as return type.
1257
1258 2003-03-22  Pedro Martínez Juliá  <yoros@wanadoo.es>
1259
1260         * icall.c: Deleted "ToString" implementation for double and float
1261         because they are full implemented in managed code.
1262
1263 Wed Mar 19 18:05:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1264
1265         * reflection.c, reflection.h: implemented and exported functions
1266         to retrieve info about custom attributes.
1267
1268 2003-03-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1269
1270         * appdomain.c: moved Uri handling to assembly.c
1271         * assembly.c: use g_filename_from_uri (). This makes assembly.LoadFrom
1272         work when using a file Uri in *nix and windows.
1273
1274         * icall.c: fixed Assembly.CodeBase to return a valid Uri. The same for
1275         GetReferencedAssemblies.
1276
1277 2003-03-18  Dick Porter  <dick@ximian.com>
1278
1279         * icall.c: Rename a couple of internal calls
1280
1281         * threads.c: Set the thread state to Stopped when a thread exits.
1282         Fixes bug 39377.
1283
1284 2003-03-17  Zoltan Varga  <vargaz@freemail.hu>
1285
1286         * icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
1287         New icall.
1288
1289         * object.c (mono_class_vtable): fix warning.
1290
1291 2003-03-17  Zoltan Varga  <vargaz@freemail.hu>  
1292
1293         * icall.c (ves_icall_type_is_subtype_of): Avoid vtable creation.
1294
1295         * reflection.c (mono_blob_entry_hash): Avoid reading uninitialized
1296         memory.
1297         (method_encode_clauses): Create exception info structures in the right
1298         order.
1299         (mono_reflection_setup_internal_class): Initialize supertypes field.
1300
1301         * class.c object.c: Handle interfaces which implement other interfaces 
1302         correctly.
1303
1304         * class.h class.c: Move the supertypes array initialization code into 
1305         a separate function so it can be used for dynamic types too. Also call
1306         it earlier, in mono_class_init(), since it can be used before the
1307         type is initialized.
1308
1309 2003-03-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1310
1311         * Makefile.am:
1312         * assembly.c:
1313         * icall.c: make MONO_ASSEMBLIES and MONO_CFG_DIR work on windows.
1314
1315         * appdomain.c:
1316         * appdomain.h:
1317         * marshal.c:
1318         * object.c: remove warnings.
1319
1320 2003-03-13  Martin Baulig  <martin@ximian.com>
1321
1322         * debug-mono-symfile.h (MonoSymbolFileLexicalBlockEntry): New type.
1323         (MonoDebugLexicalBlockEntry): New types.
1324
1325         * debug-mono-symfile.c
1326         (_mono_debug_address_from_il_offset): Moved here from ../jit/debug.c.
1327
1328 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1329
1330         * process.c: ret can be any non-zero value accroding to MS doc.
1331
1332 2003-03-07  Miguel de Icaza  <miguel@ximian.com>
1333
1334         * class.c (mono_marshal_load_type_info): Fix buglet:  Noticed when
1335         fixing a warning for a miss-used prototype, would have cause
1336         random memory corruption.
1337
1338 2003-03-07  Martin Baulig  <martin@ximian.com>
1339
1340         * marshal.c (mono_marshal_free_array): That "TESTFREE %p" was
1341         getting really annoying ....
1342
1343 2003-03-07  Zoltan Varga  <vargaz@freemail.hu>
1344
1345         * reflection.c (fixup_method): added support for array methods.
1346
1347 Tue Mar 4 18:03:27 CET 2003 Paolo Molaro <lupus@ximian.com>
1348
1349         * socket-io.c:  handle case when AF_INET6 and AF_IPX are not defined
1350         (pointed out by Michael Adams).
1351
1352 2003-03-04  Dick Porter  <dick@ximian.com>
1353
1354         * icall.c: Temporarily reverted the Double and Single ToString()
1355         change, because it broke nunit.
1356
1357 Tue Mar 4 12:40:58 CET 2003 Paolo Molaro <lupus@ximian.com>
1358
1359         * object.h, threads.h: make include files compatible with C++
1360         (patch by Jerome Laban <jlaban@wanadoo.fr>).
1361
1362 2003-03-04  Pedro Martínez Juliá  <yoros@wanadoo.es>
1363
1364         * icall.c: Erased ToString helper functions for Double and Single.
1365         Now, that implementations ar all in managed code (Double and Single
1366         Formatters).
1367
1368 2003-03-03  Lluis Sanchez Gual  <lluis@ideary.com>
1369
1370         * appdomain.c: Added method for initializing the default context of
1371         a domain. Added internal call for getting the default context.
1372         * appdomain.h: Added context variable in MonoDomain struct.
1373         * domain.c: mono_domain_set also sets the default context of the domain
1374         * icall.c: Mapped internal method InternalGetDefaultContext.
1375         * object.c: mono_object_get_virtual_method returns always a remoting
1376         wrapper if the object is a transparent proxy.
1377         mono_runtime_invoke_array: when creating an object by calling the
1378         constructor, if the created object is a proxy, then the constructor should
1379         be called using the a remoting wrapper.
1380
1381 2003-03-03  Dick Porter  <dick@ximian.com>
1382
1383         * socket-io.c (create_sockaddr_from_object): Rename sockaddr_un
1384         variable so it compiles on solaris.  Problem spotted by
1385         Christopher Taylor <ct@cs.clemson.edu>
1386
1387 2003-03-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1388
1389         * appdomain.c:
1390         (get_info_from_assembly_name): don't leak value.
1391
1392         * icall.c:
1393         (ves_icall_System_Reflection_Assembly_GetFilesInternal): initialize
1394         result.
1395
1396 Sat Mar 1 15:32:56 CET 2003 Paolo Molaro <lupus@ximian.com>
1397
1398         * assembly.c: export mono_image_load_references ().
1399         * class.c: handle function pointers. mono_class_from_name() now
1400         supports nested type names directly.
1401
1402 2003-02-28  Zoltan Varga  <vargaz@freemail.hu>
1403
1404         * reflection.h reflection.c: Encode already created dynamic methods 
1405         and fields correctly as a DEF instead of a REF.
1406
1407         * reflection.c: Get rid of the force_ref argument to 
1408         mono_image_typedef_or_ref since it was wrong in the first place.
1409
1410         * string-icalls.c: add error checking to string constructors according
1411         to the MSDN docs.
1412
1413         * reflection.c: Emit types in the order their TypeBuilders were 
1414         created. Previously, a new table index was assigned to each type before
1415         the tables were emitted. This was wrong because the signature blob
1416         might already refer to a type by its original table index.
1417
1418 2003-02-27  Zoltan Varga  <vargaz@freemail.hu>
1419
1420         * metadata.c (mono_metadata_nesting_typedef): fix bug in previous
1421         change.
1422         
1423 2003-02-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1424
1425         * Makefile.am: make assemblies dir have \ instead of / on windows.
1426
1427 2003-02-27  Zoltan Varga  <vargaz@freemail.hu>  
1428
1429         * metadata.c metadata.h (mono_metadata_nesting_typedef): changed to
1430         iterate over the NESTEDCLASS table using a linear search since the
1431         table is not guaranteed to be sorted by the secondary key.
1432
1433         * class.c (mono_class_create_from_typedef): fixed up call to
1434         mono_metadata_nesting_typedef.
1435         
1436 2003-02-27  Dietmar Maurer  <dietmar@ximian.com>
1437
1438         * marshal.c (mono_string_to_byvalstr): clear the memory as
1439         suggested by Jerome Laban <jlaban@wanadoo.fr>
1440
1441 2003-02-26  Dick Porter  <dick@ximian.com>
1442
1443         * process.c: Cope with padding in .rsrc blocks
1444
1445 2003-02-26  Dietmar Maurer  <dietmar@ximian.com>
1446
1447         * metadata.h: reverted the filter_len change, it breaks reflection
1448         
1449 2003-02-26  Dietmar Maurer  <dietmar@ximian.com>
1450
1451         * metadata.h: added a new field to store the filter_len
1452         
1453
1454 Tue Feb 25 10:56:16 CET 2003 Paolo Molaro <lupus@ximian.com>
1455
1456         * reflection.c: handle custom attributes for types and members
1457         created with Reflection.Emit (bug#38422).
1458
1459 2003-02-22  Zoltan Varga  <vargaz@freemail.hu>
1460
1461         * reflection.c: define RTSpecialName automatically for constructors for
1462         compatibility with MS.NET.
1463
1464         * reflection.c (mono_reflection_create_runtime_class): initialize
1465         nested_in field of dynamically created classes.
1466
1467 2003-02-22  Martin Baulig  <martin@ximian.com>
1468
1469         * debug-mono-symfile.h: Incremented version number.
1470
1471 2003-02-21  Zoltan Varga  <vargaz@freemail.hu>
1472
1473         * object.h icall.c process.c: fix warnings.
1474
1475 2003-02-21  Zoltan Varga  <vargaz@freemail.hu>
1476
1477         * appdomain.h appdomain.c:
1478         (mono_domain_try_type_resolve): split the 
1479         name_or_tb argument into a name and a tb argument.
1480         (mono_domain_has_type_resolve): new function to check whenever the
1481         application has registered a TypeResolve event handler.
1482         
1483         * icall.c reflection.h reflection.c: move the type resolve logic into
1484         mono_reflection_get_type () so it will be invoked when 
1485         Assembly::GetType () is called.
1486
1487         * reflection.c:
1488         (mono_reflection_get_type): renamed to get_type_internal.
1489         (mono_reflection_get_type): fixed type name generation so it works 
1490         for nested types too.
1491         (mono_reflection_get_type): call has_type_resolve () to avoid the 
1492         costly type name generation if there is no resolve event handler.
1493
1494 Fri Feb 21 11:36:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1495
1496         * class.c, image.c: load exported types from file references.
1497
1498 2003-02-19  Lluis Sanchez Gual  <lluis@ideary.com>
1499
1500         * appdomain.h: Added in MonoDomain a couple of MonoMethod* variables
1501           used to cache the managed methods used to create proxies and make 
1502           remote invocation of methods.
1503         * class.h: Added in MonoVTable a flag to indicate that a class needs 
1504           to be remotely created.
1505         * object.c: Modified the method mono_class_vtable(). It now initializes 
1506           the remote flag of the vtable. Modified mono_object_new_specific(), 
1507           so now it checks the remote flag.
1508         * icall.c: Added a couple of internal methods, one for enabling instance 
1509           creation interception for a type, and one for creating objects bypassing
1510           the remote check.
1511
1512 2003-02-18  Martin Baulig  <martin@ximian.com>
1513
1514         * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethodToken):
1515         New interncall to get a method's metadata token.
1516
1517         * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethodToken"):
1518         New interncall for the debugger.
1519
1520 2003-02-18  Dietmar Maurer  <dietmar@ximian.com>
1521
1522         * class.c (mono_class_setup_vtable): allocate supertype array
1523
1524 2003-02-18  Martin Baulig  <martin@ximian.com>
1525
1526         * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Added `has_this'.
1527
1528 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1529
1530         * reflection.c:
1531         (assembly_name_to_aname): jump over unknown properties (i've found
1532         something like: 'type, assembly, version=xxx, custom=null, public...',
1533         so now will ignore custom=null and still get the rest of the values).
1534
1535 2003-02-17  Dick Porter  <dick@ximian.com>
1536
1537         * threads.c: Have Thread.Start() wait for a semaphore to signal
1538         that the thread has set up all its local data.  This fixes bug
1539         34323, where Abort() raced the new thread's TLS data.
1540
1541         Also removes the handle_store() call from start_wrapper, because
1542         threads are now always created suspended and there is no longer a
1543         race between the parent and child threads to store the info.
1544
1545 Mon Feb 17 13:13:31 CET 2003 Paolo Molaro <lupus@ximian.com>
1546
1547         * image.c: explain the #- heap issue in a message, hopefully
1548         avoiding FAQs on mono-list.
1549
1550 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1551
1552         * icall.c:
1553         (GetEntryAssembly): if the domain has not invoked
1554         AppDomain.ExecuteAssembly yet, return the assembly of the default
1555         AppDomain.
1556
1557 2003-02-16  Zoltan Varga  <vargaz@freemail.hu>
1558
1559         * class.c (mono_ldtoken): make it work in dynamic assemblies.
1560
1561 Sun Feb 16 13:10:06 CET 2003 Paolo Molaro <lupus@ximian.com>
1562
1563         * metadata.c, reflection.c: simple speedup to type hash
1564         and equals code.
1565
1566 Sat Feb 15 15:15:03 CET 2003 Paolo Molaro <lupus@ximian.com>
1567
1568         * image.c, image.h, class.c, assembly.c: move module loading
1569         to MonoImage. When loading metadata, consider alignemnet from
1570         the start of metadata, not from the metadata address in memory.
1571
1572 2003-02-13  Zoltan Varga  <vargaz@freemail.hu>
1573
1574         * reflection.c (mono_reflection_get_custom_attrs): Added support for 
1575         AssemblyBuilder objects. Factored out custom attribute creation into
1576         a separate function.
1577         (create_custom_attr): new function to create custom attributes.
1578
1579 2003-02-12  Miguel de Icaza  <miguel@ximian.com>
1580
1581         * Makefile.am: Got tired of typing the full pathname to pedump.
1582         Until there is another option, am installing this.
1583
1584 2003-02-12  Dietmar Maurer  <dietmar@ximian.com>
1585
1586         * class.c (class_compute_field_layout): always set field->parent 
1587         (mono_ldtoken): use mono_defaults.fieldhandle_class;
1588
1589 2003-02-11  Dick Porter  <dick@ximian.com>
1590
1591         * threads-types.h:
1592         * monitor.c: Rewrote Monitor, making lock much faster and
1593         Pulse/Wait work as specified.  Also uses much fewer handles, and only
1594         creates them as needed.
1595
1596         * exception.c: Added SynchronizationLockException
1597
1598         * threads.c: Deleted old Monitor implementation.  The new one is
1599         in a new file.
1600
1601 Mon Feb 10 17:54:10 CET 2003 Paolo Molaro <lupus@ximian.com>
1602
1603         * class.c: handled TypedReference type code. Set the correct size for
1604         class data. Setup interface_offsets for interface classes, too.
1605
1606 2003-02-09  Martin Baulig  <martin@ximian.com>
1607
1608         * debug-mono-symfile.h: Reflect latest symbol writer changes.
1609
1610 Sun Feb 9 18:37:01 CET 2003 Paolo Molaro <lupus@ximian.com>
1611
1612         * loader.c: implemented MEMBERREF_PARENT_TYPEDEF.
1613         * metadata.c, reflection.c: missing MONO_TYPE_TYPEDBYREF handling.
1614         * object.c: fixed mono_object_get_virtual_method () for interfaces.
1615         * verify.c: check for code that runs after the end of the method.
1616
1617 2003-02-08  Pedro Martínez Juliá  <yoros@wanadoo.es>
1618
1619         * icall.c: Added "System.Math::Floor", "System.Math::Round" and
1620         "System.Math::Round2".
1621         * sysmath.h: Added Floor, Round and Round2 definitions.
1622         * sysmath.c: Modified certain functions that were not 100% compliant
1623         with MS.NET (math precision) and added the implementation of Floor,
1624         Round and Round2.
1625
1626 2003-02-07  Martin Baulig  <martin@ximian.com>
1627
1628         * debug-mono-symfile.c (mono_debug_symfile_add_method): Ignore interncalls.
1629
1630 2003-02-07  Martin Baulig  <martin@ximian.com>
1631
1632         * debug-mono-symfile.c: Reflected latest symwriter changes.
1633         (mono_debug_create_mono_symbol_file): Removed.
1634         (mono_debug_open_mono_symbol_file): Take an argument which
1635         specifies whether to create a dynamic symbol file.
1636
1637 2003-02-07  Dietmar Maurer  <dietmar@ximian.com>
1638
1639         * class.c (mono_class_from_mono_type): added MONO_TYPE_TYPEDBYREF
1640
1641 2003-02-05  Martin Baulig  <martin@ximian.com>
1642
1643         * reflection.c (mono_image_build_metadata): Make this public,
1644         protect it against being called multiple times, don't create
1645         resources and don't build the compressed metadata here.
1646         (mono_image_create_pefile): Do this here.
1647
1648         * icall.c
1649         ("System.Reflection.Emit.AssemblyBuilder::build_metadata"): Added.
1650
1651 2003-02-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1652
1653         * socket-io.c: fixed bug #36322.
1654
1655 2003-02-06  Piers Haken <piersh@friskit.com>
1656
1657         * appdomain.[ch]:
1658         * class.h:
1659         * debug-mono-symfile.c:
1660         * icall.c:
1661         * loader.c:
1662         * mono-config.c:
1663         * monosn.c:
1664         * reflection.c:
1665         * socket-io.c: warning cleanups
1666
1667 2003-02-06  Dietmar Maurer  <dietmar@ximian.com>
1668
1669         * marshal.c (mono_marshal_get_remoting_invoke_with_check): new
1670         function. works like remoting invoke, but does a check for the Proxy first.
1671
1672 2003-02-05  Miguel de Icaza  <miguel@ximian.com>
1673
1674         * appdomain.c (ves_icall_System_AppDomain_InternalUnload): Make it compiler.
1675
1676 2003-02-05  Dietmar Maurer  <dietmar@ximian.com>
1677
1678         * marshal.c (mono_marshal_get_native_wrapper): only allocate an
1679         array of pointers.
1680         (mono_marshal_get_ldfld_wrapper): only generate necessary ldfld wrappers.
1681         (mono_marshal_get_stfld_wrapper): only generate necessary stfld wrappers.
1682
1683         * object.c (mono_store_remote_field_new): used by the new jit
1684         instead of mono_store_remote_field
1685         (mono_load_remote_field_new): used by the new jit
1686         instead of mono_load_remote_field
1687
1688 2003-02-05  Patrik Torstensson
1689
1690         * appdomain.c: changed unload to take the domain id instead
1691         of domain
1692         
1693         * icall.c: changed icall for AppDomain.Unload to AppDomain.InternalUnload
1694
1695
1696 2003-02-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1697
1698         * appdomain.c: don't look for assemblies in ApplicationBase if
1699         PrivateBinPathProbe is set.
1700
1701 2003-02-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1702
1703         * object.c: make the first argument in main_args contain the absolute
1704         path to the assembly. Fixes bug #37511.
1705
1706 2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1707
1708         * icall.c: get correct UTC offset for countries not using daylight
1709         time saving. Fixes bug #30030.
1710
1711 2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1712
1713         * socket-io.c: support AF_UNIX and use the same layout as MS (bytes 0
1714         and 1 are the family).
1715
1716 2003-02-04  Dietmar Maurer  <dietmar@ximian.com>
1717
1718         * icall.c (ves_icall_InternalExecute): removed wrong assertion
1719
1720         * marshal.c (mono_marshal_get_remoting_invoke): generate valid IL
1721
1722 2003-02-04  Zoltan Varga  <vargaz@freemail.hu>
1723
1724         * reflection.c: added support for SignatureHelper tokens, which is
1725         needed by the Calli opcode.
1726
1727         * reflection.h: track changes to SignatureHelper class.
1728
1729         * metadata.c (mono_metadata_parse_signature): handle dynamic tokens.
1730
1731 2003-02-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1732
1733         * appdomain.c: fixed loading assemblies from PrivateBinPath.
1734
1735 2003-02-03  Patrik Torstensson
1736         * appdomain.[c|h], domain.c : 
1737          - Added support for getting a domain via domain id
1738          - Support for setting and getting domain from System.AppDomain 
1739            (used in cross appdomain channel)
1740          - Added support for get/set for a MonoAppContext on a thread 
1741            (Context class in System.Runtime.Remoting.Contexts),
1742          - Removed hack in Get/SetData and ExecuteAssembly.
1743         
1744         * icall.c : renamed GetTransparantProxy to InternalGetTransparantProxy to allow
1745         the managed world to get control when a proxy is created.
1746
1747         * icall.c (ves_icall_InternalExecute) : bug fix, must return empty array
1748         
1749 2003-02-03  Miguel de Icaza  <miguel@ximian.com>
1750
1751         * icall.c
1752         (ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
1753         Populate the codebase field as well.
1754
1755 2003-02-02  Martin Baulig  <martin@ximian.com>
1756
1757         * debug-mono-symfile.c
1758         (MonoSymbolFileMethodAddress): Added `wrapper_address' field.
1759         (mono_debug_symfile_add_method): Allow interncalls.
1760
1761 2003-01-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1762
1763         * icall.c: throw parse exception if strtod fails or the string is empty.
1764
1765 Fri Jan 31 16:09:48 CET 2003 Paolo Molaro <lupus@ximian.com>
1766
1767         * marshal.c: handle object type separately from defined
1768         class types.
1769
1770 Fri Jan 31 16:01:20 CET 2003 Paolo Molaro <lupus@ximian.com>
1771
1772         * marshal.c: handle NATIVE_LPSTR for strings when it's
1773         explicitly specified.
1774
1775 Fri Jan 31 11:51:43 CET 2003 Paolo Molaro <lupus@ximian.com>
1776
1777         * reflection.c, reflection.h, icall.c: setup the reflection
1778         handle cache for ModuleBuilders and AssemblyBuilders.
1779
1780 2003-01-30  Dietmar Maurer  <dietmar@ximian.com>
1781
1782         * reflection.c (reflection_methodbuilder_to_mono_method): set
1783         pinvoke flag
1784
1785 2003-01-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1786
1787         * icall.c: implemented ves_icall_MonoMethod_get_base_definition.
1788
1789 2003-01-29  Dick Porter  <dick@ximian.com>
1790
1791         * threads.c: No need for the fake_thread kludge now that Thread
1792         doesn't run a class constructor
1793         
1794 2003-01-29  Dick Porter  <dick@ximian.com>
1795
1796         * threads.c: Use g_direct_hash instead of the rather bogus
1797         g_int_hash
1798
1799 2003-01-29  Dietmar Maurer  <dietmar@ximian.com>
1800
1801         * marshal.c (mono_marshal_get_native_wrapper): add check for null
1802         (fix pinvoke12.exe)
1803         (mono_marshal_get_struct_to_ptr): generate valid IL code
1804         (mono_marshal_get_ptr_to_struct): generate valid IL code
1805         (*): correctly set sig->pinvoke, we need to memdup the signature
1806         to do that
1807
1808 Tue Jan 28 22:57:57 CET 2003 Paolo Molaro <lupus@ximian.com>
1809
1810         * marshal.c, marshal.h: use larger integers in mono_mb_emit_add_to_local()
1811         to avoid overflows (bug spotted and fixed by Jerome Laban <jlaban@wanadoo.fr>).
1812
1813 Tue Jan 28 18:55:19 CET 2003 Paolo Molaro <lupus@ximian.com>
1814
1815         * profiler.c: provide more callers information.
1816
1817 2003-01-28  Dietmar Maurer  <dietmar@ximian.com>
1818
1819         * marshal.c (mono_marshal_get_managed_wrapper): generate valid IL code
1820
1821         * appdomain.h:added fix from Patrik: _MonoAppDomain is a MBR object
1822
1823         * marshal.c (mono_marshal_get_native_wrapper): generate valid IL code
1824
1825 2003-01-27  Zoltan Varga  <vargaz@freemail.hu>
1826
1827         * icall.c: (ves_icall_System_CurrentTimeZone_GetTimeZoneData): raise an
1828         exception instead of going into an infinite loop on dates which it 
1829         can't yet handle.
1830
1831         * string-icalls.c (ves_icall_System_String_get_Chars): raise 
1832         out-of-range exception if needed.
1833
1834         * class.c (mono_class_setup_vtable): allow a virtual method to provide
1835         an implementation for an interface method and to override an inherited
1836         method at the same time. 
1837         Imagine a scenario when a virtual method is used to override a
1838         virtual abstract method in a parent class, and this same method 
1839         provides an implementation for an method inherited from an interface. 
1840         In this case, the interface resolution code will set im->slot, which 
1841         means that the virtual method override pass will skip this method 
1842         which means a pointer to the abstract method inherited from the parent
1843         will remain in the vtable of this non-abstract class.
1844
1845         * class.c: (mono_class_setup_vtable): continue search for a real 
1846         method if only an abstract method is found.     
1847
1848 Mon Jan 27 17:12:19 CET 2003 Paolo Molaro <lupus@ximian.com>
1849
1850         * reflection.c: add size to encoding for ByValStr and ByValArray
1851         marshal blob (from "Jerome Laban" <jlaban@wanadoo.fr>).
1852
1853 2003-01-27  Zoltan Varga  <vargaz@freemail.hu>
1854
1855         * class.c (mono_class_setup_vtable): pass the override info as an
1856         argument.
1857
1858         * class.c (mono_class_setup_vtable): set the slot of overriding methods
1859         correctly.
1860         
1861         * reflection.c (ensure_runtime_vtable); add support for method 
1862         overrides.
1863         
1864 2003-01-27  Zoltan Varga  <vargaz@freemail.hu>
1865
1866         * reflection.c (resolution_scope_from_image): Hack to work to work with
1867         dynamic assemblies.
1868
1869         * reflection.c (mono_image_typedef_or_ref): renamed to ..._aux and 
1870         added a 'force_ref' argument to force this function to allways return 
1871         a TypeRef. This is needed by mono_image_get_memberref_token ().
1872         
1873 2003-01-27  Zoltan Varga  <vargaz@freemail.hu>
1874
1875         * reflection.c (mono_image_get_type_info): interfaces really don't have
1876         a parent.
1877
1878         * reflection.c (mono_image_basic_init): fill out missing fields of
1879         image structure.
1880
1881         * reflection.c (mono_image_basic_init): Invoke assembly load hooks for 
1882         dynamic assemblies. This is required so dynamic assemblies show up in
1883         AppDomain.GetAssemblies (), emit an AssembyLoadEvent, gets searched by
1884         Type::GetType() etc. This is consistent with MS behaviour.
1885
1886         * image.c image.h reflection.c: add newly created classes to the name 
1887         cache so mono_class_get () will find them.      
1888
1889 2003-01-27  Zoltan Varga  <vargaz@freemail.hu>
1890
1891         First part of changes to get IKVM.NET running under mono.
1892         
1893         * appdomain.h, appdomain.c: added new function 
1894         mono_domain_try_type_resolve() which will emit TypeResolve events. 
1895         This function will call AppDomain::DoTypeResolve to do the actual work.
1896
1897         * class.h, class.c, loader.c, object.c, reflection.h, reflection.c: 
1898         moved existing code dealing with dynamic tokens to a new function 
1899         called mono_reflection_lookup_dynamic_token (). This function will 
1900         raise TypeResolve events when appropriate. Since reflection.c is not 
1901         part of libmetadata, a new hook function called 
1902         mono_lookup_dynamic_token() is added to class.c which will call this.
1903
1904         * assembly.h assembly.c: make the invoke_load_hook function public,
1905         so it can be called for dynamic assemblies.
1906
1907         * icall.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor): skip interfaces since they do not have initializers.
1908
1909         * icall.c (ves_icall_type_from_name): emit a TypeResolve event if the 
1910         type isn't found.
1911
1912         * reflection.c reflection.h: change MonoDynamicAssembly.tokens to a 
1913         MonoGHashTable, since it contains pointers to objects which the GC 
1914         needs to track.
1915
1916         * assembly.c (search_loaded): remove unused variable.
1917         
1918 Mon Jan 27 12:18:45 CET 2003 Paolo Molaro <lupus@ximian.com>
1919
1920         * object.c: fixed issue exposed by gcc-generated IL programs
1921         that use RVA data for pointers.
1922
1923 2003-01-25  Martin Baulig  <martin@ximian.com>
1924
1925         * threads.c (start_wrapper): Moved the initialization of
1926         `start_func' above the mono_new_thread_init() call to which we
1927         pass it as argument.
1928
1929 2003-01-24  Martin Baulig  <martin@ximian.com>
1930
1931         * threads.h (MonoThreadCallbacks): Pass the thread ID instead of
1932         the MonoThread pointer.
1933
1934 2003-01-21  Miguel de Icaza  <miguel@ximian.com>
1935
1936         * icall.c: Rename `PowImpl' to Pow.
1937
1938 2003-01-23  Dick Porter  <dick@ximian.com>
1939
1940         * threads.c (start_wrapper): Create a Thread object if needed, so
1941         the Main() thread can do the class initialisation in a subthread
1942         that has been set up to allow managed code execution.
1943
1944         Pass the thread ID instead of the MonoThread pointer to the thread
1945         start and attach callbacks.  This change is required, because the
1946         jit thread start callback must be called _before_ the Thread
1947         object can be created.
1948         
1949         (mono_thread_init): Removed much object creation code that is no
1950         longer needed.  No managed code is called from here now.
1951
1952         * object.c (mono_runtime_exec_managed_code): Create a subthread
1953         for Main, and call back to the runtime to use it.
1954         Set the exit code when Main exits.
1955
1956         * gc.c: Make sure domain finalisation happens in a subthread.
1957         Re-enable threaded GC, fixing bug 31333 (again).
1958
1959         * environment.c: System.Environment internall calls (so far just
1960         ExitCode is here, the others are still in icall.c)
1961
1962         * appdomain.c (mono_runtime_cleanup): All threads running managed
1963         code should have finished before mono_runtime_cleanup() is
1964         reached, so no need to clean up threads.
1965
1966 2003-01-22  Martin Baulig  <martin@ximian.com>
1967
1968         * appdomain.h (MonoThreadStartCB): Added `MonoThread *thread' and
1969         `gpointer func' arguments.      
1970         (MonoThreadAttachCB): New typedef; like the old MonoThreadStartCB,
1971         but added `MonoThread *thread' argument.
1972         (mono_runtime_init): The last argument is now a MonoThreadAttachCB.
1973
1974         * threads.c (mono_new_thread_init): Added `gpointer func' argument
1975         and pass it to the mono_thread_start_cb callback.
1976         (mono_install_thread_callbacks): New public function to install a
1977         set of callbacks which are set by the debugger.
1978         (mono_thread_init): The last argument is now a MonoThreadAttachCB.
1979
1980 2003-01-22  Martin Baulig  <martin@ximian.com>
1981
1982         * Makefile.am: Install debug-mono-symfile.h.
1983
1984 2003-01-21  Aleksey Demakov <avd@openlinksw.com>
1985
1986         * marshal.c: fixed copy_from_managed and copy_to_unmanaged for 0 length.
1987
1988 2003-01-21  Dietmar Maurer  <dietmar@ximian.com>
1989
1990         * added the following fix from Jackson Harper <jackson@latitudegeo.com>
1991         * class.c (mono_ptr_class_get): correctly set access levels of pointers
1992         (mono_array_class_get): correctly set access levels of arrays
1993
1994 2003-01-20      Patrik Torstensson
1995         * image.h (MonoAssemblyName): changed major, minor, build, revision
1996         from signed to unsigned.
1997
1998 2003-01-20  sean kasun <skasun@azstarnet.com>
1999
2000         * reflection.c (load_cattr_value): Now this handles
2001         MONO_TYPE_SZARRAY.  Fixes bug #35629
2002
2003 2003-01-20  Miguel de Icaza  <miguel@ximian.com>
2004
2005         * marshal.c (emit_struct_conv): Handle MONO_TYPE_PTR as an
2006         integer value
2007
2008 2003-01-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2009
2010         * decimal.c: fixed bug #26056.
2011
2012 2003-01-17  Martin Baulig  <martin@ximian.com>
2013
2014         * gc.c: Raise an ExecutionEngineException instead of using g_error().
2015
2016 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2017
2018         * exception.[ch]:
2019         (mono_get_exception_type_initialization): new function.
2020
2021         * object.c: throw a TypeInitializationException when an exception is
2022         thrown invoking the class constructor.
2023
2024 2003-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2025
2026         * reflection.c: fixed attribute reading.
2027
2028 2003-01-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2029
2030         * icall.c:
2031         (ves_icall_type_from_name): make it work as MS. Ie, if no assembly name
2032         provided, look for the type in the calling assembly and then in
2033         mscorlib; if the assembly name is provided, only try that one.
2034
2035 Tue Jan 14 14:52:52 CET 2003 Paolo Molaro <lupus@ximian.com>
2036
2037         * object.c: register the vtable before there is a chance it's
2038         queried again recursively.
2039
2040 2003-01-13  Duncan Mak  <duncan@ximian.com>
2041
2042         * Makefile.am (libmonoruntime_la_SOURCES): Change gc.h to
2043         gc-internal.h. 
2044         
2045 2003-01-12  Patrik Torstensson <totte@race-x-change.com>
2046
2047         * string-icall.[c|h], icall.c: Added support for CompareOrdinal mode
2048
2049 2003-01-11  Martin Baulig  <martin@ximian.com>
2050
2051         * debug-mono-symfile.h (MONO_SYMBOL_FILE_DYNAMIC_VERSION): Incremented
2052         this to 20 for the release.
2053
2054 2003-01-10  Dietmar Maurer  <dietmar@ximian.com>
2055
2056         * marshal.c (emit_struct_conv): added support for EXPLICIT_LAYOUT
2057
2058         * loader.c (mono_method_get_marshal_info): bug fix
2059
2060         * marshal.c (mono_marshal_get_ptr_to_struct): don't convert
2061         structures with explicit layout
2062
2063 Fri Jan 10 15:58:09 CET 2003 Paolo Molaro <lupus@ximian.com>
2064
2065         * profiler.c: made the output more readable (and sorted). 
2066         Added caller information for the allocation profiler.
2067
2068 2003-01-09  Sebastien Pouliot  <spouliot@videotron.ca>
2069
2070         * icall.c, rand.c, rand.h: Prepended RNG functions with Internal.
2071
2072 2003-01-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2073
2074         * icall.c: added ves_icall_System_Activator_CreateInstanceInternal. Used
2075         to get value types.
2076         
2077 Thu Jan 9 19:43:11 CET 2003 Paolo Molaro <lupus@ximian.com>
2078
2079         * object.c, profiler.h, profiler.c, profiler-private.h:
2080         Added object allocation profiler.
2081
2082 Thu Jan 9 16:17:00 CET 2003 Paolo Molaro <lupus@ximian.com>
2083
2084         * reflection.h, reflection.c: handle global methods.
2085         Compress blob entries.
2086
2087 Thu Jan 9 15:54:53 CET 2003 Paolo Molaro <lupus@ximian.com>
2088
2089         * marshal.c: fix compilation.
2090
2091 2003-01-09  Dietmar Maurer  <dietmar@ximian.com>
2092
2093         * loader.c (mono_method_get_marshal_info): impl.
2094
2095         * metadata.c (mono_metadata_field_info): use mono_metadata_get_marshal_info
2096
2097 2003-01-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2098
2099         * icall.c: applied fix from Zoltan Varga that fixes Type.IsPrimitive
2100         for reference types.
2101
2102 Wed Jan 8 20:11:46 CET 2003 Paolo Molaro <lupus@ximian.com>
2103
2104         * loader.c: fixed off by one error in loaded parameter names.
2105
2106 2003-01-08  Dietmar Maurer  <dietmar@ximian.com>
2107
2108         * marshal.c (mono_marshal_get_icall_wrapper): like
2109         mono_marshal_get_native_wrapper, but simpler and use a MonoMethodSignature
2110         instead of a MonoMethod.
2111
2112 2003-01-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2113
2114         * decimal.c: fixed bug #36537.
2115
2116 Mon Jan 6 19:37:59 CET 2003 Paolo Molaro <lupus@ximian.com>
2117
2118         * marshal.c: throw a missing method exception if a
2119         P/Invoke method is not found.
2120
2121 Sun Jan 5 11:57:09 CET 2003 Paolo Molaro <lupus@ximian.com>
2122
2123         * icall.c: allow a null this for constructors.
2124
2125 Sat Jan 4 18:28:42 CET 2003 Paolo Molaro <lupus@ximian.com>
2126
2127         * icall.c: raise the proper exceptions if the arguments to the
2128         internal Invoke are incorrect.
2129
2130 2003-01-03  Dietmar Maurer  <dietmar@ximian.com>
2131
2132         * marshal.c (mono_marshal_get_ptr_to_struct): code cleanups
2133
2134 2003-01-03  Martin Baulig  <martin@ximian.com>
2135
2136         * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2137
2138 2002-12-31  Martin Baulig  <martin@ximian.com>
2139
2140         * debug-mono-symfile.c: Completely rewrote the type section.
2141         Instead of using individual malloc()ed fields, we use one big
2142         continuous memory area and offsets into this area.
2143         See the comments in the source code for details.
2144
2145 2002-12-30  Martin Baulig  <martin@ximian.com>
2146
2147         * debug-mono-symfile.h (MonoDebugTypeInfo): Renamed to MonoDebugClassInfo.
2148
2149 2002-12-30  Martin Baulig  <martin@ximian.com>
2150
2151         * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Include the
2152         line number table in this data blob instead of using an external
2153         pointer.
2154
2155 2002-12-28  Martin Baulig  <martin@ximian.com>
2156
2157         * debug-mono-symfile.h: Increment MONO_SYMBOL_FILE_DYNAMIC_VERSION.
2158
2159 2002-12-22  Rachel Hestilow  <hestilow@ximian.com>
2160
2161         * marshal.c (mono_marshal_get_runtime_invoke): Support MONO_TYPE_CHAR
2162         as a boxed return type.
2163
2164 2002-12-21  Miguel de Icaza  <miguel@ximian.com>
2165
2166         * appdomain.c
2167         (ves_icall_System_AppDomainSetup_InitAppDomainSetup): Use
2168         g_build_filename to properly get separators on the filename created.
2169
2170         * object.h: Small change, introduce MonoMarshalByRefObject to
2171         track the layout of that structure in the C# universe as we make
2172         changes there.
2173
2174 Thu Dec 19 16:23:19 CET 2002 Paolo Molaro <lupus@ximian.com>
2175
2176         * object.c: removed assert to allow static fields on interfaces.
2177         * loader.c: a TypeSpec may be used for any type, not just arrays.
2178
2179 Thu Dec 19 14:19:42 CET 2002 Paolo Molaro <lupus@ximian.com>
2180
2181         * class.c, class.h: added mono_class_array_element_size ().
2182         Ignore static methods in interfaces.
2183
2184 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2185
2186         * threads.c: fixed the build under cygwin.
2187
2188 Wed Dec 18 18:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
2189
2190         * reflection.c: handle nullref constants. Allocate keys for
2191         reflection handles with the GC.
2192
2193 Wed Dec 18 11:34:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2194
2195         * threads.c, threads.h: added mono_thread_get_abort_signal()
2196         to get a suitable signal for thread abort.
2197
2198 Wed Dec 18 11:26:18 CET 2002 Paolo Molaro <lupus@ximian.com>
2199
2200         * metadata.c: fix handling of ExportedType table.
2201
2202 2002-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2203
2204         * icall.c: added WriteWindowsDebugString internal call.
2205
2206 2002-12-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2207
2208         * reflection.h: added fields to match C# implementation.
2209
2210 2002-12-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2211
2212         * icall.c: patch from Jaroslaw Kowalski to fix Environment.MachineName.
2213
2214 2002-12-12  Juli Mallett  <jmallett@FreeBSD.org>
2215
2216         * gc.h, gc-internal.h: Rename header for GC internal calls to
2217         gc-internal.h from gc.h as to not clash with Boehm GC having its
2218         header installed as <gc.h> in outside include paths.
2219         * appdomain.c, gc.c, icall.c, object.c: Account for aforementioned.
2220         * threads.c: If SIGRTMIN is not defined, fall back to SIGUSR1.
2221
2222 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2223
2224         * icall.c: assign minor, build and revision in FillName.
2225
2226 2002-12-11  Zoltan Varga  <vargaz@freemail.hu>
2227
2228         * image.h reflection.h reflection.c class.h class.c loader.c object.c:
2229         Added support for running code generated by Reflection.Emit.
2230
2231 2002-12-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2232
2233         * appdomain.c: check for NULL argument in LoadFrom.
2234
2235 2002-12-10  Dick Porter  <dick@ximian.com>
2236
2237         * threads.c: WaitHandle fixes from Tum <tum@veridicus.com>
2238
2239 2002-12-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2240
2241         * appdomain.c: fix buglet when building exe file name.  Handle full
2242         assembly name (needed after latest changes to AssemblyName).
2243         * image.c:
2244         (mono_image_close): free some hashtables.
2245
2246 2002-12-05  Dietmar Maurer  <dietmar@ximian.com>
2247
2248         * threads.c (ves_icall_System_Threading_Thread_Abort): we use SIGRTMIN 
2249         instead of SIGUSR1, because SIGUSR1 is used by the pthread implementation 
2250         on some systems (redhat 7.3) 
2251
2252 Thu Dec 5 16:13:40 CET 2002 Paolo Molaro <lupus@ximian.com>
2253
2254         * threads.c: delete the critical section of a sync block,
2255         spotted and fixed by tum@veridicus.com (Thong (Tum) Nguyen).
2256
2257 Thu Dec 5 12:52:52 CET 2002 Paolo Molaro <lupus@ximian.com>
2258
2259         * pedump.c, cil-coff.h, monosn.c: add strong name cli header flag.
2260
2261 2002-12-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2262
2263         * appdomain.[ch]: handle the assembly preload event to try loading the
2264         assemblies using the paths we have in the current domain.
2265
2266         * assembly.[ch]: created an assembly preload hook that is called to try
2267         loading the assembly by other means that the ones provided here.
2268
2269         * domain.c: initialize the domain search path.
2270
2271         From now on, assemblies (TODO: except corlib and System) are loaded
2272         according to these rules when using mono_assembly_load ():
2273
2274                 1. It tries to load the assembly from the ApplicationBase
2275                 of the current domain appending .dll and .exe (TODO: have to
2276                 try loading from name/name.dll and name/name.exe).
2277
2278                 2. It tries the search path specified in PrivateBinPath for the
2279                 current domain (if any).
2280
2281                 3. Previous behavior.
2282
2283 Wed Dec 4 16:02:25 CET 2002 Paolo Molaro <lupus@ximian.com>
2284
2285         * icall.c: implemented GetInterfaceMap() related icall.
2286         * domain.c, loader.h: load MethodInfo in mono_defaults.
2287
2288 Wed Dec 4 11:02:30 CET 2002 Paolo Molaro <lupus@ximian.com>
2289
2290         * gc.c: disable the finalizer thread for now, untill all the issues
2291         with it are resolved.
2292
2293 Wed Dec 4 10:44:01 CET 2002 Paolo Molaro <lupus@ximian.com>
2294
2295         * string-icalls.c: handle embedded nulls in string ctor when the
2296         length is specified.
2297
2298 Tue Dec 3 19:29:20 CET 2002 Paolo Molaro <lupus@ximian.com>
2299
2300         * class.c: look for explicit interface implementation in parent
2301         classes, too.
2302
2303 2002-12-03  Dietmar Maurer  <dietmar@ximian.com>
2304
2305         * gc.c (run_finalize): dont run the finalizer (strange behaviour on rh7.3) 
2306
2307 Tue Dec 3 12:40:06 CET 2002 Paolo Molaro <lupus@ximian.com>
2308
2309         * gc.c: protect handles with a critical section.
2310
2311 2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2312
2313         * icall.c:
2314         (ves_icall_type_from_name): it now has throwOnError and ignoreCase
2315         parameters. If no assembly specified, try getting the type from all
2316         the assemblies in the current domain, else, load the assembly and get
2317         the type from it.
2318
2319 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2320
2321         * marshal.c: applied patch from Aleksey Demakov that fixes
2322         ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni.
2323
2324 2002-11-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2325
2326         * icall.c: fixed get_location.
2327
2328 2002-11-28  Dietmar Maurer  <dietmar@ximian.com>
2329
2330         * icall.c: moved MONO_ARCH_SAVE_REGS to the end of the
2331         declarations to make it work with older gcc. 
2332
2333         * loader.c (mono_get_method): set signature->pinvoke for native calls
2334
2335 2002-11-20  Dick Porter  <dick@ximian.com>
2336
2337         * threads.c (mono_thread_init): Set the main thread's handle
2338
2339 Tue Nov 19 14:15:34 CET 2002 Paolo Molaro <lupus@ximian.com>
2340
2341         * gc.c: allow compilation without GC support. Changed to match the
2342         mono coding style.
2343
2344 Mon Nov 18 18:41:51 CET 2002 Paolo Molaro <lupus@ximian.com>
2345
2346         * gc.c: don't start the finalizer thread if the env var GC_DONT_GC is set.
2347
2348 Mon Nov 18 16:35:22 CET 2002 Paolo Molaro <lupus@ximian.com>
2349
2350         * reflection.c: set a public key token on the core assemblies.
2351
2352 2002-11-18  Dick Porter  <dick@ximian.com>
2353
2354         * threads.c: Split out some thread initialisation so that other
2355         files can set the start callback function.
2356
2357         * gc.c: Run finalisers in a separate thread, to avoid stack
2358         overflow.  Fixes bug 31333.
2359
2360         * appdomain.c: Set up GC finalisation thread.
2361
2362         * reflection.c: 
2363         * object.c: 
2364         * domain.c: Use gc.h macros for GC_malloc
2365         
2366 2002-11-15  Dick Porter  <dick@ximian.com>
2367
2368         * threadpool.c: 
2369         * threads.c:
2370         * appdomain.c: Removed mono_runtime_init_with_attach(),
2371         mono_thread_create_arg(), and mono_thread_init_with_attach(), by
2372         merging the extra parameter with the existing function.  Removed
2373         unneeded code in mono_thread_attach().
2374
2375 2002-11-14  Dietmar Maurer  <dietmar@ximian.com>
2376
2377         * image.c (mono_image_loaded_by_guid): a method to get loaded
2378         images by guid. 
2379         (load_metadata_ptrs): we store the guid as string.
2380
2381 2002-11-11  Dietmar Maurer  <dietmar@ximian.com>
2382
2383         * assembly.c (mono_assembly_open): check the guid of aot compiled lib.
2384
2385         * metadata.c (mono_guid_to_string): imported method form Zoltan
2386         Varga (slightly modified)
2387
2388         * assembly.c (mono_assembly_open): load precompiled code
2389
2390         * loader.h (MonoMethod): we store the method token for use in the
2391         aot compiler. 
2392
2393 2002-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2394
2395         * appdomain.c: insert the loaded assemblies in the domain->assemblies in
2396         the hook function called when an assembly is loaded.
2397         
2398         * domain.c: Modified file.
2399         (mono_domain_assembly_load): removed hash table insertion of assemblies.
2400
2401         Fixes bug #33196.
2402
2403 2002-11-07  Miguel de Icaza  <miguel@ximian.com>
2404
2405         * reflection.c: Map PEFileKind to the value expected by the WinNT
2406         image loader. 
2407
2408 2002-11-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2409
2410         * rand.c: use /dev/urandom. If it fails to open, use the previous one.
2411         Read until the buffer is filled completely.
2412
2413 2002-11-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2414
2415         * icall.c: implemented MonoType.InternalGetEvent ().
2416
2417 2002-11-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2418
2419         * appdomain.c: implemented InitAppDomainSetup. Delayed
2420         AppDomain.SetupInformation until mono_runtime_exec_main, where we get
2421         the entry_assembly.
2422
2423         * assembly.c: base_dir is now an absolute path ending with
2424         G_DIR_SEPARATOR.
2425
2426         * icall.c: modified get_location according to the above changes.
2427
2428         * object.c: init AppDomain.SetupInformation for the default domain after
2429         we have the entry assembly.
2430
2431         * domain.c: when unloading a domain, setup = NULL.
2432
2433 2002-11-04  Dietmar Maurer  <dietmar@ximian.com>
2434
2435         * marshal.c (emit_ptr_to_str_conv): try to fix bug 29548
2436
2437 Sun Nov 3 15:39:28 CET 2002 Paolo Molaro <lupus@ximian.com>
2438
2439         * object.h, object.c: introduced mono_object_get_virtual_method ()
2440         to lookup the method invoked on an object when a callvirt is done on
2441         a method.
2442         * icall.c: make MethodInfo::Invoke() always do a virtual call.
2443
2444 2002-11-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2445
2446         * appdomain.c: invoke AssemblyLoad and AsemblyResolve events in the
2447         current domain when loaded an assembly and failed to load it.
2448
2449         * icall.c: changed ...Assembly_GetType to Assembly_InternalGetType.
2450
2451 2002-10-31  Dick Porter  <dick@ximian.com>
2452
2453         * icall.c: 
2454         * file-io.h: 
2455         * file-io.c: Return the error status in a parameter, as the
2456         GetLastError() value has long since been blown away if we try and
2457         look it up in a subsequent internal call invocation.  Delete the
2458         GetLastError() internal call, because it's useless.
2459
2460 2002-10-31  Dietmar Maurer  <dietmar@ximian.com>
2461
2462         * class.[ch]: added cast_class to fix bug 29517
2463
2464 Wed Oct 30 19:37:32 CET 2002 Paolo Molaro <lupus@ximian.com>
2465
2466         * marshal.c: create valid IL code in the filter clause:
2467         the new JIT is less forgiving:-)
2468
2469 2002-10-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2470
2471         * icall.c: removed get_property internal call.
2472
2473 2002-10-25  Zoltan Varga  <vargaz@freemail.hu>
2474
2475         * appdomain.h domain.c: Added an ID to appdomains.
2476         
2477         * threads.c threads.h icall.c: Implement icall
2478         Thread:GetDomainID(), and remove unused icall 
2479         CurrentThreadDomain_internal.
2480
2481 2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2482
2483         * icall.c: Don't recurse through the base types in GetConstructor.
2484         Fixes bug #32063. 
2485
2486 Thu Oct 24 16:56:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
2487
2488         * mempool.h, mempool.c: added mono_mempool_empty() and
2489         mono_mempool_stats().
2490
2491 2002-10-23  Dick Porter  <dick@ximian.com>
2492
2493         * file-io.c: 
2494         * file-io.h: 
2495         * icall.c: Added MonoIO.GetFileType internal call
2496
2497 2002-10-17  Dick Porter  <dick@ximian.com>
2498
2499         * appdomain.c (mono_runtime_cleanup): Don't signal the async
2500         delegate semaphore before waiting for all threads to finish,
2501         because new threads can also call async delegates.  Fixes bug
2502         32004.
2503
2504         * threadpool.c (async_invoke_thread): Only wait for 500ms instead
2505         of 3 seconds, in case another async job is queued.  (This part is
2506         needed because the bug fix reintroduced the 3s exit lag.)  This
2507         makes the mono_runtime_shutdown flag superfluous.
2508
2509 Thu Oct 17 13:11:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
2510
2511         * reflection.c: include ehader size in method section headers.
2512         Really check for suplicated modules entries.
2513
2514 2002-10-17  Martin Baulig  <martin@gnome.org>
2515
2516         * debug-mono-symfile.c: Added back support for locals.
2517
2518 2002-10-14  Martin Baulig  <martin@gnome.org>
2519
2520         * debug-mono-symfile.c: Added MONO_TYPE_I, MONO_TYPE_U and
2521         MONO_TYPE_VOID.
2522
2523 2002-10-14  Martin Baulig  <martin@gnome.org>
2524
2525         * debug-mono-symfile.c (ves_icall_MonoDebugger_GetType): Use
2526         mono_class_get() instead of looking in the class cache. 
2527
2528 2002-10-13  Martin Baulig  <martin@gnome.org>
2529
2530         * debug-mono-symfile.c: Set version number to 28, include the
2531         signature in method names.
2532
2533 2002-10-13  Martin Baulig  <martin@gnome.org>
2534
2535         * debug-mono-symfile.h: Set version number to 27.
2536
2537 2002-10-11  Martin Baulig  <martin@gnome.org>
2538
2539         * gc.c: Don't register/unregister NULL pointers as disappearing links.
2540
2541 Thu Oct 10 14:56:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
2542
2543         * metadata.c, metadata.h: added helper function to allocate signatures.
2544
2545 2002-10-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2546
2547         * icall.c: added internal call to get the location of machine.config.
2548
2549 2002-10-08  Martin Baulig  <martin@gnome.org>
2550
2551         * debug-mono-symfile.c: Ignore classes with a pending init for the
2552         moment.
2553
2554 2002-10-03  Dick Porter  <dick@ximian.com>
2555
2556         * threads.c: Freebsd pthread_t is a pointer
2557
2558 2002-10-03  Dick Porter  <dick@ximian.com>
2559
2560         * socket-io.c: Implemented GetHostName_internal
2561
2562 2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2563
2564         * mono-config.c:
2565         (mono_config_parse_file): don't leak the text.
2566
2567 2002-10-02  Martin Baulig  <martin@gnome.org>
2568
2569         * debug-mono-symfile.c: Added support for methods.
2570
2571 2002-10-01  Martin Baulig  <martin@gnome.org>
2572
2573         * debug-mono-symfile.c: Don't emit methods and line numbers for
2574         the dynamic symbol file, just write the type table.  We can easily
2575         have an external helper program which creates a symbol file for an
2576         IL file.        
2577
2578 2002-10-01  Dick Porter  <dick@ximian.com>
2579
2580         * threads.c (ves_icall_System_Threading_Thread_Start_internal):
2581         Only add the handle to the cleanup array when we're about to
2582         launch the thread.  Bug 31425 deadlocked when the test was run on
2583         mono under w32.
2584
2585 2002-10-01  Martin Baulig  <martin@gnome.org>
2586
2587         * debug-mono-symfile.c: Added support for properties.
2588
2589 Fri Sep 27 18:55:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
2590
2591         * reflection.c: unaligned store fix from Mark Crichton
2592         <crichton@gimp.org>.
2593
2594 2002-09-27  Martin Baulig  <martin@gnome.org>
2595
2596         * icall.c ("System.Reflection.Assembly::GetReferencedAssemblies"):
2597         New interncall.
2598
2599 Fri Sep 27 15:38:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
2600
2601         * assembly.h, assembly.c: use a sane API to hook into the assembly
2602         loading process instead of a useless special-purpouse hack
2603         (ngen needs a hook, too, for example).
2604
2605 2002-09-27  Dick Porter  <dick@ximian.com>
2606
2607         * threads.c (mono_thread_init): Call GetCurrentProcess() so
2608         io-layer can set up some process handle info.  Not needed on w32,
2609         but doesn't hurt either.
2610
2611         * process.c: Pass the program name in the second parameter to
2612         CreateProcess, so the path is searched.  Include the working
2613         directory. Implemented process name, process enumeration, and some
2614         process detail internal calls.
2615         
2616         * icall.c: Added internal calls for process lookup, and some
2617         process details
2618
2619 2002-09-26  Martin Baulig  <martin@gnome.org>
2620
2621         * assembly.c (mono_install_open_assembly_hook): New global
2622         function to install a function to be invoked each time a new
2623         assembly is loaded.
2624         (mono_assembly_open): Run this callback function if set.
2625
2626         * debug-mono-symfile.c: Put back line numbers for the dynamic
2627         symbol file and also record the .il file as source file.  This
2628         allows us to install the temporary symbol file as `file.dbg' just
2629         like a compiler-generated one.
2630
2631 2002-09-26  Nick Zigarovich <nick@chemlab.org>
2632
2633         * Corrected typo in gc.c (BOHEM vs BOEHM).
2634
2635 2002-09-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2636
2637         * icall.c: fixed bug #31235 by copying a few lines from GetMethods to
2638         GetProperties. Also avoid calling g_slist_length in GetProperties and
2639         GetMethods.
2640
2641 Wed Sep 25 22:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
2642
2643         * reflection.c: avoid unaligned stores (bug spotted by
2644         Mark Crichton  <crichton@gimp.org>).
2645
2646 2002-09-25  Martin Baulig  <martin@gnome.org>
2647
2648         * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Use pointers
2649         instead of guint64 for addresses and added prologue/epilogue info.
2650
2651 2002-09-25  Martin Baulig  <martin@gnome.org>
2652
2653         * debug-mono-symfile.h (MonoDebugLineNumberEntry): New type to
2654         store line number info.  For the dynamic symbol file, we only need
2655         to provide the JIT generated dynamic line number info for the dynamic
2656         symbol file.
2657
2658 2002-09-25  Martin Baulig  <martin@gnome.org>
2659
2660         * debug-mono-symfile.h: Incremented version number.
2661
2662 2002-09-24  Martin Baulig  <martin@gnome.org>
2663
2664         * class.c (mono_debugger_class_init_func): New global function
2665         pointer variable.
2666         (mono_class_init): If mono_debugger_class_init_func is non-NULL,
2667         call it.
2668
2669         * debug-mono-symfile.c (mono_debug_symfile_add_type): New
2670         function.  This is called via the mono_debugger_class_init_func
2671         hook to add all types to the dynamic type table.
2672         (ves_icall_MonoDebugger_GetType): New interncall to get a class
2673         from its metadata token.
2674
2675         * icall.c ("System.Reflection.Assembly::MonoDebugger_GetType"):
2676         New interncall for the debugger.
2677
2678 2002-09-24  Nick Drochak <ndrochak@gol.com>
2679
2680         * icall.c (ves_icall_System_Enum_ToObject): validate the type parameter
2681         before using it in case it is null.
2682         
2683 Tue Sep 24 13:24:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
2684
2685         * metadata.c: allow custom modifiers in local var signatures
2686         (bug spotted by Zoltan Varga).
2687
2688 Tue Sep 24 12:12:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
2689
2690         * class.c: deal with the <Module> class that may have a NULL vtable.
2691         Eliminate warnings.
2692
2693 Tue Sep 24 11:28:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2694
2695         * image.c, image.h: more strong name helpers.
2696         * monosn.c: more work: convert pem keys to cryptoapi format.
2697
2698 Tue Sep 24 11:27:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
2699
2700         * string-icalls.c: speedup IndexOf.
2701
2702 Tue Sep 24 11:17:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2703
2704         * icall.c: updates from Zoltan.2.Varga@nokia.com.
2705
2706 Tue Sep 24 11:09:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
2707
2708         * icall.c: cleanup: use mono_object_domain ().
2709
2710 2002-09-23  Martin Baulig  <martin@gnome.org>
2711
2712         * debug-mono-symfile.c: Improved type support.
2713
2714 2002-09-22  Martin Baulig  <martin@gnome.org>
2715
2716         * debug-mono-symfile.c: Added support for reference types and strings.
2717
2718 2002-09-22  Martin Baulig  <martin@gnome.org>
2719
2720         * debug-mono-symfile.c: Started to work on the type table.
2721
2722 2002-09-21  Martin Baulig  <martin@gnome.org>
2723
2724         * debug-mono-symfile.c: Largely reworked the symbol table format.
2725         The symbol table is now incrementally updated each time a new
2726         method is added.  We're now also using our own magic and version
2727         so that you don't need to recompile all your classes if the
2728         dynamic table changes.
2729         (mono_debug_update_mono_symbol_file): Removed.
2730         (mono_debug_symfile_add_method): New function to add a method.
2731
2732 2002-09-21  Martin Baulig  <martin@gnome.org>
2733
2734         * icall.c
2735         ("System.Reflection.Assembly::MonoDebugger_GetLocalTypeFromSignature"):
2736         New interncall.
2737
2738         * debug-mono-symfile.c (ves_icall_MonoDebugger_GetLocalTypeFromSignature):
2739         New interncall to get a method from its metadata token.
2740
2741 2002-09-21  Martin Baulig  <martin@gnome.org>
2742
2743         * debug-mono-symfile.c: Create type table.
2744
2745 2002-09-20  Martin Baulig  <martin@gnome.org>
2746
2747         * debug-mono-symfile.c: Reflect latest Mono.CSharp.Debugger changes.
2748
2749 2002-09-20  Martin Baulig  <martin@gnome.org>
2750
2751         * debug-mono-symfile.c: Provide information about params and locals.
2752
2753 2002-09-20  Martin Baulig  <martin@gnome.org>
2754
2755         * icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
2756         New interncall.
2757
2758         * debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
2759         interncall to get a method from its metadata token.
2760
2761 2002-09-20  Martin Baulig  <martin@gnome.org>
2762
2763         * debug-mono-symfile.c: Added a few checks for method->header
2764         being non-NULL.  This should never happen, but for the moment
2765         let's use a g_warning() rather than a g_assert().
2766
2767 2002-09-19  Mark Crichton  <crichton@gimp.org>
2768
2769         * gc.c: ves_icall_System_GCHandle_FreeHandle made a call to libgc
2770         even if support for it isn't present.  Added an #ifdef to fix this.
2771
2772         * socket-io.c: Added checks back for Solaris support.
2773
2774 2002-09-19  Martin Baulig  <martin@gnome.org>
2775
2776         * debug-mono-symfile.c (read_string, write_string): Reflect latest
2777         changes in the symbol file format.
2778
2779 2002-09-18  Martin Baulig  <martin@gnome.org>
2780
2781         * debug-mono-symfile.c: Set version number to 21.
2782
2783 2002-09-18  Dick Porter  <dick@ximian.com>
2784
2785         * threads.c (mon_new): Use the GC_MALLOC macro to hide differences
2786         on netbsd.  Fixes bug 30051.
2787
2788 2002-09-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2789
2790         * reflection.c:
2791         (set_version_from_string): little fix.
2792
2793 Mon Sep 16 18:57:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2794
2795         * monosn.c, Makefile.am: added strong name utility.
2796         * reflection.h, reflection.c: implemented delayed signing,
2797         locale, version and hash id assembly attributes.
2798
2799 Mon Sep 16 18:51:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
2800
2801         * loader.c, metadata.c: load param attributes in signatures.
2802
2803 2002-09-16  Martin Baulig  <martin@gnome.org>
2804
2805         * debug-mono-symfile.c: Added string table with all method names.
2806
2807 2002-09-14  Martin Baulig  <martin@gnome.org>
2808
2809         * debug-mono-symfile.h (MonoSymbolFile): Added method range table for
2810         fast method lookup.
2811
2812 Fri Sep 13 16:04:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
2813
2814         * reflection.c: record the public key token of referenced assemblies.
2815
2816 Fri Sep 13 15:41:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
2817
2818         * image.c, image.h: added functions to get the strong name and the
2819         public key of an assembly.
2820         * pedump.c: use them.
2821
2822 2002-09-12  Dietmar Maurer  <dietmar@ximian.com>
2823
2824         * marshal.c (emit_str_to_ptr_conv): support marshalling of delegates.
2825
2826 2002-09-12  Miguel de Icaza  <miguel@ximian.com>
2827
2828         * marshal.c (mono_marshal_get_managed_wrapper): Added
2829         MONO_TYPE_BOOLEAN 
2830
2831 2002-09-11  Martin Baulig  <martin@gnome.org>
2832
2833         * gc.c: Call GC_unregister_disappearing_link() on all links when
2834         finalizing them, this is necessary to aviod a crash in boehm's
2835         finalize handler.
2836
2837 Wed Sep 11 17:06:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
2838
2839         * gc.c: handle GetTarget for finalized objects spotted and fixed by
2840         nick@chemlab.org.
2841
2842 Wed Sep 11 15:27:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
2843
2844         * icall.c: implemented MonoType::Module.
2845         * reflection.c, reflection.h: mono_module_get_object () from
2846         Tomi Pakarinen <tomi.pakarinen@welho.com>.
2847
2848 Wed Sep 11 12:53:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
2849
2850         * icall.c: ignore overridden methods in GetMethods ().
2851         Fix for FieldInfo::SetValue().
2852         * object.c: handle float/double in runtime invoke.
2853
2854 Tue Sep 10 15:51:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
2855
2856         * object.c: allow a constructor to be called again on an object.
2857
2858 Tue Sep 10 11:58:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2859
2860         * class.h, class.c: move field layout code to it's own function and
2861         export it. Get an interface id earlier. Move fields in MonoClass
2862         so they are more cache friendly and align the bitfields.
2863         * loader.c: temporary handle get_param_names() for a runtime method.
2864         * reflection.c, reflection.h: more code to handle runtime creation of
2865         types.
2866
2867 2002-09-09  Martin Baulig  <martin@gnome.org>
2868
2869         * marshal.c (mono_marshal_get_native_wrapper): We need to use a special
2870         signature with the pinvoke field being set for the actual call.
2871
2872 Sat Sep 7 10:12:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
2873
2874         * icall.c: removed some unused icalls. Start of map of glib charsets
2875         to corlib names. Implemented RuntimeMethod::GetFunctionPointer ().
2876
2877 Fri Sep 6 16:08:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
2878
2879         * debug-helpers.c: break infinite loop (found and fixed by
2880         Holger Arnold <harnold@gmx.de>).
2881
2882 Thu Sep 5 18:50:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
2883
2884         * icall.c: target may be null in create_delegate.
2885
2886 Thu Sep 5 17:42:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
2887
2888         * marshal.c: handle a boolean return type.
2889
2890 Thu Sep 5 13:09:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
2891
2892         * gc.c: put HIDE_POINTER/REVEAL_POINTER only here.
2893
2894 Wed Sep 4 19:23:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
2895
2896         * gc.c: fix weakreferences.
2897
2898 Wed Sep 4 13:59:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
2899
2900         * icall.c: added icall to get default codepage.
2901
2902 2002-09-03  Dick Porter  <dick@ximian.com>
2903
2904         * threads.h: 
2905         * threads.c: Use MonoThread instead of MonoObject where
2906         apropriate.
2907
2908         Store running thread objects in a hash table, so that we have all
2909         the info to hand when waiting for them to finish
2910         (means we don't need OpenThread() any more, so mingw builds should
2911         be fully functional again.)
2912
2913         * verify.c:
2914         * object.h: Added thread ID to MonoThread
2915
2916 2002-09-03  Martin Baulig  <martin@gnome.org>
2917
2918         * icall.c (System.Reflection.Assembly::get_location): New interncall.
2919
2920 2002-09-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2921
2922         * icall.c: fixed leak in get_temp_path. Thanks lupus.
2923
2924 2002-09-03  Martin Baulig  <martin@gnome.org>
2925
2926         * debug-helpers.c (mono_disasm_code_one): Added `const guchar **endp'
2927         argument to store the end address of the disassembled instruction.
2928
2929         * debug-mono-symfile.h (MonoDebugMethodInfo, MonoDebugVarInfo): Moved
2930         here from debug-symfile.h.
2931         (MonoDebugMethodJitInfo): Moved all fields which are filled out by the
2932         JIT into this struct.
2933         (MonoSymbolFile): Added `char *image_file' field.
2934         (MonoDebugGetMethodFunc): Removed.
2935         (mono_debug_update_mono_symbol_file): Removed the hash table argument.
2936         (mono_debug_create_mono_symbol_file): Removed the `source_file' argument.
2937         (mono_debug_find_method): New method.
2938
2939         * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): Always
2940         create a full symbol file.
2941         (mono_debug_update_mono_symbol_file): Don't distinguish between dynamic
2942         and static symbol files.
2943         (mono_debug_find_method): The symbol file keeps an internal method hash,
2944         call this to get a MonoDebugMethodInfo from a MonoMethod.
2945
2946         * debug-symfile.[ch]: Removed.
2947
2948 2002-08-29  Miguel de Icaza  <miguel@ximian.com>
2949
2950         * image.c (do_mono_image_open): Remove linker version check.
2951
2952 2002-08-29  Dietmar Maurer  <dietmar@ximian.com>
2953
2954         * marshal.c (mono_marshal_get_managed_wrapper): don't cache
2955         wrappers for instance methods.
2956         
2957 2002-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2958
2959         * icall.c: added ves_icall_System_IO_Path_get_temp_path.
2960
2961 2002-08-28  Dick Porter  <dick@ximian.com>
2962
2963         * Makefile.am: Export HOST_CC for w32 builds
2964
2965 Tue Aug 27 18:34:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
2966
2967         * file-io.c process.c: MonoString are null terminated, no
2968         need for mono_string_to_utf16() anymore.
2969
2970 Tue Aug 27 17:51:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
2971
2972         * icall.c, unicode.h, unicode.c: removed unused iconv stuff.
2973
2974 Tue Aug 27 16:38:58 CEST 2002 Paolo Molaro <lupus@ximian.com>
2975
2976         * icall.c, reflection.h: speedup System.MonoType.
2977
2978 Tue Aug 27 16:37:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
2979
2980         * reflection.c: allow null as the value of a string argument in
2981         custom attributes constructors.
2982
2983 2002-08-27  Martin Baulig  <martin@gnome.org>
2984
2985         * debug-mono-symfile.h (MonoSymbolFileMethodAddress): Removed the
2986         `trampoline_address' field.
2987
2988 2002-08-27  Dietmar Maurer  <dietmar@ximian.com>
2989
2990         * marshal.c (mono_marshal_get_native_wrapper): removed wrong null
2991         check (fixes bug #29486) 
2992
2993 2002-08-27  Martin Baulig  <martin@gnome.org>
2994
2995         * debug-mono-symfile.c: Changed the file format in a way that allows us
2996         open it read-only and to use a specially malloced area for all the
2997         dynamic data.  We can now also generate a symbol file on-the-fly if we're
2998         debugging IL code and there is no MCS generated symbol file for it.
2999
3000 Mon Aug 26 16:47:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
3001
3002         * object.c: added a define for a good string and array
3003         creation speedup (not enabled by default because we need to deal with
3004         the synch stuff).
3005
3006 2002-08-26  Martin Baulig  <martin@gnome.org>
3007
3008         * debug-mono-symfile.c (mono_debug_create_mono_symbol_file): New
3009         function to create a dynamic symbol file.  This is used by the
3010         debugger to create a symbol file for IL code on-the-fly.
3011
3012 2002-08-26  Martin Baulig  <martin@gnome.org>
3013
3014         * loader.c (mono_lookup_pinvoke_call): Include the error message
3015         from g_module_error() in the error message.
3016
3017 2002-08-24  Martin Baulig  <martin@gnome.org>
3018
3019         * debug-mono-symfile.c (mono_debug_update_mono_symbol_file): New
3020         function to update the symbol file.  The symbol file is mmap()ed
3021         writable, but private.  This allows us to install the symbol file
3022         together with the assembly.
3023
3024 2002-08-24  Martin Baulig  <martin@gnome.org>
3025
3026         * debug-mono-symfile.[ch]: New files.  Similar to debug-symfile.[ch]
3027         but they can read the new symbol file format which mcs is now creating.
3028
3029         * debug-symfile.c (mono_debug_find_source_location): Moved to
3030         debug-mono-symfile.c; this is now operating on the new symbol file.
3031
3032 2002-08-23  Martin Baulig  <martin@gnome.org>
3033
3034         * debug-helpers.c (mono_method_desc_from_method): New function to get
3035         a MonoMethodDesc from a MonoMethod.
3036
3037 Fri Aug 23 15:54:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
3038
3039         * object.c: fixes assertion failure caused by multiple ExecuteAssembly
3040         calls for same domain (patch by Tomi Pakarinen <Tomi.Pakarinen@iki.fi>).
3041
3042 Fri Aug 23 12:14:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
3043
3044         * string-icalls.[ch]: make helper methods static.
3045
3046 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3047
3048         * icall.c: re-applied patch to GetValueInternal. Also added R4 and R8
3049         types to it and to SetValueInternal.
3050
3051         * object.c: Moved handle_enum label to its proper place. This was the
3052         f... bug! ;-)
3053
3054         This time i compiled mcs and gtk-sharp and they both work.
3055
3056 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3057
3058         * icall.c: reverted partially my previous patch until 
3059         object.c:set_value handles enums correcly.
3060
3061 2002-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3062
3063         * icall.c:
3064         (ves_icall_MonoField_GetValue): changed to use mono_field_get_value.
3065         (ves_icall_System_Environment_get_MachineName): removed warning when
3066         compiling under cygwin.
3067
3068 Thu Aug 22 18:49:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
3069
3070         * object.c: fixed field_get_value() for reference types.
3071
3072 2002-08-22  Dick Porter  <dick@ximian.com>
3073
3074         * socket-io.c (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal):
3075         Don't free a buffer while it's still needed.  Patch from Jonathan
3076         Liger <Jonathan.liger@wanadoo.fr>
3077
3078 2002-08-21  Miguel de Icaza  <miguel@ximian.com>
3079
3080         * icall.c (ves_icall_System_Environment_get_Platform): Add new
3081         internal call.
3082
3083 2002-08-21  Dietmar Maurer  <dietmar@ximian.com>
3084
3085         * icall.c (ves_icall_get_method_info): s/MonoMethod/MonoReflectionMethod/
3086         (ves_icall_get_parameter_info): s/MonoMethod/MonoReflectionMethod/
3087
3088         * marshal.c (mono_marshal_get_remoting_invoke): save lmf, because
3089         we call unmanaged code which throws exceptions.
3090
3091 Wed Aug 21 12:56:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3092
3093         * appdomain.h: added per-domain entry_assembly.
3094         * appdomain.c: ensure mono_runtime_exec_main () gets non-null
3095         arguments.
3096         * icall.c: Assembly::GetEntryAssembly icall.
3097         * object.c: set domain->entry_assembly in mono_runtime_exec_main().
3098         Changes above from a patch by Tomi Pakarinen <tomi.pakarinen@welho.com>.
3099
3100 Tue Aug 20 15:42:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3101
3102         * appdomain.h, gc.c: added mono_domain_finalize ().
3103
3104 2002-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3105
3106         * object.c:
3107         (mono_print_unhandled_exception): changed g_warning by g_printerr
3108         because g_log has a 1024 characters limit (yeah, i got a big stack
3109         trace). Don't print exception name, that should be in ToString 
3110         returned string.
3111
3112 2002-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3113
3114         * icall.c: added ves_icall_FieldInfo_SetValueInternal.
3115         * object.c: added missing MONO_TYPE_ARRAY in mono_runtime_invoke_array.
3116
3117 2002-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3118
3119         * object.c:
3120         (mono_print_unhandled_exception): after previous commit, i realized
3121         that MS calls ToString on the exception. I changed this function to
3122         do that. This way we get stack_trace for free.
3123
3124 2002-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3125
3126         * object.c:
3127         (mono_print_unhandled_exception): invoke Message property instead of
3128         getting 'message' field from Exception. Don't allocate memory for
3129         'trace' and 'message' if not needed.
3130
3131 2002-08-18  Dick Porter  <dick@ximian.com>
3132
3133         * unicode.c: Fix asserts to match Encoder.cs checks
3134
3135 Fri Aug 16 21:42:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3136
3137         * marshal.c: fix unaligned store issue and a few wrong
3138         opcode argument types.
3139
3140 2002-08-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3141
3142         * icall.c: added GetUninitializedObjectInternal internal call.
3143
3144 2002-08-16  Dietmar Maurer  <dietmar@ximian.com>
3145
3146         * appdomain.c (mono_runtime_invoke_in_domain): transfer Exception
3147         to the right domain.
3148
3149 2002-08-14  Dietmar Maurer  <dietmar@ximian.com>
3150
3151         * marshal.c (mono_marshal_get_runtime_invoke): unbox value types
3152
3153         * class.c (class_compute_field_layout): set blittable to false for Strings
3154
3155         * appdomain.c (mono_domain_transfer_object): added support for ISerializable
3156
3157 Wed Aug 14 17:26:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3158
3159         * appdomain.h, reflection.c, icall.c, object.c, reflection.h:
3160         first chunk of code to create types at runtime. Code to
3161         handle ReflectedType/DeclaringType. Make reflection handles
3162         domain specific.
3163
3164 Wed Aug 14 17:24:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
3165
3166         * class.c: set correct name in arrays.
3167
3168 2002-08-13  Dietmar Maurer  <dietmar@ximian.com>
3169
3170         * appdomain.c (mono_domain_transfer_object): make it work with
3171         valuetypes. bug fixes.
3172
3173 2002-08-12  Dick Porter  <dick@ximian.com>
3174
3175         * object.h: Rename some parameters to avoid c++ keywords (Patch
3176         from Joseph Wenninger <kde@jowenn.at>)
3177
3178 Thu Aug 8 13:04:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
3179
3180         * icall.c: added icall to implement Assembly.GetFile*.
3181
3182 Thu Aug 8 10:18:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3183
3184         * reflection.h, reflection.c: code to embed managed resources.
3185
3186 Tue Aug 6 17:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3187
3188         * class.c: move all the type size stuff into
3189         class_compute_field_layout().
3190
3191 Tue Aug 6 11:20:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
3192
3193         * class.c: ensure enums have always the correct instance size.
3194         * unicode.c: remove wrong assert.
3195
3196 Mon Aug 5 19:30:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
3197
3198         * assembly.c: fix mem corruption issue.
3199         * image.h, image.c: added mono_image_get_resource () to access
3200         managed resources.
3201         * icall.c: implemented Assembly.EntryPoint property and some
3202         Managed Resources related internalcalls.
3203
3204
3205 Mon Aug 5 18:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3206
3207         * image.c, image.h: impemented mono_image_get_entry_point ().
3208         * appdomain.c: use mono_image_get_entry_point.
3209
3210 Mon Aug 5 13:08:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3211
3212         * reflection.c: support the object type argument when loading
3213         custom attributes.
3214
3215 2002-08-05  Dietmar Maurer  <dietmar@ximian.com>
3216
3217         * marshal.c (mono_marshal_get_managed_wrapper): add suppport for
3218         String as return type.
3219
3220 Fri Aug 2 21:15:42 CEST 2002 Paolo Molaro <lupus@ximian.com>
3221
3222         * reflection.c: fix encoding of named args for custom attrs to match
3223         the ms implementation. Read them back when instantiating custom
3224         attributes.
3225
3226 2002-08-02  Radek Doulik  <rodo@ximian.com>
3227
3228         * marshal.c (mono_mb_add_data): convert ret value to LE, suggested
3229         by Dietmar as quick fix
3230         (mono_marshal_get_delegate_begin_invoke): use sig->param_count +
3231         16 as stack size, used on more places as quick fix before Dietmar
3232         will fix it properly
3233
3234 Fri Aug 2 17:48:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
3235
3236         * object.h, object.c: added accessors for fields and properties.
3237
3238 Fri Aug 2 17:45:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
3239
3240         * class.c, class.h: made mono_class_get_field_from_name ()
3241         loop on parent types.
3242         Added mono_class_get_property_from_name ().
3243
3244 Fri Aug 2 11:40:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3245
3246         * class.c, class.h: move the code to setup the type vtable in its own
3247         function so that it can be reused also for types created at runtime.
3248         Eliminate the "class" identifier from the header file.
3249         * reflection.c: setup the vtable for enums so that we can create
3250         objects for use in SetConstant ().
3251
3252 2002-08-02  Dietmar Maurer  <dietmar@ximian.com>
3253
3254         * marshal.c (mono_delegate_to_ftnptr): pass delegate->target
3255         instead of the delegate itself as this pointer (bug #28383)
3256
3257 2002-08-01  Dietmar Maurer  <dietmar@ximian.com>
3258
3259         * marshal.c (mono_marshal_get_managed_wrapper): added return type
3260         conversions.
3261
3262 Wed Jul 31 16:49:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3263
3264         * loader.c: don't set the pinvoke bit on icalls.
3265
3266 2002-07-31  Dietmar Maurer  <dietmar@ximian.com>
3267
3268         * debug-helpers.c (mono_method_full_name): only print a number to
3269         indicate wrapper type (so that the output is more readable in traces).
3270
3271 2002-07-30  Dietmar Maurer  <dietmar@ximian.com>
3272
3273         * class.c (mono_class_init): include method override patch from Paolo
3274
3275 Tue Jul 30 15:20:08 CEST 2002 Paolo Molaro <lupus@ximian.com>
3276
3277         * icall.c: fixed GetTypeCode().
3278
3279 2002-07-29  Dietmar Maurer  <dietmar@ximian.com>
3280
3281         * threads.c (ves_icall_System_Threading_Thread_Thread_internal):
3282         use real delegate invoke function to make it work with multicast
3283         delegates (fix bug# 28291).
3284
3285 Fri Jul 26 11:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3286
3287         * object.c: load constant strings.
3288
3289 Fri Jul 26 11:36:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3290
3291         * reflection.c: no magic numbers.
3292         * tabledefs.h: security action enum.
3293
3294 Fri Jul 26 11:22:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3295
3296         * assembly.c: fix possible memory corruption.
3297
3298 Thu Jul 25 13:58:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
3299
3300         * reflection.h, reflection.c: added support for linking resources.
3301         * verify.c: check we have an updated corlib.
3302
3303 2002-07-25  Dietmar Maurer  <dietmar@ximian.com>
3304
3305         * marshal.c (mono_marshal_get_native_wrapper): correctly marshal
3306         string arrays.
3307         (mono_marshal_string_array): null terminate unmanaged string arrays.
3308         (mono_marshal_get_managed_wrapper): print warning for arrays (not implemented)
3309
3310 Wed Jul 24 13:32:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3311
3312         * icall.c: Type.GetType () can now return also types from the
3313         calling assembly.
3314
3315 Wed Jul 24 13:04:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3316
3317         * loader.h, loader.c: stack walking support.
3318         * icall.c: implemented GetCurrentMethod, GetExecutingAssembly,
3319         GetCallingAssembly.
3320
3321 2002-07-24  Dietmar Maurer  <dietmar@ximian.com>
3322
3323         * marshal.c: added optimisations for blittable types 
3324
3325         * class.c (mono_array_class_get): do not set blittable attribute on arrays
3326         (mono_class_setup_mono_type): set blittable attribute for single
3327         and double.
3328
3329         * marshal.c (mono_string_utf8_to_builder): impl.
3330         (mono_string_builder_to_utf8): impl.
3331         (mono_marshal_get_native_wrapper): impl. StringBuilder marshaling
3332
3333 2002-07-23  Dietmar Maurer  <dietmar@ximian.com>
3334
3335         * marshal.c (mono_marshal_get_native_wrapper): impl. byref types
3336         (mono_marshal_get_managed_wrapper): impl. byref types
3337
3338 2002-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3339
3340         * icall.c:
3341         (search_method): don't display debug message. 
3342
3343 2002-07-22  Dietmar Maurer  <dietmar@ximian.com>
3344
3345         * metadata.c (mono_type_stack_size): removed temporary fix for new gcc
3346
3347 Mon Jul 22 18:17:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
3348
3349         * appdomain.c: set the missing filename when throwing exception.
3350
3351 2002-07-22  Dietmar Maurer  <dietmar@ximian.com>
3352
3353         * metadata.c (mono_type_size): code cleanup
3354         (mono_type_stack_size): removed some test code
3355
3356 2002-07-21  Miguel de Icaza  <miguel@ximian.com>
3357
3358         * appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Use
3359         mono_get_exception_file_not_found now.
3360
3361         * exception.c (mono_exception_from_name_two_strings): New version
3362         that will call a constructor with two string arguments. 
3363         (mono_get_exception_file_not_found): New helper routine, used to
3364         report file-not-found errors.
3365
3366 2002-07-20  Dick Porter  <dick@ximian.com>
3367
3368         * process.h:
3369         * process.c: Pass file handles to CreateProcess
3370         
3371         * icall.c:
3372         * file-io.h:
3373         * file-io.c: Implemented CreatePipe
3374
3375 2002-07-19  Dietmar Maurer  <dietmar@ximian.com>
3376
3377         * metadata.c (mono_get_param_info): set alignment for value types
3378
3379 Fri Jul 19 18:58:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
3380
3381         * appdomain.h, domain.c, threads-types.h: don't include config.h in headers.
3382         Constify mono_domain_assembly_open().
3383         * loader.c: handle null namespace in icalls.
3384
3385 2002-07-19  Dietmar Maurer  <dietmar@ximian.com>
3386
3387         * marshal.c (emit_ptr_to_str_conv): marshal object as structs
3388         (emit_str_to_ptr_conv): marshal object as structs
3389
3390         * metadata.c (mono_type_to_unmanaged): marshal object as structs
3391
3392         * marshal.c (mono_marshal_get_runtime_invoke): support value types
3393
3394 2002-07-18  Dietmar Maurer  <dietmar@ximian.com>
3395
3396         * marshal.c (mono_marshal_get_runtime_invoke): use exception filters
3397         (mono_marshal_get_native_wrapper): we an now return value types
3398
3399 Wed Jul 17 18:21:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3400
3401         * verify.c: more checks implemented.
3402
3403 2002-07-17  Dietmar Maurer  <dietmar@ximian.com>
3404
3405         * marshal.c (mono_delegate_to_ftnptr): invoke the right method
3406         (fix bug #27695)
3407         (mono_marshal_get_native_wrapper): allow byref arguments
3408         (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringXXX):
3409         impl. PtrToStringXXX methods
3410         (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type): impl.
3411         (ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf): impl.
3412         (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi): impl.
3413         (ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni): impl.
3414         (ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure): impl.
3415
3416 Tue Jul 16 19:00:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3417
3418         * reflection.c: fix buglet in parsing an assembly name.
3419
3420 2002-07-16  Dietmar Maurer  <dietmar@ximian.com>
3421
3422         * marshal.c (emit_ptr_to_str_conv): first impl.
3423
3424 Tue Jul 16 12:39:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
3425
3426         * object.c, class.h: cache the vtable in the class as suggested by
3427         vargaz@freemail.hu (Zoltan Varga).
3428
3429 Tue Jul 16 11:27:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3430
3431         * class.h, loader.c: added mono_field_from_token().
3432         * verify.c: first cut of type checking code.
3433
3434 2002-07-16  Dietmar Maurer  <dietmar@ximian.com>
3435
3436         * marshal.c (mono_marshal_get_native_wrapper): support valuetypes
3437
3438 2002-07-15  Dietmar Maurer  <dietmar@ximian.com>
3439
3440         * marshal.c (mono_marshal_get_native_wrapper): handle enum types
3441         (fix bug #27782)
3442         (mono_marshal_get_remoting_invoke): impl.
3443         (mono_delegate_begin_invoke): impl.
3444         (mono_mb_emit_save_args): impl.
3445         (mono_delegate_end_invoke): impl.
3446         (mono_marshal_get_delegate_begin_invoke):
3447         (mono_marshal_get_delegate_end_invoke):
3448         (mono_marshal_get_delegate_invoke): generate a special name for
3449         those methods (including the signature) and associate them whith
3450         the delegate class. 
3451
3452 2002-07-13  Gonzalo Paniagua Javier <gonzalo@gnome-db.org>
3453
3454         * reflection.[ch]: 
3455         (mono_reflection_type_from_name): now it has a MonoImage parameter
3456         which is used as the default image to search the type in. If the image
3457         is NULL or getting the type from it fails, it defaults to corlib.
3458
3459         * icall.c: changed 1 call to mono_reflection_type_from_name to match
3460         new parameter.
3461
3462 Sat Jul 13 19:32:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3463
3464         * reflection.c: update the parameter table index.
3465
3466 Sat Jul 13 17:34:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3467
3468         * domain.c: don't include the mark byte in the string hash.
3469
3470 Sat Jul 13 15:06:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3471
3472         * icall.cs: icall for Type.GetTypeCode ().
3473         * verify: a couple of fixes and disabled local initialization checks.
3474
3475 2002-07-12  Dietmar Maurer  <dietmar@ximian.com>
3476
3477         * marshal.c: better debugging support (DEBUG_RUNTIME_CODE)
3478
3479         * debug-helpers.c (mono_method_full_name): print the type of the
3480         runtime wrapper
3481
3482         * metadata.c (mono_signature_hash): a hash function for signatures
3483         (mono_signature_hash): better hash algorithm
3484
3485         * marshal.c (mono_marshal_get_delegate_invoke): cache methods by signature
3486
3487         * debug-helpers.c (mono_method_full_name): this can now generate
3488         method names with signatures
3489
3490         * marshal.c (mono_marshal_get_managed_wrapper): bug fix: unmanaged
3491         method dont have this pointers.
3492
3493 Fri Jul 12 11:35:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
3494
3495         * reflection.c: fixup typebuilder tokens.
3496         * image.c: fix buglet.
3497         * marshal.h: remove whitespace.
3498         * metadata.h, metadata.c: reinstate code that was removed.
3499         * verify.c: handle catch directives and fix another couple of bugs.
3500
3501 2002-07-11  Dietmar Maurer  <dietmar@ximian.com>
3502
3503         * marshal.c (mono_marshal_get_native_wrapper): support BOOLEAN
3504         (mono_marshal_get_native_wrapper): make it comp. with the old code
3505         (mono_marshal_get_native_wrapper): support boolean
3506         (mono_marshal_get_managed_wrapper): support more types
3507
3508 2002-06-25  Dietmar Maurer  <dietmar@ximian.com>
3509
3510         * class.c (class_compute_field_layout): compute class->blittable attribute.
3511
3512 2002-07-09  Dick Porter  <dick@ximian.com>
3513
3514         * threads.c: Make the thread cleaning up cope with threads that
3515         call ExitThread()
3516
3517 2002-07-08  Radek Doulik  <rodo@ximian.com>
3518
3519         * reflection.c (method_encode_code): use non-translated values to
3520         compute finally_start, this fixes exception handling on ppc, yay!
3521
3522         * decimal.h (struct signscale): fix endianess
3523
3524 2002-07-07  Radek Doulik  <rodo@ximian.com>
3525
3526         * reflection.c: swap box_val and not val
3527
3528 Mon Jul 8 15:18:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
3529
3530         * reflection.c, reflection.h: handle full assembly info in type name.
3531         Handle Type arguments when loading custom attributes.
3532         * icall.c: updated to use new mono_reflection_type_from_name () method.
3533
3534 2002-07-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3535
3536         * loader.c:
3537         (method_from_memberref): also print assembly name when method not found.
3538
3539 2002-07-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3540
3541         * icall.c:
3542         (ves_icall_TypeGetProperties): fixed bug #27473. 
3543
3544 2002-07-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3545
3546         * reflection.c: display image name and token when cannot find the
3547         .ctor for an attribute.
3548
3549 2002-07-05  Martin Baulig  <martin@gnome.org>
3550
3551         * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3552
3553 2002-07-04  Dick Porter  <dick@ximian.com>
3554
3555         * threads.c (mono_thread_cleanup): Nasty kludge to get this to
3556         compile on mingw.  This will cause mingw builds to not wait for
3557         subthreads to terminate after the main thread does.  I've lodged a
3558         bug with the mingw developers for them to wrap OpenThread().
3559
3560 2002-07-03  Dick Porter  <dick@ximian.com>
3561
3562         * threads.c: Store thread IDs instead of handles, because
3563         GetCurrentThread() returns a pseudohandle and therefore stores
3564         useless values.  mono_thread_cleanup() continues checking the
3565         array of threads until it is empty, to cope with subthreads
3566         spawning new threads after the main thread has finished.
3567
3568         * profiler.h:
3569         * profiler.c:
3570         * profiler-private.h: Pass the thread ID to thread profiler
3571         functions, instead of a handle
3572
3573 Wed Jul 3 17:43:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
3574
3575         * verify.c: fixes to make it more usable.
3576         * pedump.c: added --verify code to verify IL code in an assembly.
3577
3578 Tue Jul 2 20:40:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3579
3580         * reflection.c: turn errors into warnings to allow compiling corlib.
3581
3582 Tue Jul 2 19:33:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
3583
3584         * reflection.c: add special cases to compile corlib.
3585
3586 Mon Jul 1 18:00:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3587
3588         * reflection.c: handle properties with only a set method.
3589
3590 Mon Jul 1 17:11:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
3591
3592         * opcodes.h: add enum with opcodes in opval order.
3593
3594 2002-07-01  Dick Porter  <dick@ximian.com>
3595         
3596         * object.h:
3597         * object.c (mono_runtime_run_main): Removed unneeded argument
3598
3599 2002-06-28  Martin Baulig  <martin@gnome.org>
3600
3601         * debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
3602
3603 2002-06-27  Dick Porter  <dick@ximian.com>
3604
3605         * threads.c: Store the handle in both the parent thread and in the
3606         subthread, to minimise the time between starting a new thread and
3607         storing its ID.
3608
3609 2002-06-26  Dick Porter  <dick@ximian.com>
3610
3611         * appdomain.c (mono_runtime_cleanup): Close the socket library
3612         after all the threads have finished, not before
3613
3614 2002-06-26  Martin Baulig  <martin@gnome.org>
3615
3616         * debug-symfile.c (mono_debug_find_source_location): Added
3617         `guint32 *line_number' argument.  If it's not NULL, store the line number
3618         there and return the file name without the line number.
3619
3620 2002-06-25  Dick Porter  <dick@ximian.com>
3621
3622         * icall.c:
3623         * process.h:
3624         * process.c: Process forking and other support functions
3625
3626 2002-06-25  Dick Porter  <dick@ximian.com>
3627
3628         * image.c (do_mono_image_open): Set ref_count to 1, so that bad
3629         things dont happen when the image is closed.
3630         (mono_image_lookup_resource): Walk the resource section looking
3631         for a particular entry
3632
3633         * cil-coff.h: PE resource section decoding
3634
3635 2002-06-25  Dick Porter  <dick@ximian.com>
3636         
3637         * assembly.h:
3638         * assembly.c: 
3639         (mono_assembly_foreach): Accessor functions to walk the list of
3640         loaded assemblies
3641         (mono_assembly_set_main):
3642         (mono_assembly_get_main): Process methods need to know which
3643         assembly is the "main" one
3644
3645         * object.c (mono_runtime_run_main): Record the main assembly
3646
3647         * debug-helpers.c: Fix typo
3648
3649 2002-06-24  Dietmar Maurer  <dietmar@ximian.com>
3650
3651         * icall.c (ves_icall_System_Runtime_InteropServices_Marshal_copy_to_unmanaged): impl.
3652         (ves_icall_System_Runtime_InteropServices_Marshal_copy_from_unmanaged): impl.
3653
3654 Sat Jun 22 11:37:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3655
3656         * icall.c: fix off-by-one in Assembly.GetTypes() reported by bob@karr.ath.cx.
3657
3658 2002-06-21  Miguel de Icaza  <miguel@ximian.com>
3659
3660         * image.c (do_mono_image_open): Initialize reference count,
3661         otherwise we leak the MonoImage.
3662
3663 Fri Jun 21 19:16:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3664
3665         * reflection.c: small tweak to handle self-hosting.
3666
3667 Thu Jun 20 23:28:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
3668
3669         * reflection.c: fix type name parse code.
3670
3671 Thu Jun 20 19:24:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3672
3673         * reflection.c: break out of the loop.
3674         * image.c: special case corlib.
3675
3676 Thu Jun 20 16:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3677
3678         * reflection.c: add all the custom attrs at the end to ensure the
3679         ctors have been properly initialized when the attributes are defined
3680         in the current assembly.
3681
3682 Thu Jun 20 13:46:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3683
3684         * reflection.c: handle correctly multiple-nested types.
3685
3686 Thu Jun 20 11:49:00 CEST 2002 Paolo Molaro <lupus@ximian.com>
3687
3688         * row-indexes.h: fix typos.
3689         * reflection.c: adjust for typos and fix method_def_or_ref
3690         encoding in MethodImpl table.
3691
3692 Wed Jun 19 21:57:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3693
3694         * reflection.c: fix entry point patching (thanks Serge!).
3695
3696 2002-06-18  Dietmar Maurer  <dietmar@ximian.com>
3697
3698         * verify.c: add check for System.Exception
3699
3700 Mon Jun 17 20:23:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
3701
3702         * image.c, class.c: minifix for code just c&p'ed.
3703         * reflection.c: warning fix.
3704         * object.h, loader.h, domain.c: load also StringBuilder.
3705
3706 Mon Jun 17 17:29:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
3707
3708         * marshal.h, marshal.c: some support code to handle complex marshaling.
3709
3710 Mon Jun 17 16:32:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3711
3712         * class.h, class.c, reflection.c: handle ignorecase in GetType ().
3713         Better signatures with vtable error dump.
3714
3715 Mon Jun 17 16:13:35 CEST 2002 Paolo Molaro <lupus@ximian.com>
3716
3717         * reflection.c, reflection.h, icall.c: fixes for multiple-nested types.
3718
3719 2002-06-17  Dietmar Maurer  <dietmar@ximian.com>
3720
3721         * icall.c (ves_icall_Type_GetField): impl.
3722
3723 Mon Jun 17 16:08:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3724
3725         * metadata.h, metadata.c: added mono_metadata_get_marshal_info()
3726         to retrieve a marshal description blob for a field or param.
3727
3728 Mon Jun 17 14:57:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
3729
3730         * reflection.h, reflection.c: change order of nested type emission
3731         to avoid table corruption. The NestedTypes table is sorted.
3732         * icall.c: change order of GetConstructor results to workaround mcs bug.
3733
3734 Fri Jun 14 16:24:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
3735
3736         * reflection.h, reflection.c: handle field and param marshal
3737         information.
3738
3739 Wed Jun 12 16:30:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
3740
3741         * icall.c, marshal.c marshal.h: more Marshal class implementation.
3742
3743 Tue Jun 11 17:29:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3744
3745         * reflection.c: fix call convention.
3746
3747 Tue Jun 11 16:52:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3748
3749         * reflection.h, reflection.c: mono_image_get_memberref_token()
3750         takes a type instead of a class, now. Added
3751         mono_image_get_array_token() to create tokens for the special
3752         multi-dim array methods.
3753
3754 Tue Jun 11 13:21:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
3755
3756         * assembly.c: handle modules (no assembly table). Split
3757         loading references in its own function.
3758         * class.c: handle moduleref resolution scope.
3759         * image.c, image.h: cache module name in image.
3760
3761 2002-06-07  Martin Baulig  <martin@gnome.org>
3762
3763         * reflection.c (mono_image_get_type_info): Only add a class layout entry
3764         if we actually have a `tb->class_size' (ie. it's not UnspecifiedTypeSize).
3765
3766 Fri Jun 7 22:07:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3767
3768         * icall.c: more signature fixes that used uint instead of int.
3769
3770 Fri Jun 7 20:41:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3771
3772         * reflection.c: fixed signature of field refs.
3773
3774 Fri Jun 7 19:41:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
3775
3776         * class.c, reflection.c: handle typerefs of nested types
3777         (both on read and when writing files).
3778
3779 Fri Jun 7 17:46:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
3780
3781         * icall.c: fix method signatures that tried to workaround the previous
3782         typo, d'oh!
3783
3784 Fri Jun 7 17:36:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
3785
3786         * debug-helpers.c: fix typo.
3787
3788 Fri Jun 7 17:00:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
3789
3790         * cil-coff.h, icall.c, image.c, reflection.c, reflection.h:
3791         rewrote the PE/COFF writing code (our programs are understood by the
3792         ms runtime, now).
3793
3794 Tue Jun 4 18:10:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
3795
3796         * gc.c, gc.h, icall.c: weakreference support.
3797
3798 Tue Jun 4 16:06:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
3799
3800         * Makefile.am, mono-config.c: use $(sysconfdir).
3801
3802 Mon Jun 3 13:13:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
3803
3804         * icall.c: changed default precision of Double.ToString() to 15.
3805         Fixed memory leak. Unified with Single.ToString.
3806
3807 Sat Jun 1 14:26:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
3808
3809         * sysmath.c: workaround systems missing NAN and/or HUGE_VAL.
3810
3811 Sat Jun 1 13:46:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
3812
3813         * pedump.c, appdomain.c, appdomain.h, assembly.c, domain.c,
3814         gc.c, icall.c, image.c, mono-config.c, reflection.c: killed
3815         warnings and compilation fixes from Dennis Haney (davh@davh.dk)
3816         and myself.
3817
3818 Fri May 31 16:58:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3819
3820         * debug-symfile.c, sysmath.c: yet more compilation fixes.
3821
3822 Fri May 31 16:35:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
3823
3824         * reflection.c, socket-io.c: more compilation fixes.
3825
3826 Fri May 31 15:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3827
3828         * appdomain.c, class.c, class.h, debug-symfile.c, decimal.c,
3829         domain.c, loader.c, object.c, object.h, reflection.c, string-icalls.h,
3830         unicode.c: warning and compiler compatibility fixes.
3831
3832 Fri May 31 15:36:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
3833
3834         * class.h, metadata.c: fixed warnings/compilation errors.
3835
3836 Fri May 31 13:08:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
3837
3838         * Makefile.am, mono-config.c, mono-config.h: configuration file
3839         support routines.
3840         * loader.c, loader.h: make Dll mapping configurable at runtime in the
3841         config file. Export methods to insert and lookup mappings.
3842
3843 Fri May 31 12:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
3844
3845         * reflection.c: handle types and boxed objects in custom attr
3846         constructors.
3847
3848 2002-05-30  Martin Baulig  <martin@gnome.org>
3849
3850         * debug-symfile.c
3851         (ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token): Removed.
3852
3853 Thu May 30 14:15:02 CEST 2002 Paolo Molaro <lupus@ximian.com>
3854
3855         * metadata.c, metadata.h: added mono_metadata_implmap_from_method()
3856         to lookup the implmap row for a P/Invoke method.
3857         * loader.c: added mono_lookup_pinvoke_call(): we only lookup a
3858         P/Invoke method from the runtime on an as needed basis.
3859
3860 2002-05-28  Dietmar Maurer  <dietmar@ximian.com>
3861
3862         * metadata.c (mono_metadata_parse_signature): impl.
3863
3864 Tue May 28 16:02:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
3865
3866         * class.c: handle .pack directive.
3867
3868 Tue May 28 11:04:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
3869
3870         * object.c: initialize static fields with RVA data.
3871
3872 2002-05-25  Martin Baulig  <martin@gnome.org>
3873
3874         * debug-symfile.c
3875         (ves_icall_Debugger_DwarfFileWriter_get_type_token): Removed.
3876
3877 2002-05-24  Martin Baulig  <martin@gnome.org>
3878
3879         * debug-symfile.c
3880         (ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig): Removed.
3881         (ves_icall_Debugger_MonoSymbolWriter_method_from_token): Renamed to
3882         `ves_icall_Debugger_MonoSymbolWriter_method_builder_from_token'.
3883
3884 Thu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
3885
3886         * object.c: special case string ctros in invoke.
3887         * gc.c: silly whitespace changes.
3888
3889 2002-05-23  Dietmar Maurer  <dietmar@ximian.com>
3890
3891         * threadpool.[ch]: impl. a threadpool that can
3892         be used by mint and mono.
3893
3894 2002-05-22  Martin Baulig  <martin@gnome.org>
3895
3896         * debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
3897         The first argument is now a `MonoReflectionModuleBuilder *', the return
3898         value is a `MonoReflectionModuleBuilder *'.  Use the AssemblyBuilder's
3899         `methods' field to get the method builder.  The `token' argument is the
3900         unfixed token.
3901
3902         * unicode.c (iconv_get_length, iconv_convert): Silently ignore all
3903         invalid characters instead of g_assert_not_reached()ing.  This seems
3904         to be the behaviour of mscorlib.
3905
3906 2002-05-22  Dietmar Maurer  <dietmar@ximian.com>
3907
3908         * object.c (mono_runtime_invoke_array): applied patch from Rachel
3909         Hestilow to fix bug #25104
3910
3911 2002-05-21  Martin Baulig  <martin@gnome.org>
3912
3913         * debug-symfile.c (mono_debug_find_source_location): New function.
3914         Looks up an IL offset in the line number table and returns the source
3915         location as a string.
3916
3917 2002-05-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3918
3919         * icall.c:
3920         (mono_double_ToStringImpl): changed %f by %g until we have something
3921         better.
3922
3923 2002-05-21  Nick Drochak  <ndrochak@gol.com>
3924
3925         * icall.c : Use different name for Math.Pow's icall.  Needed to check
3926         parameters first in C#.
3927
3928 Mon May 20 17:36:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
3929
3930         * icall.c, reflection.h: added icall to get info about an event.
3931
3932 2002-05-20  Radek Doulik  <rodo@ximian.com>
3933
3934         * object.c (mono_value_box): don't use memcpy for boxing on BIG
3935         endian
3936         (mono_value_box): don't use memcpy for small sizes on
3937         architectures with unaligned access
3938
3939 2002-05-20  Martin Baulig  <martin@gnome.org>
3940
3941         * reflection.c (mono_reflection_setup_internal_class): Don't crash
3942         if `tb->parent == NULL'.
3943         (mono_reflection_create_internal_class): New function.  This is
3944         called from TypeBuilder.CreateType() and sets `klass->enum_basetype'
3945         for enum types.
3946
3947         * icall.c ("System.Reflection.Emit.TypeBuilder::create_internal_class"):
3948         New interncall.
3949
3950 2002-05-19  Martin Baulig  <martin@gnome.org>
3951
3952         * unicode.c (ves_icall_iconv_get_bytes): Actually use the `charCount'
3953         argument to get the length, don't default to the array length.
3954
3955 2002-05-18  Miguel de Icaza  <miguel@ximian.com>
3956
3957         * assembly.c (mono_assembly_setrootdir): New function used to
3958         override the MONO_ASSEMBLIES directory.
3959
3960 Fri May 17 20:39:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
3961
3962         * icall.c: ValueType_GetHashCode() initialize local var.
3963
3964 Thu May 16 17:20:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
3965
3966         * reflection.c: sort custom attributes table.
3967
3968 Thu May 16 16:08:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
3969
3970         * reflection.c: support named args in custom attributes (write support).
3971
3972 Thu May 16 13:04:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
3973
3974         * reflection.c: fix finally position calculation.
3975
3976 2002-05-15  Radek Doulik  <rodo@ximian.com>
3977
3978         * reflection.c: fixed endianess at many places
3979
3980         * icall.c (ves_icall_InitializeArray): comment out debug msg
3981
3982 2002-05-15  Dietmar Maurer  <dietmar@ximian.com>
3983
3984         * object.c (mono_unhandled_exception): new function to handle
3985         unhandled exceptions.
3986         (mono_unhandled_exception): call the UnhandledException event.
3987         (mono_runtime_delegate_invoke): impl.
3988
3989 Wed May 15 15:59:55 CEST 2002 Paolo Molaro <lupus@ximian.com>
3990
3991         * metadata.h, metadata.c, class.c: mono_metadata_field_info ()
3992         returns the RVA, not the direct pointer to the data. Handle the case
3993         when the class size is fixed.
3994
3995 Tue May 14 16:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
3996
3997         * reflection.c: fix some endianess issues.
3998
3999 2002-05-14  Dietmar Maurer  <dietmar@ximian.com>
4000
4001         * object.c (mono_runtime_invoke): is now able to catch exceptions.
4002
4003         * threads.c (mono_thread_init): added a callback which is invoked
4004         at thread start.
4005
4006 2002-05-14  Dan Lewis  <dihlewis@yahoo.co.uk>
4007         
4008         * icall.c: make GetHashCode return non-negative values.
4009
4010 2002-05-14  Dan Lewis  <dihlewis@yahoo.co.uk>
4011
4012         * object.c, icall.c, gc.c: revert to address-based hashcode.
4013
4014 2002-05-13  Miguel de Icaza  <miguel@ximian.com>
4015
4016         * icall.c (mono_double_ParseImpl): Added ParseImpl method.
4017
4018 Mon May 13 16:40:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
4019
4020         * icall.c, class.c: special case <Module>.
4021
4022 2002-05-13  Dan Lewis  <dihlewis@yahoo.co.uk>
4023
4024         * icall.c: fix bug in GetNow().
4025
4026 2002-05-11  Dietmar Maurer  <dietmar@ximian.com>
4027
4028         * object.c (mono_runtime_class_init): make sure that we call all
4029         static class constructors.
4030
4031 Fri May 10 18:14:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
4032
4033         * reflection.c: sort methodsemantics table.
4034
4035 Fri May 10 16:31:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
4036
4037         * reflection.h, reflection.c: honour init locals setting.
4038
4039 Thu May 9 18:50:00 EDT 2002 Daniel Morgan <danmorg@sc.rr.com>
4040
4041         * icall.c: copied Double ToStringImpl for Single ToStringImpl
4042
4043 Wed May 8 12:28:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
4044
4045         * reflection.c: support ContructorBuilders in attribute blob creation.
4046
4047 Wed May 8 12:06:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4048
4049         * reflection.c: some changes to build a binary that can be run
4050         directly in windows.
4051
4052 Mon May 6 13:10:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
4053
4054         * loader.c: print a big message when an icall can't be found.
4055
4056 2002-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4057
4058         * string-icalls.c: fix bug 24248.
4059
4060 Sat May 4 14:03:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
4061
4062         * appdomain.c, appdomain.h, assembly.c, assembly.h, image.h,
4063         icall.c, reflection.h: separate assembly loading by pathname and by
4064         assembly name. Use the MONO_PATH env var to search for assemblies.
4065
4066 Thu May 2 17:56:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
4067
4068         * assembly.c, image.h: add some support for assemblies
4069         with multiple modules.
4070         * class.c, class.h: export mono_class_from_typeref().
4071         * loader.c: remove duplicated code and use mono_class_from_typeref(),
4072         instead.
4073
4074 Thu May 2 15:51:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4075
4076         * unicode.c: Char.IsNumber doesn't include hex digits as the ms
4077         documentation says (the ECMA one is correct).
4078
4079 2002-05-02  Dick Porter  <dick@ximian.com>
4080
4081         * threads.c: Use GC_debug_register_finalizer with GC_debug_malloc.
4082         Don't name the synchronisation mutex.
4083
4084 2002-04-30  Jeffrey Stedfast  <fejj@ximian.com>
4085
4086         * rand.c
4087         (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetBytes):
4088         Make the prototypes match.
4089         (ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_GetNonZeroBytes):
4090         Same.
4091
4092         * icall.c
4093         (ves_icall_System_CurrentTimeZone_GetTimeZoneData): Fixed for
4094         systems that use 'timezone' rather than tm.tm_gmtoff. Also, not
4095         all systems have tm.tm_zone, so use strftime() with %Z to print
4096         the timezone abreviation into a temp string.
4097
4098         * object.c (mono_ldstr): Fixed to use mono_string_chars() macro
4099         rather than mono_array_addr() on a MonoString on Big Endian
4100         machines.
4101
4102 2002-04-30  Dietmar Maurer  <dietmar@ximian.com>
4103
4104         * string-icalls.c (ves_icall_System_String_InternalReplace_Str):
4105         fix bug 24041
4106
4107 2002-04-30  Dick Porter  <dick@ximian.com>
4108
4109         * socket-io.c: Cope with SOCKET being an integer rather than a
4110         pointer now.
4111
4112         * threads.c: Added Thread_free_internal, to deal with thread
4113         handle cleanup.  Moved calls to handle_store() and handle_remove()
4114         to start_wrapper(), so each can only be called once.  Allocate
4115         synchronisation blocks with GC_malloc(), and use GC finalisation
4116         to close the handles.
4117
4118         * icall.c: added System.Threading.Thread::Thread_free_internal
4119
4120 Mon Apr 29 15:33:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4121
4122         * icall.c: support Environment.Exit, CommandLineArgs().
4123
4124 Mon Apr 29 15:15:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
4125
4126         * object.c, object.h: added mono_runtime_run_main () and
4127         mono_runtime_get_main_args () for use in System.Environment.
4128
4129 Mon Apr 29 13:45:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
4130
4131         * gc.c: fix thinko, enable actual finalization since the jit is now
4132         fixed.
4133
4134 Mon Apr 29 12:47:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4135
4136         * gc.c, object.c: take into account that an object may be offset wrt the address
4137         returned by GC_malloc().
4138
4139 Mon Apr 29 12:14:39 CEST 2002 Paolo Molaro <lupus@ximian.com>
4140
4141         * image.c: handle files without entries in the assembly table (modules).
4142
4143 2002-04-28 Patrik Torstensson <patrik.torstensson@intel.com>
4144
4145         * reflection.c (mono_reflection_setup_internal_class): remove g_assert_not_reached() to allow 
4146         mcs selfhosting again (build breaker) and did move the check to class instead. parent is
4147         allowed to be null when it's System.Object class setup.
4148
4149 2002-04-27  Martin Baulig  <martin@gnome.org>
4150
4151         * reflection.c (mono_reflection_setup_internal_class): g_assert_not_reached()
4152         if `tb->parent == NULL' rather than crashing.
4153
4154 2002-04-28  Nick Drochak  <ndrochak@gol.com>
4155
4156         * sysmath.c (ves_icall_System_Math_Asin): Fix copy-paste error.  Was
4157         calling acos() where asin() should have been called.
4158
4159 2002-04-26  Martin Baulig  <martin@gnome.org>
4160
4161         * assembly.c (default_assembly_name_resolver): Use G_FILE_TEST_IS_REGULAR
4162         instead of G_FILE_TEST_EXISTS - if you're in mcs/class/corlib/System/Test,
4163         there's a subdirectory called `System', but we don't want to read that
4164         subdirectory as an assembly.
4165
4166 2002-04-25  Martin Baulig  <martin@gnome.org>
4167
4168         * debug-symfile.c: Reflect latest MonoString changes.
4169
4170 Thu Apr 25 16:38:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
4171
4172         * rand.c, rand.h: instance method icalls need to have an explicit
4173         this pointer as first argument in the C implementation.
4174
4175 2002-04-25  Nick Drochak <ndrochak@gol.com>
4176
4177         * icall.c: Fix typo in map for GetNonZeroBytes
4178
4179 2002-04-24      Patrik Torstensson <patrik.torstensson@labs2.com>
4180
4181         * string-icalls.c : String does now passes unit tests without any 
4182         errors, the following changes has been made:
4183         
4184         Implemented replace methods.
4185         Renaming of methods to (try) follow the standard.
4186         Fixed compare ordinal
4187         Made all memory allocated directly to function instead of via icall function.
4188         Small performance fix in is_in_array function
4189                         
4190  (2002-04-23) Changes from Duncan Mak <duncan@ximian.com>
4191
4192         c (mono_string_Internal_ctor_charp_int_int):
4193         (mono_string_Internal_ctor_sbytep_int_int):  Removed check for
4194         sindex < 0, throw ArgumentOutOfRangeException instead of
4195         ArgumentNullException.
4196
4197         Added new check for length == 0, however
4198         I need to make it return String.Empty from the C code.
4199         
4200         (mono_string_Internal_ctor_sbytep): Use mono_string_new, and let
4201         that calculate the length for us here.
4202         
4203         (mono_string_Internal_ctor_sbytep_int_int): Replaced
4204         mono_string_new_utf16 with mono_string_new, since value is utf8.
4205
4206 Wed Apr 24 18:43:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4207
4208         * object.c: register the object for finalization if needed.
4209         Allocate one more char in the string for the terminating 0 char.
4210
4211 Wed Apr 24 18:22:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
4212
4213         * class.c, class.h, image.c: check if a type implemenst a destructor.
4214         Use the proper key for array class lookups.
4215         * icall.c: register the icalls in the System.GC class.
4216         * gc.c, gc.h: GC-related functions and icalls.
4217
4218 2002-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4219
4220         * icall.c:
4221         * socket-io.c:
4222         * unicode.c: free some strings gotten from mono_string_to_utf8 and
4223         changed a couple of free () by g_free ().
4224
4225         * decimal.c: one-liner in the comments for decimal2string ().
4226
4227 2002-04-24      Patrik Torstensson <patrik.torstensson@labs2.com>
4228
4229         * object.c (mono_runtime_invoke_array) : Bug because of my incompetence.
4230
4231 2002-04-24      Patrik Torstensson <patrik.torstensson@labs2.com>
4232
4233         * reflection.c (mono_reflection_get_custom_attrs) : fixed image bug (crash)
4234         * object.c (mono_runtime_invoke_array) : handle null in params
4235
4236 2002-04-23      Patrik Torstensson <patrik.torstensson@labs2.com>
4237
4238         * string-icalls.c: fixed bug in split (one off bug)
4239
4240 2002-04-23      Patrik Torstensson <patrik.torstensson@labs2.com>
4241
4242         * string-icalls.c: fixed bug in remove and lastindexofany, add equals icall.
4243         * icalls.c: added String::Equals as internal method
4244
4245 2002-04-23      Patrik Torstensson <patrik.torstensson@labs2.com>
4246
4247         * threads.c: fixed bug in the double interlocked functions
4248
4249 2002-04-22      Patrik Torstensson <patrik.torstensson@labs2.com>
4250
4251         * threads.c: implemented all of the new interlocked icalls.
4252         * string-icalls.c: fix a bug in insert.
4253         * icalls.c: added the icalls for interlocked, removed old string functions.
4254         
4255 Mon Apr 22 19:44:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4256
4257         * loader.c: fix off-by-one error when reading argument names.
4258
4259 Mon Apr 22 19:28:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4260
4261         * profiler.c: win32 counter implementation (untested).
4262         * icall.cs: win32 GetNow() and GetTimeZoneData() implementations
4263         (the latter needs testing and more complete impl. from win32 folks).
4264
4265 2002-04-21  Dan Lewis  <dihlewis@yahoo.co.uk>
4266
4267         * object.c: mono_array_new_full workaround mono_array_class_get
4268         problem.
4269
4270 2002-04-17      Patrik Torstensson <patrik.torstensson@labs2.com>
4271
4272         * string-icalls.c (mono_string_InternalRemove): Fixed overwrite bug.
4273         * object.h (mono_string_chars): Changed casting type.
4274
4275 2002-04-17      Patrik Torstensson <patrik.torstensson@labs2.com>
4276
4277         * string-icalls.c: Fixed trim method, added the constructors done by Duncan, fixed
4278                            method signatures to use gunichar2 instead of gint16.
4279
4280 2002-04-20  Dan Lewis  <dihlewis@yahoo.co.uk>
4281
4282         * object.h, object.c: domain-specific versions of mono_object_new and
4283         mono_array_new.
4284
4285 2002-04-20  Dietmar Maurer  <dietmar@ximian.com>
4286
4287         * object.c: changed String layout
4288
4289         * string-icalls.c (mono_string_Internal_ctor_chara): added
4290         internal string constructors.
4291
4292 Sat Apr 20 13:33:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
4293
4294         * threads.c: pass 'this' to the thread start routine.
4295
4296 2002-04-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4297
4298         * string-icalls.c: fix IndexOf and LastIndexOf. Now
4299         InternalCompareStr don't call twice mono_string_cmp_char for the last
4300         character. Improved performance in mono_string_cmp_char.
4301
4302 Fri Apr 19 19:26:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
4303
4304         * Makefile.am, appdomain.c, class.c, object.c: split runtime-depended
4305         code into its own library: libmonoruntime.
4306
4307 2002-04-19  Dan Lewis  <dihlewis@yahoo.co.uk>
4308
4309         * object.h, object.c: changed array format so that szarrays do not
4310         require a bounds structure.
4311         * icall.c, appdomain.c: support for new szarray format.
4312
4313 Fri Apr 19 18:04:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
4314
4315         * metadata.c: compare also the retuns type when comparing signatures:
4316         we didn't do this as an optimization since really overloaded methods
4317         must differ also in the arguments, but this doesn't work with
4318         low-level IL code (or when using explicit conversion operators: see
4319         bug#23498 for an example).
4320
4321 Fri Apr 19 16:14:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
4322
4323         * loader.c: SZARRAY types can be saved as TYPESPEC, too.
4324
4325 Thu Apr 18 17:15:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
4326
4327         * icall.c: make MonoType::GetElementType its own icall.
4328
4329 Thu Apr 18 16:41:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
4330
4331         * icall.c: remove MonoMethod_get_Name().
4332         * reflection.c, reflection.h, verify: cache the method name in the MonoMethod
4333         object.
4334
4335 2002-04-17      Patrik Torstensson <patrik.torstensson@labs2.com>
4336
4337         * string-icalls.c: optimized a few methods.
4338
4339 2002-04-17      Patrik Torstensson <patrik.torstensson@labs2.com>
4340
4341         * icall.c: added all new string internal calls
4342         * string-icalls.c: added, new string internal call implementation.
4343         * object.c: added mono_string_new_size for allocating a string a size
4344
4345 2002-04-17  Dietmar Maurer  <dietmar@ximian.com>
4346
4347         * object.c (mono_object_isinst): use the same code as in the
4348         optimized x86 version.
4349
4350 Wed Apr 17 14:14:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
4351
4352         * profiler.c: TSC-based timer code (faster and more accurate).
4353         Not hooked up in configure, yet (set USE_X86TSC to 1).
4354
4355 Wed Apr 17 12:33:10 CEST 2002 Paolo Molaro <lupus@ximian.com>
4356
4357         * profiler.c, profiler.h: track time spent compiling methods.
4358         * threads.c: track thread creation/destruction.
4359
4360 Tue Apr 16 20:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
4361
4362         * profiler.c, profiler.h, profiler-private.h: profiling interface
4363         and sample implementation. Moved here so that it can be used also by
4364         the jit.
4365
4366 Tue Apr 16 12:58:12 CEST 2002 Paolo Molaro <lupus@ximian.com>
4367
4368         * reflection.c, reflection.h: keep types and other handles separate in
4369         the hash tables for referred tokens. Add guid for modules.
4370
4371 Mon Apr 15 11:37:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
4372
4373         * assembly.c: fix bugs found with valgrind.
4374         * metadata.h, metadata.c: added mono_metadata_guid_heap().
4375
4376 2002-04-14      Patrik Torstensson <patrik.torstensson@labs2.com>
4377
4378         * threads: added icall support for getting current domain for
4379                    the thread.
4380  
4381 2002-04-13  Martin Baulig  <martin@gnome.org>
4382
4383         * debug-symfile.h (MonoDebugLocalInfo): Renamed to MonoDebugVarInfo.
4384         (MonoDebugVarInfo): Added `index' field for register based addresses.
4385         (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 9.
4386         (MonoDebugMethodInfo): Replaced `guint32 *param_offsets' with
4387         `MonoDebugVarInfo *params' and `guint32 this_offset' with
4388         `MonoDebugVarInfo *this_var'.
4389
4390         * debug-symfile.c (relocate_variable): New static function to write
4391         a location description for a local variable or method parameter.
4392
4393 2002-04-12  Martin Baulig  <martin@gnome.org>
4394
4395         * debug-symfile.h (MonoDebugLocalInfo): New type. This contains the
4396         stack offset and begin/end scope address of a local variable.
4397         (MonoDebugMethodInfo): Replaced `guint32 *local_offsets' with
4398         'MonoDebugLocalInfo *locals', added `prologue_end' and `epilogue_begin'.
4399         (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 8.
4400
4401         * debug-symfile.c (MRT_variable_start_scope, MRT_variable_end_scope):
4402         Added new relocation types for start/end scope of a local variable.
4403
4404 Fri Apr 12 18:30:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
4405
4406         * object.h: add mono_object_domain() macro.
4407         * reflection.c: handle typespecs.
4408         * icall.c: MonoMethod::get_Name() implementation.
4409
4410 Thu Apr 11 12:29Ni:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4411
4412         * icall.c: String::GetHashCode() icall implementation.
4413
4414 Wed Apr 10 21:16:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4415
4416         * icall.c: String::IndexOfAny icall.
4417         * object.c, object.h: make array->max_length more useful.
4418         Intrduced mono_object_class() and mono_string_length() macros.
4419
4420 2002-04-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4421
4422         * unicode.c (ves_icall_System_Char_IsNumber): use g_unichar_isxdigit
4423         instead of g_unichar_isdigit.
4424
4425 2002-04-11  Nick Drochak  <ndrochak@gol.com>
4426
4427         * icall.c: Implement a simple Double.ToString().
4428
4429 Tue Apr 9 21:31:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
4430
4431         * appdomain.h: only io-layer.h is supposed to be included.
4432         * icall.c: explicitly import environ. Fix warning.
4433
4434 2002-04-10  Nick Drochak  <ndrochak@gol.com>
4435
4436         * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData) :
4437                 return true even if it's not Daylight Savings time.
4438                 Only return false for the case where the function isn't
4439                 implemented for a plaform (read Windows).
4440
4441 Tue Apr 9 13:05:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
4442
4443         * appdomain.h, appdomain.c, class.c, object.c: protect MonoDomain
4444         data with a mutex.
4445
4446 2002-04-09  Dietmar Maurer  <dietmar@ximian.com>
4447
4448         * mempool.c (mono_mempool_alloc): only use g_malloc when
4449         absolutely necessary.
4450
4451 2002-04-08  Dietmar Maurer  <dietmar@ximian.com>
4452
4453         * mempool.c (MEM_ALIGN): hardcode MEM_ALIGN to 8
4454
4455         * class.c (mono_class_vtable): use domain mempool to allocate vtable
4456         (mono_class_proxy_vtable): use domain mempool
4457
4458 Mon Apr 8 17:17:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
4459
4460         * appdomain.h, appdomain.c: split initialization that requires the
4461         execution engine support into mono_runtime_init().
4462
4463 2002-04-08  Dietmar Maurer  <dietmar@ximian.com>
4464
4465         * class.c (mono_class_init): don't include vtable inside MonoClass
4466         to save some memory, gather some statistics.
4467         (mono_class_vtable): use g_malloc instead of GC_malloc when possible
4468
4469 Sat Apr 6 20:07:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4470
4471         * icall.c: internalcall implementation for ValueType.Equals().
4472
4473 2002-04-06  Dietmar Maurer  <dietmar@ximian.com>
4474
4475         * object.c (mono_message_init): moved 
4476         (mono_runtime_exec_main): new arch. independent impl.
4477         (mono_runtime_invoke_array): new method - like
4478         mono_runtime_invoke, but you can pass an array of objects.
4479         (mono_remoting_invoke): new arch. independent impl.
4480         (mono_message_invoke): new arch. independent impl.
4481         (mono_runtime_class_init): new arch. independent impl.
4482         (mono_runtime_object_init): new arch. independent impl.
4483
4484 Fri Apr 5 18:29:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
4485
4486         * metadata.c, object.c, reflection.c: documented the exported
4487         functions.
4488
4489 Fri Apr 5 15:42:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
4490
4491         * icall.c: simpler code to pass the assembly builder data to corlib.
4492         Implement GetNestedTypes() internalcall.
4493
4494 Thu Apr 4 21:46:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
4495
4496         * class.c: warn if a type can't be loaded.
4497
4498 2002-04-04  Dietmar Maurer  <dietmar@ximian.com>
4499
4500         * image.h: typedef MonoImageOpenStatus
4501         * types.h: removed unused file
4502         
4503 2002-04-04  Dan Lewis  <dihlewis@yahoo.co.uk>
4504
4505         * icall.c: Enum_ToObject accepts enum value arguments.
4506
4507 Thu Apr 4 11:35:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
4508
4509         * class.c: move initialization of properties, events and nested
4510         classes, so that they happen for interfaces, too.
4511
4512 Wed Apr 3 20:03:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
4513
4514         * icall.c: cleanup some ugly casts in Array_SetValue*.
4515
4516 Wed Apr 3 19:49:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
4517
4518         * icall.c: the values array fro enums is of the correct type, now.
4519         Implement (correctly) getFullName instead of assQualifiedName for
4520         MonoType.
4521         * reflection.h, reflection.c: added mono_type_get_name ().
4522
4523 Wed Apr 3 17:56:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
4524
4525         * assembly.c, image.h: for each MonoImage, record from wich assembly
4526         it was loaded.
4527         * reflection.h, icall.c: added System_Reflection_Assembly_GetTypes().
4528         Make Type.Assembly work.
4529
4530 2002-04-03  Dietmar Maurer  <dietmar@ximian.com>
4531
4532         * debug-symfile.h: use char* instead of gpointer to avoid
4533         unnecessary casts.
4534
4535         * appdomain.c (mono_jit_info_table_find): use char* instead of gpointer
4536
4537         * icall.c (ves_icall_InternalExecute): impl. FielSetter
4538         (ves_icall_System_Array_SetValueImpl): removed strange MonoArray cast
4539
4540 2002-03-30  Dietmar Maurer  <dietmar@ximian.com>
4541
4542         * icall.c (mono_message_init): impl. (code cleanup)
4543         (ves_icall_InternalExecute): impl. FieldGetter
4544
4545         * class.c (mono_class_init): added exerimental EXT_VTABLE_HACK, if
4546         defined we call all (non-static)methods through the vtable. 
4547
4548 Fri Mar 29 18:09:08 CET 2002 Paolo Molaro <lupus@ximian.com>
4549
4550         * class.c: it seems GC_debug_malloc() makes the Boehm GC call the
4551         finalizer even though the memory is still referenced (and the chunk of
4552         memory is not freed).
4553
4554 Fri Mar 29 17:43:04 CET 2002 Paolo Molaro <lupus@ximian.com>
4555
4556         * assembly.c: fix brokeness.
4557
4558 Fri Mar 29 16:09:54 CET 2002 Paolo Molaro <lupus@ximian.com>
4559
4560         * class.c: kill some warnings. Check explicit interface method
4561         implementation also without considering the namespace.
4562         Load also literal strings in static class data.
4563
4564 2002-03-29  Miguel de Icaza  <miguel@ximian.com>
4565
4566         * assembly.c (default_assembly_name_resolver): Kill memory leak. 
4567         (default_assembly_name_resolver): Make the resolver take the
4568         "base" directory where the assembly was originally defined, so we
4569         can load DLLs that are in the same directory as the assembly that
4570         is being referenced.
4571
4572 2002-03-28  Dick Porter  <dick@ximian.com>
4573
4574         * file-io.h: 
4575         * file-io.c:
4576         * socket-io.c: 
4577         * unicode.h: 
4578         * unicode.c: Warning cleanups
4579
4580 Thu Mar 28 18:06:14 CET 2002 Paolo Molaro <lupus@ximian.com>
4581
4582         * object.h, reflection.h: use the correct type instead of MonoObject.
4583
4584 2002-03-28  Martin Baulig  <martin@gnome.org>
4585
4586         * debug-symfile.c (mono_debug_class_get): Don't look in referenced assemblies.
4587         (mono_debug_update_symbol_file): Initialize classes if necessary.
4588
4589 Thu Mar 28 15:58:43 CET 2002 Paolo Molaro <lupus@ximian.com>
4590
4591         * assembly.c, debug-helpers.c, image.c, image.h, metadata.c, pedump.c,
4592         rawbuffer.c, reflection.c, verify.c: mare warning cleanups.
4593
4594 Thu Mar 28 15:20:39 CET 2002 Paolo Molaro <lupus@ximian.com>
4595
4596         * assembly.h: fix function prototype.
4597         * metadata.h, metadata.c, object.h, private.h: get rid of warnings.
4598         * mono-endian.h: use const cast.
4599
4600 2002-03-28  Dietmar Maurer  <dietmar@ximian.com>
4601
4602         * icall.c (ves_icall_MonoMethodMessage_InitMessage): moved from message.c
4603
4604 Thu Mar 28 12:32:00 CET 2002 Paolo Molaro <lupus@ximian.com>
4605
4606         * loader.c: don't assert when a typeref can't be loaded, give
4607         a chance to the runtime to trow an exception instead.
4608         * loader.h: fix warning.
4609
4610 2002-03-28  Dietmar Maurer  <dietmar@ximian.com>
4611
4612         * class.c (mono_class_proxy_vtable): added proxy support
4613
4614 2002-03-27  Dan Lewis <dihlewis@yahoo.co.uk>
4615
4616         * icall.c: removed last of PAL calls, added System.Environment
4617         * file-io.h, file-io.c: MonoIO implementation
4618         * object.h, object.c: mono_string_to_utf16() now returns gunichar2*
4619
4620 Tue Mar 26 19:56:10 CET 2002 Paolo Molaro <lupus@ximian.com>
4621
4622         * appdomain.c: do not use the byte marker in ldstr table lookup.
4623         * debug-helpers.c: allow two ':' to separate class and method name.
4624         * object.c: allocate arrays bounds with the GC, too.
4625         * verify: add a few more checks.
4626
4627 Tue Mar 26 18:45:46 CET 2002 Paolo Molaro <lupus@ximian.com>
4628
4629         * reflection.c: output also literal strings. Allocate parameter data
4630         with GC_malloc() (thanks, Martin, for catching this!).
4631
4632 2002-03-26  Martin Baulig  <martin@gnome.org>
4633
4634         * debug-symfile.h (MonoDebugMethodInfo): Added `this_offset', don't
4635         include the `this' offset in the `param_offsets'.
4636
4637 2002-03-25  Martin Baulig  <martin@gnome.org>
4638
4639         * debug-symfile.c (mono_debug_update_symbol_file): Use a new
4640         mono_debug_get_class() function to get the classes. Added new
4641         relocation types for arrays and strings.
4642         (mono_debug_get_class): New static function to search in all
4643         referenced assemblies for a metadata token.
4644
4645         * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 7.
4646
4647 Mon Mar 25 13:08:18 CET 2002 Paolo Molaro <lupus@ximian.com>
4648
4649         * reflection.h, reflection.c: use a gc-safe hash for hash tables that
4650         hold gc-allocated objects. Make the string heap a stream like the
4651         others. Removed duplicated code when writing stream info.
4652         Added asserts to catch possible buffer overflows. Set the sorted map
4653         for tables that need sorting. Added some documentation.
4654
4655 Mon Mar 25 13:04:56 CET 2002 Paolo Molaro <lupus@ximian.com>
4656
4657         * appdomain.h, appdomain.c, class.c, object.c: use a GC-safe hash table 
4658         for interned strings and vtables.
4659
4660 2002-03-24  Martin Baulig  <martin@gnome.org>
4661
4662         * icall.c (ves_icall_Type_GetFields): Reverse the list before storing
4663         it in the array since it was created with g_slist_prepend().
4664
4665 2002-03-24  Martin Baulig  <martin@gnome.org>
4666
4667         * debug-symfile.c (mono_debug_local_type_from_signature): Renamed
4668         to ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig().
4669         (mono_debug_method_from_token): Renamed to
4670         ves_icall_Debugger_MonoSymbolWriter_method_from_token().
4671         (ves_icall_Debugger_DwarfFileWriter_get_type_token): New interncall.
4672
4673         * debug-symfile.c (MRT_type_sizeof, MRT_type_field_offset): New
4674         relocation types.
4675
4676         * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 6.
4677
4678 2002-03-24  Martin Baulig  <martin@gnome.org>
4679
4680         * debug-symfile.c (mono_debug_local_type_from_signature): New func.
4681         (mono_debug_method_from_token): New func.
4682
4683         * icall.c (Mono.CSharp.Debugger.MonoSymbolWriter::get_local_type_from_sig):
4684         New interncall, calls mono_debug_local_type_from_signature().
4685         (Mono.CSharp.Debugger.MonoSymbolWriter::get_method): New interncall,
4686         calls mono_debug_method_from_token().
4687
4688 2002-03-23  Martin Baulig  <martin@gnome.org>
4689
4690         * unicode.c (ves_icall_iconv_get_char_count): The `count' argument
4691         specifies the number of bytes to be converted, not the array size.
4692         Return the number of chars, not the number of bytes.
4693         (ves_icall_iconv_get_chars): The `byteCount' argument
4694         specifies the number of bytes to be converted, not the array size.
4695
4696 2002-03-23  Martin Baulig  <martin@gnome.org>
4697
4698         * reflection.h (MonoReflectionSigHelper): New type.
4699
4700         * reflection.c (mono_reflection_sighelper_get_signature_local),
4701         (mono_reflection_sighelper_get_signature_local): New functions.
4702
4703         * icall.c (System.Reflection.Emit.SignatureHelper::get_signature_local),
4704         (System.Reflection.Emit.SignatureHelper::get_signature_field): New
4705         interncalls.
4706
4707 2002-03-23  Martin Baulig  <martin@gnome.org>
4708
4709         * rawbuffer.c (mono_raw_buffer_load_mmap): Use MAP_SHARED when
4710         is_writeable is set.
4711         (mono_raw_buffer_update): New function to write the modified map
4712         back to disk.
4713
4714         * debug-symfile.h (MonoDebugSymbolFile): Added `raw_contents_size'.
4715
4716         * debug-symfile.c (mono_debug_update_symbol_file): Call
4717         mono_raw_buffer_update() when done writing.
4718
4719 2002-03-23  Martin Baulig  <martin@gnome.org>
4720
4721         * debug-symfile.h (MONO_DEBUG_SYMBOL_FILE_VERSION): Increased to 5.
4722
4723         * debug-symfile.c: Added support for arguments and local variables.
4724
4725 2002-03-23  Dick Porter  <dick@ximian.com>
4726
4727         * debug-symfile.c: Remove extraneous 'include <elf.h>' that wasn't
4728         protected by ifdefs, hence breaking the w32 build.
4729
4730 Thu Mar 21 17:35:01 CET 2002 Paolo Molaro <lupus@ximian.com>
4731
4732         * object.c: implement is_interned() the right way.
4733
4734 2002-03-21  Martin Baulig  <martin@gnome.org>
4735
4736         * debug-symfile.[ch]: New files to handle debugging information
4737         files. There's also support to dynamically update these symbol
4738         files to include machine dependent information.
4739
4740 2002-03-20  Dietmar Maurer  <dietmar@ximian.com>
4741
4742         * threads.c (mono_thread_create): new function to create thread
4743         from C
4744
4745 2002-03-20  Martin Baulig  <martin@gnome.org>
4746
4747         * icall.c (ves_icall_InternalInvoke): Create a new object if the
4748         method is a constructor.
4749         (icall_map): Added "System.Reflection.MonoCMethod::InternalInvoke",
4750         points to ves_icall_InternalInvoke().
4751
4752 2002-03-20  Dan Lewis <dihlewis@yahoo.co.uk>
4753
4754         * file-io.c: Flush shouldn't throw exceptions.
4755
4756 2002-03-19  Dan Lewis <dihlewis@yahoo.co.uk>
4757
4758         * file-io.c: FileStream flush support; FileSetLength now
4759         restores file pointer.
4760
4761 Tue Mar 19 18:17:21 CET 2002 Paolo Molaro <lupus@ximian.com>
4762
4763         * class.c: set image for pointer classes.
4764
4765 2002/03/19  Nick Drochak <ndrochak@gol.com>
4766
4767         * sysmath.c: Forgot one.
4768
4769 2002-03-18  Miguel de Icaza  <miguel@ximian.com>
4770
4771         * sysmath.c: Avoid redefining existing names.
4772
4773 2002-03-18  Dan Lewis <dihlewis@yahoo.co.uk>
4774
4775         * sysmath.c, sysmath.h, icall.c, Makefile.am: math routines now
4776         handled by runtime as icall rather than dllimport from libm.so
4777         * file-io.c, file-io.h: fixed handle argument type.
4778
4779 2002-03-18  Dick Porter  <dick@ximian.com>
4780
4781         * reflection.c (mono_image_get_type_info): rename interface to
4782         iface, because of "#define interface struct" on windows.
4783
4784 Sat Mar 16 19:18:38 CET 2002 Paolo Molaro <lupus@ximian.com>
4785
4786         * class.c, class.h: rename and export mono_ptr_class_get().
4787         * metadata.c: support MONO_TYPE_ARRAY in MonoType compare.
4788         * reflection.c, reflection.h, icall.c: better/saner type name
4789         parsing and MonoType creation. Handle MONO_TYPE_ARRAY in
4790         method signatures.
4791
4792 2002-03-14  Dietmar Maurer  <dietmar@ximian.com>
4793
4794         * class.c (mono_class_init): removed hardcoded GHC_SLOT
4795
4796         * icall.c (ves_icall_InternalInvoke): impl.
4797
4798 Wed Mar 13 00:27:30 CET 2002 Paolo Molaro <lupus@ximian.com>
4799
4800         * reflection.c: output the interface map table, too.
4801
4802 2002-03-12  Dietmar Maurer  <dietmar@ximian.com>
4803
4804         * class.c (class_compute_field_layout): separate computation of 
4805         static field layout
4806
4807 2002-03-12  Dan Lewis <dihlewis@yahoo.co.uk>
4808
4809         * icall.c: added System.Buffer support.
4810         * file-io.c: moved file icalls from PAL to FileStream.
4811
4812 2002-03-12  Dietmar Maurer  <dietmar@ximian.com>
4813
4814         * icall.c (ves_icall_System_Object_GetHashCode): impl.
4815
4816 2002-03-11  Dietmar Maurer  <dietmar@ximian.com>
4817
4818         * icall.c (ves_icall_System_ValueType_GetHashCode): impl.
4819
4820 Mon Mar 11 14:45:42 CET 2002 Paolo Molaro <lupus@ximian.com>
4821
4822         * verify.c, verify.h: moved here the corlib/runtime consistency checks.
4823
4824 Mon Mar 11 11:12:23 CET 2002 Paolo Molaro <lupus@ximian.com>
4825
4826         * debug-helpers.{c,h}: moved here from monograph some useful functions
4827         to locate a method by name/signature in a class or image. Included
4828         also a small and flexible IL disassembler.
4829
4830 Fri Mar 8 16:29:29 CET 2002 Paolo Molaro <lupus@ximian.com>
4831
4832         * reflection.c: fixup tokens in methods with small header size, too.
4833
4834 2002-03-08  Dietmar Maurer  <dietmar@ximian.com>
4835
4836         * object.c (mono_string_to_utf8): remove assert(!error), instead
4837         print a warning. 
4838
4839 Thu Mar 7 18:55:15 CET 2002 Paolo Molaro <lupus@ximian.com>
4840
4841         * icall.c: update to the new mono_Array_class_get interface.
4842
4843 Thu Mar 7 17:23:26 CET 2002 Paolo Molaro <lupus@ximian.com>
4844
4845         * appdomain.c, object.c: Boehm-GC enable.
4846         * icall.c: make get_data_chunk() support split data requests.
4847         Ensure a class is initialized in more cases. Return only the first
4848         property found in GetProperties() or the compiler gets confused. 
4849         Implemented GetEvents(). Temporary fix to GetType(), needs rewriting.
4850         * reflection.h, reflection.c: add fixup mechanism for field and method
4851         tokens. Initialize assembly->typeref in a single place. Output
4852         properties after events. Support custom attributes for events, too.
4853         Typo fix for paramter custom attrs.
4854
4855 2002-03-07  Martin Baulig  <martin@gnome.org>
4856
4857         * icall.c (ves_icall_System_Array_FastCopy): Small fix.
4858
4859 2002-03-07  Dietmar Maurer  <dietmar@ximian.com>
4860
4861         * class.c (mono_array_class_get): fix. for multi. dim. arrays
4862
4863 2002-03-06  Martin Baulig  <martin@gnome.org>
4864
4865         * icall.c (ves_icall_System_Array_CreateInstanceImpl): Make this work with
4866         non-zero lower bounds. See testcases #F10-#F13.
4867
4868 2002-03-05  Martin Baulig  <martin@gnome.org>
4869
4870         * exception.c (mono_get_exception_argument_out_of_range): New exception.
4871
4872         * icall.c (ves_icall_System_Array_GetValue): Moved actual implementation to
4873         ves_icall_System_Array_GetValue(), only calculate the absolute array position
4874         here.
4875         (ves_icall_System_Array_SetValue): Likewise.
4876         (ves_icall_System_Array_GetValueImpl): New interncall. Takes an array position
4877         as argument and does the actual work. This function is used when copying a
4878         multi-dimensional array.
4879         (ves_icall_System_Array_SetValueImpl): Almost completely rewrote this. It can
4880         now do all the widening conversions of value types.
4881         (ves_icall_System_Array_CreateInstanceImpl): Implemented.
4882
4883 Tue Mar 5 18:14:01 CET 2002 Paolo Molaro <lupus@ximian.com>
4884
4885         * class.c: remove some magic numbers and use the smbolic names,
4886         instead. Added init_events() to load event info at class init time.
4887         * metadata.h, metadata.c: added mono_metadata_events_from_typedef()
4888         and mono_metadata_methods_from_event().
4889         * reflection.h, reflection.c: added support for writing out the evnets
4890         related information.
4891
4892 Mon Mar 4 20:32:43 CET 2002 Paolo Molaro <lupus@ximian.com>
4893
4894         * reflection.h, icall.c: use a different method (GetInterfaces)
4895         to gather interface info and add isbyref, isprimitive and
4896         ispointer to the ves_icall_get_type_info() return value.
4897
4898 Mon Mar 4 11:22:26 CET 2002 Paolo Molaro <lupus@ximian.com>
4899
4900         * class.h: stared adding support for events.
4901         * icall.c: split find_members implementation. Added debug icall to get
4902         the address of an object.
4903         * reflection.c: handle TypeBuilders in mono_type_get_object().
4904
4905 2002-03-01  Martin Baulig  <martin@gnome.org>
4906
4907         * icall.c (ves_icall_System_Array_GetLength): This must throw an
4908         ArgumentOutOfRangeException(), not an ArgumentException().
4909         (ves_icall_System_Array_GetLowerBound): Likewise.
4910         (ves_icall_System_Array_GetValue): Improved argument checking.
4911         (ves_icall_System_Array_SetValue): Improved argument checking.
4912
4913 2002-03-01  Martin Baulig  <martin@gnome.org>
4914
4915         * icall.c (ves_icall_System_Array_GetValue): Raise an exception when
4916         called with invalid arguments rather than just dying with g_assert().
4917         (ves_icall_System_Array_SetValue): Likewise.
4918         (ves_icall_System_Array_CreateInstanceImpl): Don't g_assert_not_reached(),
4919         raise a NotImplementedException instead.
4920         (ves_icall_System_Array_GetLength): Added argument checking.
4921         (ves_icall_System_Array_GetLowerBound): Added argument checking.
4922
4923 2002-03-01  Dietmar Maurer  <dietmar@ximian.com>
4924
4925         * object.h (mono_assert): new macros mono_assert and
4926         mono_assert_not_reached
4927
4928 2002-02-28  Martin Baulig  <martin@gnome.org>
4929
4930         * icall.c: Rename "System::String::Intern" to "System::String::_Intern"
4931         and "System::String::IsInterned" to "System::String::_IsInterned".
4932
4933 Thu Feb 28 19:19:35 CET 2002 Paolo Molaro <lupus@ximian.com>
4934
4935         * icall.c: remove hacks for typebuilder. Added icall to create a
4936         modified type from a tybebuilder.
4937         * reflection.c: removed hacks for TypeBuilder. Create also a MonoImage
4938         in mono_image_basic_init (). Added mono_reflection_setup_internal_class ()
4939         to create a backing MonoClass for a TypeBuilder.
4940
4941 Thu Feb 28 15:35:51 CET 2002 Paolo Molaro <lupus@ximian.com>
4942
4943         * class.c, class.h: more refactoring of class init.
4944         Export mono_class_setup_mono_type() and mono_class_setup_parent().
4945
4946 Thu Feb 28 12:33:41 CET 2002 Paolo Molaro <lupus@ximian.com>
4947
4948         * marshal.c, marshal.h: start of marshaling interface.
4949
4950 Wed Feb 27 22:15:17 CET 2002 Paolo Molaro <lupus@ximian.com>
4951
4952         * icall.c: fix order in assembly qualified name icall.
4953
4954 Wed Feb 27 18:45:03 CET 2002 Paolo Molaro <lupus@ximian.com>
4955
4956         * class.c: do not free str, since we store it in the hash table.
4957         * reflection.h: add label field to MonoILExceptionInfo.
4958         * reflection.c: handle references to more than one assembly. Handle
4959         case when there isn't a module created in the assembly.
4960
4961 Wed Feb 27 12:35:10 CET 2002 Paolo Molaro <lupus@ximian.com>
4962
4963         * class.c: Fix typo. Start refactoring of class init code.
4964
4965 Wed Feb 27 12:23:00 CET 2002 Paolo Molaro <lupus@ximian.com>
4966
4967         * appdomain.c: exit with 1 on error.
4968         * class.c: we already have the name in MonoClassField.
4969         * image.c, image.h, metadata.c, pedump.c: use directly a pointer in
4970         MonoStreamHeader instead of an offset of image->raw_metadata.
4971
4972 2002-02-26  Miguel de Icaza  <miguel@ximian.com>
4973
4974         * appdomain.c (mono_init): Be even more descriptive about the error.
4975
4976 Tue Feb 26 16:18:07 CET 2002 Paolo Molaro <lupus@ximian.com>
4977
4978         * appdomain.c: give the user an informative message when corlib can't
4979         be loaded.
4980
4981 2002-02-26  Martin Baulig  <martin@gnome.org>
4982
4983         * icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData):
4984         New icall to get the time zone data.
4985
4986 Mon Feb 25 15:51:51 CET 2002 Paolo Molaro <lupus@ximian.com>
4987
4988         * reflection.c: set virtual and raw size of section correctly.
4989         * threads.c: transfer domain information to newly created threads.
4990
4991 Fri Feb 22 18:55:57 CET 2002 Paolo Molaro <lupus@ximian.com>
4992
4993         * class.c: when instancing a class in a domain, load the default
4994         vaules for static fields from the constant table. Fix System.Enum to
4995         not be an enum.
4996         * icall.c: implement Object::GetType() internalcall. Implemented
4997         MonoField::GetValue() internalcall. Avoid SEGV in search_method().
4998         Fixed checking of binding flags in find_members().
4999         * metadata.c, metadata.h: introduce mono_metadata_type_hash().
5000         * reflection.c: handle enumerations when writing to the constant
5001         table. Use a different object cache for types.
5002
5003
5004 2002-02-22  Dietmar Maurer  <dietmar@ximian.com>
5005
5006         * object.c (mono_object_isinst): fix for arrays
5007
5008         * icall.c (ves_icall_type_is_subtype_of): fix for 2 interfaces
5009
5010 Thu Feb 21 21:00:13 CET 2002 Paolo Molaro <lupus@ximian.com>
5011
5012         * object.c: don't use mprotect ()  and fix intern pool hash table
5013         lookup for big endian systems.
5014
5015 Thu Feb 21 19:30:29 CET 2002 Paolo Molaro <lupus@ximian.com>
5016
5017         * icall.c: change type_is_subtype_of () signature.
5018
5019 2002-02-21  Mark Crichton  <crichton@gimp.org>
5020
5021         * rand.c, rand.h: Added random number generator for
5022         System.Security.Cryptography classes.
5023
5024         * exception.c, exception.h: Added mono_get_exception_not_implemeted.
5025
5026         * icall.c: Added System.Security.Cryptography calls.
5027
5028 Thu Feb 21 16:45:34 CET 2002 Paolo Molaro <lupus@ximian.com>
5029
5030         * class.c, icall.c, metadata.c: better support for pointer types.
5031         Create a class for them as suggested by dietmar. Fix TYPE_ARRAY class.
5032         * reflection.c: Add support for getting custom attrs for properties
5033         and simplify some code.
5034
5035 Wed Feb 20 22:20:29 CET 2002 Paolo Molaro <lupus@ximian.com>
5036
5037         * icall.c: change getToken () and add custom attribute GetBlob()helper
5038         method.
5039         * reflection.h: add custom attrs array to the reflection builder structures.
5040         * reflection.c: encode and emit custom attributes for all the relevant
5041         reflection objects. Cache fieldref and methodref tokens. Change
5042         mono_image_create_token() interface to take a MonoDynamicAssembly.
5043         More complete custom attributes decoder. Load custom attributes for
5044         Assembly, Field, Method and Constructor objects, too. Make the
5045         returned array an Attribute[] one, not object[]. Added
5046         mono_reflection_get_custom_attrs_blob() to encode the arguments of a
5047         custom attribute constructor.
5048
5049 2002-02-20  Dick Porter  <dick@ximian.com>
5050
5051         * icall.c:
5052         * rawbuffer.c:
5053         * socket-io.c: Windows portability fixes (sometimes just ifdeffing
5054         problem code out for now).
5055
5056 2002-02-19  Radek Doulik  <rodo@ximian.com>
5057
5058         * object.c (mono_ldstr): use hash table to avoid multiple swapping
5059
5060 Tue Feb 19 20:23:11 CET 2002 Paolo Molaro <lupus@ximian.com>
5061
5062         * icall.c: register the GetCustomAttributes method.
5063         * object.c, object.h: add mono_string_new_len ().
5064         * reflection.h, reflection.c: added mono_runtime_invoke(),
5065         mono_install_runtime_invoke(). Added
5066         mono_reflection_get_custom_attrs () to load custom attributes and
5067         create the attribute objects.
5068
5069 2002-02-19  Dick Porter  <dick@ximian.com>
5070         * threads-dummy-types.c:
5071         * threads-dummy-types.h:
5072         * threads-dummy.c:
5073         * threads-dummy.h:
5074         * threads-pthread-types.c:
5075         * threads-pthread-types.h:
5076         * threads-pthread.c:
5077         * threads-pthread.h:  Deleted obsolete files
5078
5079 2002-02-19  Dietmar Maurer  <dietmar@ximian.com>
5080
5081         * class.c (mono_class_vtable): runtime init the class when we
5082         allocate static class data.
5083
5084         * icall.c (ves_icall_System_Array_SetValue): check for null values.
5085
5086         * appdomain.c (mono_domain_transfer_object): impl. hack for Arrays
5087         and String - but we will need generic marshalling support in the
5088         future. 
5089         (mono_init): set the domain name in a ms compatible way
5090
5091         * object.c (mono_string_new_utf16): bug fix: use char[] instead of
5092         String[].
5093
5094 2002-02-18  Dietmar Maurer  <dietmar@ximian.com>
5095
5096         * object.c (mono_array_clone): use alloca() instead of g_malloc  
5097         for sizes
5098
5099         * appdomain.c (mono_domain_unload): impl.
5100
5101 Mon Feb 18 15:52:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5102
5103         * appdomain.c, object.c: fix intern pool implementation.
5104         * class.c: fix alignment code.
5105
5106 2002-02-16  Radek Doulik  <rodo@ximian.com>
5107
5108         * icall.c (ves_icall_System_Enum_ToObject): in case of big endian
5109         and s2 > s1, just copy lower bytes to be compatible with little
5110         endian (i.e. 64bit value & 0xffffffff --> 32bit value)
5111         (ves_icall_System_Enum_ToObject): and likewise for s1 > s2
5112
5113         * unicode.c (ves_icall_iconv_new_encoder): decide on big_endian,
5114         force big_endian to be 1 for big endian machines 
5115         (ves_icall_iconv_new_decoder): ditto
5116
5117 2002-02-16  Jeffrey Stedfast  <fejj@ximian.com>
5118
5119         * socket-io.c (convert_sockopt_level_and_name): If the system
5120         doesn't define SOL_IP or SOL_TCP, get them by hand using
5121         getprotobyname() and caching the values (because this could be a
5122         slow operation).
5123         (ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
5124         Use the appropriate struct when the system does support it. Ie,
5125         not all systems have struct ip_mreqn so use struct ip_mreq when
5126         appropriate.
5127
5128 Fri Feb 15 18:15:44 CET 2002 Paolo Molaro <lupus@ximian.com>
5129
5130         * reflection.c: handle finally clauses.
5131
5132 Fri Feb 15 15:06:33 CET 2002 Paolo Molaro <lupus@ximian.com>
5133
5134         * socket-io.c: use g_snprintf() instead of snprintf.
5135
5136 2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>
5137
5138         * reflection.c (mono_param_get_objects): Cast second argument to
5139         mono_method_get_param_names to a const char** to silence the
5140         compiler warning.
5141
5142         * appdomain.c (mono_domain_assembly_open): Put parens around the
5143         truth statement in the for-loop.
5144
5145         * unicode.c (iconv_convert): Got rid of a compiler warning about
5146         int i being unused when the system has a new iconv.
5147         (iconv_get_length): Same.
5148
5149         * image.c (load_class_names): Cast the second argument to
5150         g_hash_table_insert() to char* to hush compiler warnings about the
5151         arg being a const.
5152         (mono_image_open): Same here.
5153
5154         * socket-io.c: Don't conditionally include sys/filio.h or
5155         sys/sockio.h here anymore since we now get them from
5156         io-layer/io-layer.h
5157         (inet_pton): If the system doesn't support inet_aton, implement
5158         using inet_addr and also #define INADDR_NONE if it isn't defined
5159         by the system.
5160
5161 Thu Feb 14 19:01:06 CET 2002 Paolo Molaro <lupus@ximian.com>
5162
5163         * metadata.c, metadata.h: added function to get packing and size info
5164         of a typedef.
5165         * reflection.h, reflection.c: handle field RVA data. Save info about
5166         the table layout if needed. Assign typedef indexes to all the types
5167         before dumping the info about them to avoid forward reference problems.
5168
5169 2002-02-14  Dietmar Maurer  <dietmar@ximian.com>
5170
5171         * socket-io.c (convert_sockopt_level_and_name): ifdef
5172         SO_ACCEPTCONN because it is not defined on my system (old debian)
5173
5174 Thu Feb 14 11:49:30 CET 2002 Paolo Molaro <lupus@ximian.com>
5175
5176         * opcode.c: use stddef.h to get NULL.
5177
5178 2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>
5179
5180         * socket-io.c: conditionally include sys/filio.h and sys/sockio.h
5181         for FIONBIO, FIONREAD and SIOCATMARK.
5182         (ves_icall_System_Net_Dns_GetHostByAddr_internal): SunOS doesn't
5183         define INADDR_NONE and besides, inet_addr() is deprecated and
5184         should not be used. Use inet_pton() instead - it also has the
5185         added bonus that it can easily handle IPv6 addresses as well.
5186         (inet_pton): Implement using inet_aton() ifndef HAVE_INET_PTON.
5187
5188 Wed Feb 13 23:00:21 CET 2002 Paolo Molaro <lupus@ximian.com>
5189
5190         * decimal.c: remove _MSC_VER conditional.
5191
5192 2002-02-13  Dick Porter  <dick@ximian.com>
5193
5194         * socket-io.c: 
5195         * icall.c: Internal calls for Blocking, Select, Shutdown,
5196         GetSocketOption and SetSocketOption
5197
5198 Wed Feb 13 19:20:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5199
5200         * assembly.cs: better resolver: use it instead of some kludgy
5201         code.
5202
5203 Wed Feb 13 18:25:55 CET 2002 Paolo Molaro <lupus@ximian.com>
5204
5205         * reflection.c: the best way to speed-up the compiler is to avoid
5206         infinite loops.
5207
5208 2002-02-13  Dietmar Maurer  <dietmar@ximian.com>
5209
5210         * class.c (mono_class_vtable): changed the object layout
5211         (obj->vtable->class). 
5212         (mono_class_create_from_typespec): consider MONO_TYPE_PTR
5213
5214 Tue Feb 12 20:06:01 CET 2002 Paolo Molaro <lupus@ximian.com>
5215
5216         * assembly.c: look for assemblies in the assembly dir, too.
5217
5218 Tue Feb 12 14:03:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5219
5220         * class.c: fix thinko in mono_class_from_type().
5221
5222 Mon Feb 11 19:43:51 CET 2002 Paolo Molaro <lupus@ximian.com>
5223
5224         * exception.h, exception.c: added TypeLoadException.
5225         * object.h, object.c: added mono_array_clone ().
5226         * icall.c: handle throwOnError in AssemblyGetType().
5227         Added Array.Clone().
5228         * opcode.h, opcode.c: use a single value for the opcode val.
5229         Compile fix for non-gcc compilers.
5230
5231 Fri Feb 8 12:26:37 CET 2002 Paolo Molaro <lupus@ximian.com>
5232
5233         * opcodes.c, opcodes.h: export interesting info about opcodes.
5234
5235 2002-02-05  Dietmar Maurer  <dietmar@ximian.com>
5236
5237         * object.h (MONO_CHECK_ARG, MONO_CHECK_ARG_NULL): new macro for
5238         icalls. 
5239
5240         * class.c (class_compute_field_layout): set element_class for enums
5241         (mono_class_create_from_typedef): set element_class for normal classes
5242
5243         * icall.c (ves_icall_System_Enum_get_value): impl.
5244
5245         * class.c (mono_class_create_from_typedef): do not set valuetype
5246         flag for System.ValueType and System.Enum
5247
5248 2002-02-04  Dietmar Maurer  <dietmar@ximian.com>
5249
5250         * unicode.c (iconv_convert): fix big endian problem.
5251
5252 Fri Feb 1 16:13:20 CET 2002 Paolo Molaro <lupus@ximian.com>
5253
5254         * class.c: add asserts if we are ever going to scribble over memory.
5255         * socket-io.c: not all systems have AF_IRDA defined.
5256
5257 2002-01-31  Dietmar Maurer  <dietmar@ximian.com>
5258
5259         * class.c (class_compute_field_layout): do not consider static
5260         fields to compute alignment
5261
5262 2002-01-25  Dietmar Maurer  <dietmar@ximian.com>
5263
5264         * appdomain.c (mono_appdomain_get): impl.
5265         (ves_icall_System_AppDomain_ExecuteAssembly): impl.
5266
5267 Thu Jan 24 12:59:23 CET 2002 Paolo Molaro <lupus@ximian.com>
5268
5269         * icall.c: ignore "file://" prefix when loading an assembly.
5270
5271 2002-01-23  Dick Porter  <dick@ximian.com>
5272
5273         * socket-io.c:
5274         * icall.c:
5275         * Makefile.am: Added socket support
5276
5277 2002-01-23  Miguel de Icaza  <miguel@ximian.com>
5278
5279         * icall.c (ves_icall_appdomain_get_default_assemblies): put this
5280         code back.  This should return the assemblies that are loaded by
5281         the runtime on behalf of an application domain. 
5282
5283         The current implementation is still broken, it just returns every
5284         assembly loaded, but until we get real applications domain this
5285         will do.
5286
5287 2002-01-23  Dietmar Maurer  <dietmar@ximian.com>
5288
5289         * icall.c (ves_icall_appdomain_get_cur_domain): runtime_init the
5290         AppDomain object.
5291
5292 2002-01-23  Miguel de Icaza  <miguel@ximian.com>
5293
5294         * icall.c (ves_icall_appdomain_get_cur_domain): Cache the value of
5295         the mono_class_from_name lookup.
5296         (ves_icall_get_parameter_info): ditto.
5297         (ves_icall_appdomain_get_assemblies, add_assembly): Implement new internal
5298         method.
5299         (ves_icall_System_Reflection_Assembly_get_code_base): Another new call.
5300
5301 Tue Jan 22 22:43:47 CET 2002 Paolo Molaro <lupus@ximian.com>
5302
5303         * class.c: load also nested classes on class init.
5304         System.ValueType instance methods gets passed boxed
5305         values, unless methods in derived classed that get a pointer to the
5306         data.
5307         * icall.c: use better name parsing code in GetType().
5308         * image.c, image.h: add mono_image_loaded ().
5309         * metadata.c, metadata.h: add mono_metadata_nesting_typedef ().
5310         * reflection.c, reflection.h: added mono_reflection_parse_type().
5311
5312 2002-01-22  Veronica De Santis <veron78@interfree.it>
5313
5314         * icall.c : Added mapping of internal calls for Manual and Auto reset events
5315         * threads.c : Added the implementation of internal calls for events
5316         * threads.h : Added prototypes of internal calls for events
5317         
5318 2002-01-21  Radek Doulik  <rodo@ximian.com>
5319
5320         * icall.c (ves_icall_InitializeArray): swap bytes on big endians
5321
5322 2002-01-21  Dietmar Maurer  <dietmar@ximian.com>
5323
5324         * class.c (mono_class_init): set min_align to 1 (instead of 0)
5325         (mono_class_value_size): use min_align
5326
5327 2002-01-20  Dick Porter  <dick@ximian.com>
5328
5329         * threads.h:
5330         * threads.c: Replaced all instances of WapiHandle * with HANDLE,
5331         so it compiles on w32.
5332
5333 2002-01-17  Dietmar Maurer  <dietmar@ximian.com>
5334
5335         * metadata.c (mono_type_stack_size): impl.
5336
5337         * class.c (mono_class_get_field): impl. memberref token
5338
5339 2002-01-16 Veronica De Santis <veron78@@interfree.it>
5340
5341         * icall.h : Added the internal calls mapping for CreateMutex_internal
5342                     and ReleaseMutex_internal.
5343         * threads.h : Added the prototype of mutexes internal calls.
5344         * threads.c : Added the implementations of mutexes internal calls.
5345
5346 Tue Jan 15 22:47:57 CET 2002 Paolo Molaro <lupus@ximian.com>
5347
5348         * metaparse.h: removed unused file.
5349         * reflection.c, reflection.h: added stream_data_align () function 
5350         to align data in streams and keep stream aligned. Add support for
5351         exception support in method headers.
5352
5353 Tue Jan 15 19:42:50 CET 2002 Paolo Molaro <lupus@ximian.com>
5354
5355         * unicode.c: make iconv_convert () return the number of bytess written
5356         in the output buffer.
5357
5358 2002-01-15  Dick Porter  <dick@ximian.com>
5359         * threads.c: Make the runtime's idea of infinite timeouts coincide
5360         with the class library's
5361
5362         Fix a particularly egregious bug in mono_thread_cleanup(). That
5363         code was so utterly bogus it must have been written on a Monday.
5364
5365 Mon Jan 14 17:01:03 CET 2002 Paolo Molaro <lupus@ximian.com>
5366
5367         * reflection.h: add subtypes field to TypeBuilder.
5368         * reflection.c: encode constants for literal fields.
5369         Handle subtypes. Fix user string token (and add a zero byte)
5370         at the end.
5371         
5372 2002-01-14  Dietmar Maurer  <dietmar@ximian.com>
5373
5374         * class.c (mono_class_init): bug fix: assign slot numbers for
5375         abstract methods.
5376
5377 Fri Jan 11 18:54:42 CET 2002 Paolo Molaro <lupus@ximian.com>
5378
5379         * reflection.c: don't try to output a code RVA for abstract methods.
5380         Small fixes for method header format. Output parameter info to the
5381         ParamDef table. Save method overriding info to MethodImpl table.
5382         Fix property support. Allow typedef.extends to be a type in the
5383         building assembly.
5384         * verify.c: fix off-by-one error.
5385
5386 Thu Jan 10 19:36:27 CET 2002 Paolo Molaro <lupus@ximian.com>
5387
5388         * class.c: fix mono_class_from_mono_type () for szarray types.
5389         Remove unused cache check in mono_class_from_type_spec().
5390         * icall.c: *type_from_name () functions handle simple arrays and byref.
5391         * reflection.c: handle byref and szarray types. Handle methods without
5392         body (gets P/Invoke compilation working). Handle types and fields in
5393         get_token ().
5394         * reflection.h: add rank to MonoTypeInfo.
5395
5396 2002-01-10  Dick Porter  <dick@ximian.com>
5397
5398         * threads.c: Implemented WaitAll(), WaitAny() and WaitOne()
5399         internal calls
5400
5401 Wed Jan 9 19:27:13 CET 2002 Paolo Molaro <lupus@ximian.com>
5402
5403         * icall.c: initialize class in type_from_handle ().
5404         Loop also in parent classes for get_method ().
5405         * reflection.c: properly encode class and valuetype types.
5406         Start on encoding TypeBuilder types. Handle fieldrefs.
5407         Use correct length when registering a user string.
5408         Handle ConstructorBuilder and MonoMethod in get_token ().
5409         Make mono_type_get_object () aware of cached types.
5410         * object.c: back out change to mono_string_new ().
5411
5412 Tue Jan 8 22:47:44 EST 2002 Matt Kimball <matt@kimball.net>
5413         * object.c: mono_string_new should return a NULL when the string 
5414         passed in is NULL -- not try to deference it.
5415         
5416 Sat Jan 5 15:48:04 CET 2002 Paolo Molaro <lupus@ximian.com>
5417
5418         * icall.c: hack to make IsSubType work for TypeBuilders.
5419         * reflection.c: emit constructors before methods.
5420         Retrieve param names in mono_param_get_objects().
5421
5422 2002/01/05  Nick Drochak  <ndrochak@gol.com>
5423
5424         * Makefile.am: fix list of headers and sources so automake 1.5
5425         doesn't complain. Removed \# at end of list.
5426
5427 Thu Jan 3 23:17:17 CET 2002 Paolo Molaro <lupus@ximian.com>
5428
5429         * reflection.c: get token for a method ref. Set return type of
5430         constructor to void.
5431         * loader.c: debug message.
5432         * class.c: typo fix.
5433
5434 Mon Dec 24 17:18:10 CET 2001 Paolo Molaro <lupus@ximian.com>
5435
5436         * icall.c: fix array init with rank > 1. FindMembers
5437         loops in parent class as well.
5438         * image.c: do not insert nested types in name cache.
5439         * reflection.c: warning fix.
5440         * reflection.h: add override method (for interface impl).
5441
5442 Mon Dec 24 16:16:56 CET 2001 Paolo Molaro <lupus@ximian.com>
5443
5444         * metadata.c: fix customattr decoding.
5445
5446 2001-12-21  Miguel de Icaza  <miguel@ximian.com>
5447
5448         * rawbuffer.cs: Added native Win32 implementation, avoids using
5449         mmap on Cygwin.  This patch is from Dan Lewis (dihlewis@yahoo.co.uk)
5450
5451 Thu Dec 20 20:11:26 CET 2001 Paolo Molaro <lupus@ximian.com>
5452
5453         * class.c: make the low-level routines handle the cache.
5454
5455 Thu Dec 20 15:20:35 CET 2001 Paolo Molaro <lupus@ximian.com>
5456
5457         * image.c: fopen (file, "rb") ("David Dawkins" <david@dawkins.st>).
5458
5459 Tue Dec 18 18:50:00 CET 2001 Paolo Molaro <lupus@ximian.com>
5460
5461         * class.c: fix mono_array_element_size() for objects.
5462         * class.h, class.c: add properties to MonoClass and load them
5463         at init time.
5464         * icall.c: check with isinst() when assigning a value to an array
5465         instead of requiring the classes to match exactly.
5466         Implemented icall for System.Type::GetType().
5467         Implemented icalls to get ParameterInfo, ProprtyInfo and info about
5468         enums. Handle bindingflags when looking for methods and fields.
5469         * metadata.h, metadata.c: implemented mono_metadata_properties_from_typedef()
5470         and mono_metadata_methods_from_property().
5471         * reflection.h, reflection.c: added structures for propreties,
5472         parameters and enums. Implemented mono_property_get_object() and
5473         mono_param_get_objects().
5474
5475 2001-12-18  Dick Porter  <dick@ximian.com>
5476
5477         * file-io.c: Use mono_string_to_utf16() instead of
5478         mono_string_chars()
5479
5480         * object.c: Added mono_string_to_utf16(), which copies the non
5481         NULL-terminated MonoString into a new double-null-terminated
5482         buffer.
5483
5484 2001-12-17  Dietmar Maurer  <dietmar@ximian.com>
5485
5486         * icall.c (ves_icall_System_DateTime_GetNow): added EPOCH adjustment
5487
5488 2001-12-16  Dietmar Maurer  <dietmar@ximian.com>
5489
5490         * file-io.c: raise exceptions if handle is invalid.
5491
5492 Thu Dec 13 20:27:08 CET 2001 Paolo Molaro <lupus@ximian.com>
5493
5494         * assembly.c: yet another check for mscorlib.
5495         * class.c, class.h: load nesting info for classes.
5496         * icall.c: many new functions to support the Reflection classes.
5497         * metadata.c, metadata.h: mono_metadata_nested_in_typedef() added.
5498         * reflection.h, reflection.c: mono_image_create_token(),
5499         mono_assembly_get_object(), mono_type_get_object(),
5500         mono_method_get_object(), mono_field_get_object(): methods to return
5501         objects that parallel the C representation of assemblies, types,
5502         methods, fields.
5503
5504 2001-12-11  Dick Porter  <dick@ximian.com>
5505
5506         * icall.c:
5507         * file-io.c: Internal calls for file IO.
5508
5509 Thu Dec 6 16:21:30 CET 2001 Paolo Molaro <lupus@ximian.com>
5510
5511         * tabledefs.h: missing FileAttributes.
5512         * verify.h, verify.c: use is_valid_string () to simplify and check for
5513         valid strings more correctly. Fix warnings and speeling.
5514         Check more tables: Filed, File, ModuleRef, StandAloneSig.
5515         Check code: branches, maxstack, method calls.
5516
5517 2001-12-04  Dietmar Maurer  <dietmar@ximian.com>
5518
5519         * object.c (mono_object_allocate): removed static, so that the jit
5520         can allocate value types.
5521
5522         * icall.c (ves_icall_System_DateTime_GetNow): impl.
5523
5524 Mon Dec 3 17:02:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5525
5526         * class.c: init enum types right away and register the
5527         token->MonoClass map in mono_class_create_from_typedef ().
5528         * verify.h, verify.c: first cut of the verifier.
5529         * pedump.c: add --verify switch to verify metadata tables.
5530         * tabledefs.h: add some missing enums.
5531
5532 2001-11-30  Dietmar Maurer  <dietmar@ximian.com>
5533
5534         * class.c (mono_install_runtime_class_init): impl.
5535         (mono_class_init): renamed mono_class_metadata_init to
5536         mono_class_init, also removed the metadata_inited flag
5537
5538         * object.c (mono_object_isinst): use faster algorithm
5539
5540 2001-11-30  Radek Doulik  <rodo@ximian.com>
5541
5542         * mono-endian.h: reverted last change
5543         added function prototypes
5544
5545         * Makefile.am (libmetadata_a_SOURCES): reverted my last change and
5546         add mono-endian.c back
5547
5548         * mono-endian.c: returned back, as Paolo pointed out, it's needed
5549         for unaligned access, I've mistaked it with endianess. I am
5550         sorry.
5551         (mono_read16): fix reverted endianess
5552         (mono_read64): ditto
5553         (mono_read32): ditto
5554
5555 2001-11-30  Dick Porter  <dick@ximian.com>
5556
5557         * exception.c: Implement mono_exception_from_name()
5558
5559 Fri Nov 30 12:01:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5560
5561         * metadata.h, metadata.c: remove params_size and locals_size and their
5562         calculation from the metadata code: they are only usefult to the
5563         interp.
5564
5565 2001-11-29  Radek Doulik  <rodo@ximian.com>
5566
5567         * object.c (mono_ldstr): swap bytes here, it's probably not the
5568         best place, but works for me now, I'll redo it once I know mono
5569         better, also note that I add PROT_WRITE and don't reset back, also
5570         note that it's only affects big endians, so x86 should be OK
5571
5572         * mono-endian.h (read16): use just glib macros for both endians
5573
5574         * mono-endian.c: removed as glib macros are used in in
5575         mono-endian.h so we don't need to care about endianess for read
5576         macros as glib does that for us already
5577
5578 Thu Nov 29 18:20:58 CET 2001 Paolo Molaro <lupus@ximian.com>
5579
5580         * class.h, class.h: take minimum alignment into consideration so
5581         that the fields of a class remain aligned also when in an array.
5582
5583 Tue Nov 27 16:39:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5584
5585         * loader.h, loader.c: add mono_method_get_param_names().
5586         * class.c: 0-init class fields.
5587
5588 2001-11-26  Dick Porter  <dick@ximian.com>
5589
5590         * icall.c:
5591         * threads-types.h:
5592         * threads.c: New file that handles System.Threading on all platforms
5593
5594         * object.c: 
5595         * object.h: Remove the synchronisation struct from MonoObject,
5596         replace it with a pointer that gets initialised on demand
5597
5598         * Makefile.am: Replace all the system-specific threading code with
5599         a single file that uses the new wrapper library
5600
5601 Mon Nov 19 11:37:14 CET 2001 Paolo Molaro <lupus@ximian.com>
5602
5603         * class.c, class.h: add mono_install_trampoline() so that the runtime
5604         can register a function to create a trampoline: removes the ugly
5605         requirement that a runtime needed to export arch_create_jit_trampoline.
5606         * object.h, object.c: added mono_install_handler() so that the runtime
5607         can install an handler for exceptions generated in C code (with
5608         mono_raise_exception()). Added C struct for System.Delegate.
5609         * pedump.c: removed arch_create_jit_trampoline.
5610         * reflection.c: some cleanups to allow registering user strings and
5611         later getting a token for methodrefs and fieldrefs before the assembly
5612         is built.
5613         * row-indexes.h: updates and fixes from the new ECMA specs.
5614
5615 Thu Nov 15 17:44:49 CET 2001 Paolo Molaro <lupus@ximian.com>
5616
5617         * class.h, class.c: add enum_basetype field to MonoClass.
5618         * metadata.h, metadata.c: add mono_metadata_get_constant_index()
5619         to get index in the constant table reated to a field, param or
5620         property.
5621         * reflection.h, reflection.c: handle constructors. Set public-key and
5622         version number of the built assembly to 0.
5623         * row-indexes.h: update from new ECMA spec.
5624
5625 Wed Nov 14 19:26:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5626
5627         * class.h, class.c: add a max_interface_id to MonoClass.
5628         * icall.c: rename my_mono_new_object() to my_mono_new_mono_type()
5629         since it's used to do that. Added mono_type_type_from_obj().
5630         Make GetType() return NULL instead of segfaulting if the type was not
5631         found. Handle simple arrays in assQualifiedName.
5632         * object.h: add a struct to represent an Exception.
5633         * reflection.c: output call convention in method signature.
5634         Add code to support P/Invoke methods and fixed offsets for fields.
5635
5636 Mon Nov 12 12:41:32 CET 2001 Paolo Molaro <lupus@ximian.com>
5637
5638         * decimal.c, decimal.h: mono_double2decimal() get the sign bit from
5639         the value.
5640         * icall.c: use mono_array_addr instead of array->vector: fixes the
5641         reflection image writing.
5642         * reflection.c: init call convention byte to 0 in method signature.
5643         Encode the property signature. Don't output property-related methods
5644         twice. Really process the properties for a type (don't cast a field to
5645         a property, my mom always told me that).
5646         Fix 64 bit issues in pointer alignment in a different and more
5647         readable way.
5648
5649 2001-11-10  Sean MacIsaac  <macisaac@ximian.com>
5650
5651         * loader.h: Removed type class from MonoDefaults, added monotype
5652
5653         * loader.c: Loaded MonoType, removed loading of Type
5654
5655         * icall.c (my_mono_new_object): Now returns a System.MonoType,
5656         and fills in System.Type._impl with a RuntimeTypeHandle rather
5657         than the actual MonoClass *
5658
5659         (ves_icall_type_from_handle): change from type_class to
5660         monotype_class
5661
5662         (ves_icall_System_Runtime_InteropServices_Marshal_ReadIntPtr):
5663         implemented
5664
5665         (ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAuto):
5666         implemented
5667
5668         (ves_icall_System_Reflection_Assembly_LoadFrom): implemented
5669
5670         (ves_icall_System_Reflection_Assembly_GetType): implemented
5671
5672         (ves_icall_System_MonoType_assQualifiedName): implemented
5673
5674         (ves_icall_System_PAL_OpSys_GetCurrentDirecotry): implemented
5675
5676 2001-11-09  Miguel de Icaza  <miguel@ximian.com>
5677
5678         * assembly.c (mono_assembly_open): Implement a cache for the
5679         assemblies. 
5680
5681         (mono_assembly_close): only destroy the assembly when the last
5682         reference is gone.
5683         
5684 2001-11-09  Dick Porter  <dick@ximian.com>
5685
5686         * Makefile.am (pedump_LDADD): Don't need THREAD_LIBS any more
5687
5688 2001-11-09  Dietmar Maurer  <dietmar@ximian.com>
5689
5690         * class.c (mono_class_metadata_init): bug fix: compute the right slot
5691
5692 Fri Nov 9 15:48:02 CET 2001 Paolo Molaro <lupus@ximian.com>
5693
5694         * icall.c, decimal.h, decimal.c: integrated decimal internalcalls
5695         from Martin Weindel.
5696         * object.h: add mono_string_chars ().
5697
5698 2001-11-07  Miguel de Icaza  <miguel@ximian.com>
5699
5700         * reflection.c (build_compressed_metadata): Eliminates warnings
5701         and uses 64-bit clean code.
5702
5703         * metadata.c (mono_type_hash): Change signature to eliminate warnings.
5704         (mono_type_equal): Change signature to eliminate warnings.
5705
5706 Wed Nov 7 15:40:01 CET 2001 Paolo Molaro <lupus@ximian.com>
5707
5708         * icall.c, loader.c: remove the internalcall array constructors.
5709         Changes to match the new MonoArray structure.
5710         * object.h, object.c: an array object doesn't allocate an extra
5711         vector. Add mono_array_new_full () to create jagged arrays easily.
5712
5713 Mon Nov 5 19:51:06 CET 2001 Paolo Molaro <lupus@ximian.com>
5714
5715         * metadata.h, metadata.c: add mono_metadata_field_info () to
5716         retreive all the info about a field from vairous tables.
5717         * icall.c: implement S.Runtime.CServices::InitializeArray () icall.
5718         * class.h, class.c: augment MonoClassField with more info.
5719         Implemented mono_ldtoken for fields. Implemented ExplicitLayout
5720         policy and load a field's RVA if needed.
5721
5722 2001-11-05  Dietmar Maurer  <dietmar@ximian.com>
5723
5724         * class.c (mono_class_metadata_init): create a trampoline for all
5725         virtual functions instead of actually compiling them.
5726
5727 Fri Nov 2 19:37:51 CET 2001 Paolo Molaro <lupus@ximian.com>
5728
5729         * class.h, class.c: include name in MonoClassField.
5730         * class.c: fix fundamental type of System.Object and System.String.
5731         Set the right fundamental type for SZARRAY, too. Handle TypeSpec
5732         tokens in ldtoken.
5733         * icall.c: remove internalcalls for the Reflection stuff that is now
5734         done in C# code.
5735         * loader.c: mono_field_from_memberref () implementation.
5736         * mono-endian.c: thinko (s/struct/union/g).
5737         * object.c, object.h: make the mono_string_* prototypes actually use
5738         MonoString instead of MonoObject.
5739         * reflection.c, reflection.h: updates for changes in the reflection
5740         code in corlib: we use C structures that map to the actual C# classes.
5741         Handle SZARRAYs when encoding types. Handle locals in methods. Use a
5742         fat method header if needed and use the info from the ILGenerator for
5743         methods. Handle fields in types. Misc fixes.
5744
5745 2001-10-17  Dietmar Maurer  <dietmar@ximian.com>
5746
5747         * class.c (mono_class_metadata_init): bug fix: always allocate
5748         space for static class data
5749
5750 2001-10-25  Dietmar Maurer  <dietmar@ximian.com>
5751
5752         * class.c (mono_compute_relative_numbering): use relative
5753         numbering to support fast runtime type checks.
5754
5755 2001-10-17  Sean MacIsaac  <macisaac@ximian.com>
5756
5757         * class.c (mono_class_create_from_typeref): added debugging output
5758         to print class name when MonoDummy is returned instead of real class
5759
5760 2001-10-15  Dietmar Maurer  <dietmar@ximian.com>
5761
5762         * class.c (mono_class_metadata_init): interface offset table now
5763         contains pointers into the vtable - this is more efficient for the jit
5764
5765 2001-10-12  Dietmar Maurer  <dietmar@ximian.com>
5766
5767         * class.c (mono_class_metadata_init): use a temporary vtable (the
5768         old algorithm only worked for the interpreter, but not for the jit)
5769
5770 2001-10-11  Dietmar Maurer  <dietmar@ximian.com>
5771
5772         * loader.c (method_from_memberref): use mono_class_get to get the
5773         class of an array instead of using System.Array directly.
5774         (mono_get_method): also add MEMBERREF methods to the method cache
5775         which usefull for arrays.
5776
5777 2001-10-10  Dietmar Maurer  <dietmar@ximian.com>
5778
5779         * pedump.c (arch_compile_method): added to compute vtable entry
5780
5781         * metadata.c (mono_metadata_interfaces_from_typedef): also return the
5782         number of interfaces.
5783         
5784         * class.h: merged MonoArrayClass into MonoClass
5785
5786         * class.c (mono_class_create_from_typedef): compute the vtable size and
5787         allocate space to include the vtable inside MonoClass
5788         (mono_class_metadata_init): initialize the vtable
5789
5790 Mon Oct 8 16:12:38 CEST 2001 Paolo Molaro <lupus@ximian.com>
5791
5792         * metadata.c, metadata.h: use MonoArrayType to describe the shape of an array.
5793         Guard against calling bsearch with a NULL pointer (pointed out by Laurent Rioux, smoux).
5794         * image.c: endian fixes by Laurent Rioux.
5795         * object.h, object.c: rename MonoStringObject to MonoString and
5796         MonoArrayObject to MonoArray. Change some function names to conform to
5797         the style mono_<object>_<action>. mono_string_new_utf16 () takes a
5798         guint16* as first argument, so don't use char*.
5799         Provide macros to do the interesting things on arrays in a portable way.
5800         * threads-pthread.c: updates for the API changes and #include <sched.h>
5801         (required for sched_yield()).
5802         * icall.c: updates for the API changes above.
5803         * Makefile.am, mono-endian.c. mono-endian.h: include unaligned read routines for
5804         platforms that need them.
5805
5806 Mon Oct 8 10:43:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
5807
5808         * class.c: set the correct type for all the fundamental
5809         type when loading the class.
5810
5811 2001-10-05  Dick Porter  <dick@ximian.com>
5812
5813         * threads-pthread.c (pthread_mutex_timedlock): Simple
5814         compatibility version for C libraries that lack this call.
5815
5816 Thu Oct 4 19:10:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
5817
5818         * class.c: MonoTypes stored in MonoClass are stored as
5819         fundamental MonoTypes when the class represents a
5820         fundamental type (System.Int32, ...).
5821         The TypeHandle return by ldtoken is a MonoType*.
5822         * icall.c: ves_icall_get_data_chunk () write out all the
5823         PE/COFF stuff. Implement ves_icall_define_method (),
5824         ves_icall_set_method_body (), ves_icall_type_from_handle ().
5825         * image.c: properly skip unknown streams.
5826         * loader.h, loader.c: add type_class to mono_defaults.
5827         * metadata.c, metadata.h: export compute_size () as
5828         mono_metadata_compute_size () with a better interface.
5829         Typo and C&P fixes.
5830         * pedump.c: don't try to print the entry point RVA if there is no entry point.
5831         * reflection.c, reflection.h: many cleanups, fixes, output method
5832         signatures and headers, typedef and typeref info, compress the metadata
5833         tables, output all the heap streams, cli header etc.
5834         * row-indexes.h: typo fixes.
5835
5836 2001-10-04  Dick Porter  <dick@ximian.com>
5837
5838         * object.h: Add a synchronisation mutex struct to MonoObject
5839
5840         * object.c (mono_new_object): Initialise the object
5841         synchronisation mutexes
5842
5843         * icall.c: System.Threading.Monitor internal calls
5844         
5845         * threads-pthread.h:
5846         * threads-pthread.c: System.Threading.Monitor internal calls
5847
5848         * threads-types.h: New file, includes the system-specific thread
5849         structures
5850         
5851         * threads-pthread-types.h:
5852         * threads-pthread-types.c: New files, handle pthread-specific
5853         synchronisation types
5854
5855         * threads-dummy-types.h: 
5856         * threads-dummy-types.c: New files of dummy support for
5857         thread-specific types
5858
5859         * metadata.c:
5860         * image.c:
5861         * pedump.c: include mono-endian.h not endian.h
5862         
5863         * Makefile.am: More threads files.
5864         Name mono-endian.h not endian.h
5865
5866 Tue Oct 2 20:33:48 CEST 2001 Paolo Molaro <lupus@ximian.com>
5867
5868         * Makefile.am, reflection.h, reflection.c: move here the reflection related 
5869         stuff and implement a few more bits.
5870         * icall.c: a field needs to be dereferenced twice. Do not use the same
5871         name for two variables in the same scope.
5872         * image.c, image.h: cleanups.
5873
5874 2001-10-02  Dietmar Maurer  <dietmar@ximian.com>
5875
5876         * class.c (mono_class_metadata_init): bug fix: compute the right size
5877
5878 Mon Oct 1 20:43:57 CEST 2001 Paolo Molaro <lupus@ximian.com>
5879
5880         * icall.c: implemented some of the Reflection internalcalls.
5881         * image.c, image.h: start writing out the PE/COFF image.
5882         * metadata.h, metadata.c: implement mono_metadata_encode_value ()
5883         that does the reverse than decode_blob_size ().
5884         * object.c: use mono_metadata_encode_value (). Move here
5885         temporary implementation of mono_string_to_utf8 ().
5886         * rawbuffer.c: make malloc_map static.
5887
5888 Fri Sep 28 19:26:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
5889
5890         * metadata.c: fix type comparison for arrays.
5891         * loader.h, loader.c: half-assed fix to get more tests work in cygwin.
5892         Added a couple of new classes to monodefaults.
5893         * icall.c: added a couple of Reflection-related internalcalls.
5894         * class.h, class.c: implemented mono_ldtoken () for RuntimeTypeHandles.
5895         Added a byval_arg MonoType to MonoClass.
5896
5897 2001-09-28  Dick Porter  <dick@ximian.com>
5898
5899         * icall.c:
5900         * threads-pthread.h: 
5901         * threads-pthread.c: Implemented internal calls for
5902         LocalDataStoreSlot operations.  Applied mutexes around all shared
5903         data.  Reworked the thread creation and Start() operations to
5904         avoid a race condition.
5905         
5906         * threads-dummy.h:
5907         * threads-dummy.c: Dummy calls for the LocalDataStoreSlot operations
5908
5909 Thu Sep 27 21:45:55 CEST 2001 Paolo Molaro <lupus@ximian.com>
5910
5911         * rawbuffer.c: disable mmap on cygwin since it seems to be broken there.
5912
5913 Thu Sep 27 19:52:11 CEST 2001 Paolo Molaro <lupus@ximian.com>
5914
5915         * class.c, loader.c: warn and return NULL instead of erroring out.
5916         * icall.c: added System.AppDomain::getCurDomain().
5917         * loader.c: we don't need to lookup the typedef again for p/invoke calls.
5918
5919 2001-09-25  Dick Porter  <dick@ximian.com>
5920
5921         * threads-pthread.h:
5922         * threads-pthread.c: Implemented timed thread joining and added
5923         System.Threading.Thread::Join_internal internal call
5924
5925         * icall.c: Added System.Threading.Thread::Join_internal internal call
5926
5927         * threads-dummy.h:
5928         * threads-dummy.c: Dummy calls for System.Thread.Thread::Join_internal
5929
5930 Mon Sep 24 18:56:59 CEST 2001 Paolo Molaro <lupus@ximian.com>
5931
5932         * object.c, object.h: added mono_ldstr (), mono_string_is_interned () and
5933         mono_string_intern () to implement the semantics of the ldstr opcode
5934         and the interning of System.Strings.
5935         * icall.c: provide hooks to make String::IsIntern and String::Intern
5936         internalcalls.
5937
5938 2001-09-23  Dick Porter  <dick@ximian.com>
5939
5940         * threads-dummy.c: 
5941         * threads-dummy.h: New files of dummy threading routines
5942
5943         * Makefile.am (THREAD_SOURCE): Arrange to compile different thread
5944         support code based on system specifics
5945
5946         Rename PTHREAD_LIBS to THREAD_LIBS
5947         
5948 2001-09-23  Dick Porter  <dick@ximian.com>
5949
5950         * threads-pthread.c: Implement the System.Threading.Thread::Sleep,
5951         Schedule (called when asked to Sleep for 0 ms) and CurrentThread
5952         internal calls.
5953         (mono_thread_init): Set up a Thread object instance to return when
5954         the main thread calls Thread.CurrentThread
5955         (mono_thread_cleanup): Wait for all subthreads to exit
5956
5957         * icall.c: New internal calls for System.Threading.Thread::Sleep
5958         (including Schedule) and CurrentThread
5959
5960         * threads.h: New file, to insulate thread-specific stuff from the
5961         rest of the code
5962
5963 2001-09-21  Dick Porter  <dick@ximian.com>
5964
5965         * threads-pthread.h: 
5966         * threads-pthread.c: New file, for handling pthreads-style
5967         threading support.  Start() now starts a new thread and executes
5968         the ThreadStart delegate instance.
5969
5970         * icall.c: Added the internalcall for
5971         System.Threading.Thread::Start_internal
5972
5973         * Makefile.am: Added new files, and PTHREADS_LIBS to the link line
5974
5975 Thu Sep 20 19:37:39 CEST 2001 Paolo Molaro <lupus@ximian.com>
5976
5977         * loader.c: work around the different signatures for delegates
5978         constructors csc generates in compiled code vs the ones compiled in mscorlib.
5979
5980 Tue Sep 18 13:16:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
5981
5982         * class.h, class.c: add mono_class_get_field_from_name ().
5983         * *: Fix C comments and other ANSI C issues.
5984
5985 Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
5986
5987         * endian.h, assembly.c: fix some endianness issues.
5988
5989 Fri Sep 7 18:40:40 CEST 2001 Paolo Molaro <lupus@ximian.com>
5990
5991         * loader.h, load.c: add delegate_class to mono_defaults.
5992         Handle runtime provided methods in mono_get_method ().
5993
5994 2001-08-29  Dietmar Maurer  <dietmar@ximian.com>
5995
5996         * loader.c (mono_get_method): use pinvoke for internal call
5997
5998         * icall.c: use pinvoke for internal call
5999
6000         * loader.c (method_from_memberref): set the method name
6001
6002 Wed Aug 29 12:43:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
6003
6004         * metadata.c: help the compiler generate better code for
6005         mono_class_from_mono_type ().
6006
6007 2001-08-28  Dietmar Maurer  <dietmar@ximian.com>
6008
6009         * class.c (mono_class_metadata_init): delayed computing of the
6010         class size to mono_class_metadata_init ()
6011
6012 Tue Aug 28 15:47:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
6013
6014         * class.c, class.h: add an interfaces member to MonoClass.
6015         * image.c, image.h: add assembly_name field to MonoImage
6016         from the assembly table.
6017         * metadata.c, metadata.h: add mono_metadata_interfaces_from_typedef ().
6018
6019 Mon Aug 27 20:12:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
6020
6021         * class.c: Handle Array in mono_class_from_mono_type ().
6022         * metadata.c, pedump.c: some endian fixes.
6023
6024 Mon Aug 27 15:23:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
6025
6026         * class.c, loader.c, loader.h: More types handled in mono_class_from_mono_type ().
6027         * metadata.c: fix small problem introduced with the latest commit.
6028
6029 Mon Aug 27 12:17:17 CEST 2001 Paolo Molaro <lupus@ximian.com>
6030
6031         * loader.c, metadata.c, metadata.h: Export mono_metadata_type_equal().
6032         We don't need a MonoMetadata pointer anymore to compare signatures in
6033         mono_metadata_signature_equal (), update callers.
6034         Reduced memory usage an number of allocations for MonoMethodHeader and
6035         MonoMethodSignature.
6036
6037 Sun Aug 26 23:03:09 CEST 2001 Paolo Molaro <lupus@ximian.com>
6038
6039         * metadata.c: added compare for szarray.
6040
6041 Sun Aug 26 11:34:24 CEST 2001 Paolo Molaro <lupus@ximian.com>
6042
6043         * class.h, class.c, loader.h, loader.c: export mono_class_from_mono_type ()
6044         and add a couple more types to it and mono_defaults. Give an hint on
6045         classes that need implementing in our corlib and are referenced
6046         in mscorlib.
6047
6048 Sat Aug 25 12:52:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
6049
6050         * class.h, class.c: keep track if a class is also an Enum.
6051         * loader.c: Implement a couple more types for use in libffi
6052         marshalling. Gives better diagnostics when failing to dlopen
6053         a library. Set method->klass for P/Invoke methods, too.
6054
6055 Fri Aug 24 19:30:25 CEST 2001 Paolo Molaro <lupus@ximian.com>
6056
6057         * class.c, class.h: add a MonoType this_arg to MonoClass that
6058         represents a pointer to an object of the class' type that
6059         can be used by the interpreter and later the type cache.
6060         Add best guess alignment info for valuetype objects.
6061
6062 Fri Aug 24 15:50:31 CEST 2001 Paolo Molaro <lupus@ximian.com>
6063
6064         * metadata.h, metadata.c, class.h, class.c: squeezed MonoParam
6065         into MonoType: one less level of indirection and allocation and
6066         simplifies quite a bit of code. Added cache for MonoTypes that are
6067         used frequently, so that we don't need to allocate them all the time.
6068
6069 2001-08-24  Dietmar Maurer  <dietmar@ximian.com>
6070
6071         * class.c (mono_class_create_from_typedef): System.Enum is also a
6072         value type, although it does not derive from System.ValueType
6073         (maybe a bug in the ms compiler?)
6074
6075         * metadata.c (mono_type_size): return the right size for value types
6076
6077         * loader.c (mono_get_method): only initialize method header if not abstract
6078
6079         * class.c (mono_class_from_mono_type): use mono_default values. 
6080
6081 2001-08-23  Dietmar Maurer  <dietmar@ximian.com>
6082
6083         * *: use MonoClass pointers instead of <type_tokens>
6084         
6085         * class.h: new flag: metadata_inited.
6086
6087         * class.c (mono_class_metadata_init): impl.
6088         (mono_class_instance_size): impl.
6089         (mono_class_data_size): impl.
6090
6091 Wed Aug 22 16:27:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
6092
6093         * metadata.c, loader.h, loader.c, image.h, image.c, class.h, class.c:
6094         MonoClass now has the name and name_space fields. 
6095         MonoMethod has a pointer to its MonoClass, instead of MonoImage.
6096         mono_get_method () takes and optional MonoClass as argument.
6097         Removed mono_typedef_from_name() and added mono_class_token_from_name()
6098         instead that takes advantage of a map from class names to typedef
6099         tokens in MonoImage.
6100
6101 Tue Aug 21 18:54:58 CEST 2001 Paolo Molaro <lupus@ximian.com>
6102
6103         * metadata.c: zero is not a valid alignment boundary.
6104         Merge MONO_TYPE_VOID in default decoding code.
6105
6106 2001-08-21  Dietmar Maurer  <dietmar@ximian.com>
6107
6108         * image.h: merged MonoMetadata into MonoImage
6109
6110         * class.h: cleanup of MonoArrayClass, use a MonoClass pointer to
6111         identify the type of elements.
6112
6113 Mon Aug 20 19:39:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
6114
6115         * blob.h: fix MONO_TYPE_TYPEDBYREF value.
6116         * cil-coff.h: split MonoMSDOSHeader and add size info.
6117         * image.c: add some consistency checks.
6118         * metadata.c: fix row size computation: one programmer
6119         error and one LAMESPEC. Handle MONO_TYPE_TYPEDBYREF.
6120         add explanation for the locator routine.
6121         Fix decoding of size in method header.
6122         
6123 2001-08-20  Miguel de Icaza  <miguel@ximian.com>
6124
6125         * assembly.c    (g_concat_dir_and_file): Use _S for string concat.
6126         (g_concat_dir_and_file): Bring g_concat_dir_and_file
6127         function from gnome-libs.  This uses the right path separator
6128         based on the OS, and also works around a bug in some systems where
6129         a double slash is not allowed. 
6130         (default_assembly_name_resolver): Use g_concat_dir_and_file
6131         (mono_assembly_open): ditto.
6132
6133 2001-08-20  Dietmar Maurer  <dietmar@ximian.com>
6134
6135         * metadata.c (mono_metadata_signature_equal): impl.
6136
6137         * *: void is now a realy MonoType (instead of using NULL)
6138         
6139         * metadata.c (do_mono_metadata_parse_type): use
6140         mono_metadata_parse_type to parse void value.
6141
6142 Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
6143
6144         * metadata.c, metadata.h: in the signature and method header store
6145         only the space required for holding the loca vars and incoming arguments.
6146
6147 2001-08-15  Dietmar Maurer  <dietmar@ximian.com>
6148
6149         * metadata.c (do_mono_metadata_parse_type): treat void like any
6150         other type (instead of assigning NULL);
6151
6152 2001-08-14  Dietmar Maurer  <dietmar@ximian.com>
6153
6154         * metadata.c (mono_metadata_parse_mh): fixxed pinned/byref value
6155
6156 2001-08-09  Dietmar Maurer  <dietmar@ximian.com>
6157
6158         * image.c (do_mono_image_open): added a cache for arrays.
6159
6160 Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6161
6162         * metadata.h, metadata.c: add mono_metadata_decode_row_col () to
6163         decode a single column from a row in a metadata table and changes
6164         to take advantage of it in the typedef locator (gives a nice speed up).
6165         Store offset info for function params.
6166
6167 2001-08-02  Dietmar Maurer  <dietmar@ximian.com>
6168
6169         * image.h (MONO_IMAGE_IS_CORLIB): removed 
6170
6171 Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
6172
6173         * assembly.c: how could mono_assembly_close () had ever worked?
6174         * metadata.c, metadata.h: provide offset info for local vars.
6175         Implement mono_type_size () to take care of alignment as well
6176         as size (it was mono_field_type_size in cli/class.c before).
6177
6178 2001-08-01  Dietmar Maurer  <dietmar@ximian.com>
6179
6180         * image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
6181
6182         * assembly.h (CORLIB_NAME): set to corlib.dll
6183
6184         * assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
6185
6186 Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
6187
6188         * metadata.h, metadata.c, Makefile.am, private.h, assembly.c, blob.h,
6189         cil-coff.h, image.c, image.h, pedump.c, rawbuffer.c, rawbuffer.h, row-indexes.h,
6190         tokentype.h: massive namespace cleanup.
6191
6192 Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
6193
6194         * metadata.h, metadata.c: decode exception clauses when parsing method header.
6195
6196 2001-07-27  Dietmar Maurer  <dietmar@ximian.com>
6197
6198         * metadata.c (mono_metadata_free_type): added check for type !=
6199         NULL (void) before calling mono_metadata_free_type()
6200
6201 Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
6202
6203         * metadata.h, row_indexes.h: added header with enumerations to use
6204         to index in the columns from tables in metadata and to decode coded
6205         tokens: we should start using this instead of embedding magic numbers
6206         all over the code.
6207
6208 Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
6209
6210         * assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
6211         Move metadata_t info from cli_image_info_t to MonoImage, where
6212         it's easily accessible. Changed all the uses accordingly.
6213         Added the method and class caches to MonoImage.
6214         * metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
6215         and mono_metadata_decode_value () signature to be more consistent
6216         with the other parse functions (and simplify code). Taken advantage
6217         of zero-length array allocation with GCC. Removed reduntant (and
6218         wrong) MonoFieldType struct and use MonoParam instead. Changed
6219         mono_metadata_parse_field_type () to use common code for parsing.
6220         Added mono_metadata_typedef_from_field () and
6221         mono_metadata_typedef_from_method () to lookup a typedef index from a
6222         field or method token.
6223         Pack the MonoRetType structure more tightly (fits in 8 bytes now).
6224
6225 2001-07-23  Miguel de Icaza  <miguel@ximian.com>
6226
6227         * metadata.c (mono_metadata_parse_field_type): Implement. 
6228         (do_mono_metadata_parse_type): Split engine from
6229         mono_metadata_parse_type, so that we can create smaller structures
6230         for things that just have one pointer to the MonoType (look at
6231         the MonoFieldType)
6232
6233 2001-07-20  Miguel de Icaza  <miguel@ximian.com>
6234
6235         * metadata.c (mono_metadata_parse_mh): Correct the implementation,
6236         as Jan Gray found out, it is incorrect. 
6237
6238 2001-07-18  Miguel de Icaza  <miguel@ximian.com>
6239
6240         * assembly.c: Implement asssembly loading.  This loads an image
6241         and loads all the referenced assemblies.  Come to think of it, we
6242         could always do lazy loading of the assemblies. 
6243
6244         * image.c (mono_image_open): Keep loaded images in a hashtable.
6245
6246         * image.h (MonoImage): Add reference count.
6247
6248 2001-07-17  Miguel de Icaza  <miguel@ximian.com>
6249
6250         * assembly.c (mono_assembly_open): Keep track of the file name in
6251         case the assembly has no ASSEMBLY table.
6252
6253         * metadata.h: Fixed Paolo's quick hack.  Put the documnentation
6254         from get.c here.
6255
6256 Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
6257
6258         * metadata.c, metadata.h: decode local vars in method header
6259         parse function. Change callers accordingly.
6260
6261 Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
6262
6263         * metadata.h, cil-coff.h: protect against multiple inclusion.
6264         Added some new structures to hold information decoded from metadata:
6265         MonoType, MonoParam, MonoArray, MonoMethod, MonoMethodSignature
6266         and relevant decoding/free functions.
6267         * metadata.c: implement decoding functions. Add warning for out of bounds
6268         index in mono_metadata_locate(). Implement mono_get_method () to retreive
6269         all the info about a method signature and invocation. Remove check on
6270         uninitialized local var in parse_mh() and fix memory leak.
6271
6272 2001-07-12  Miguel de Icaza  <miguel@ximian.com>
6273
6274         * metadata.h: More macros.
6275
6276         * tokentype.h: New file.
6277
6278 Fri Jul  6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
6279
6280         * assembly.c: added a consistency check and initialize
6281         some structures with g_new0().
6282         * metadata.c: fixed a couple more bugs in table size computation
6283         and add other checks for out-of bound access to metadata.
6284
6285 Thu Jul  5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
6286
6287         * metatada.c: fix bugs computing table sizes. Spew a
6288         warning when index in string heap is out of bounds.
6289
6290 2001-07-04  Miguel de Icaza  <miguel@ximian.com>
6291
6292         * metadata.h: Add a couple of macros to manipulate tokens. 
6293
6294 Tue Jul  3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
6295
6296         * assembly.c: g_free(ii->cli_sections) (and avoid double free of
6297         cli_section_tables).
6298
6299 2001-07-01  Miguel de Icaza  <miguel@ximian.com>
6300
6301         * metadata.c (mono_metadata_user_string): New function, provides
6302         access to the UserString heap. 
6303
6304 2001-06-27  Miguel de Icaza  <miguel@ximian.com>
6305
6306         * metadata.c: Add inline documentation.
6307
6308 2001-06-26  Miguel de Icaza  <miguel@ximian.com>
6309
6310         * propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
6311         files. 
6312
6313 2001-06-22  Miguel de Icaza  <miguel@ximian.com>
6314
6315         * typeattr.h: New file, TypeAttribute flags. 
6316
6317 2001-06-21  Miguel de Icaza  <miguel@ximian.com>
6318
6319         * mono/metadata/assembly.c (mono_assembly_ensure_section_idx,
6320         mono_assembly_ensure_section): Section loading code.
6321         (load_section_tables): Load the sections.
6322
6323         * mono/metadata/metadata.c (mono_metadata_locate_token,
6324         mono_metadata_locate): Functions to locate the information
6325         definition given a token or a table and an index.
6326         (mono_metadata_compute_table_bases): New.
6327         (compute_size): New function to compute the sizes of the various
6328         tables.
6329
6330         * mono/metadata/metadata.h: Finish listing the different index
6331         types. 
6332
6333         * mono/metadata/pedump.c: Improve to dump new information.
6334
6335 2001-06-19  Miguel de Icaza  <miguel@ximian.com>
6336
6337         * mono/metadata/metadata.c: Entered all the tables matching
6338         Beta2. 
6339
6340         * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2
6341
6342
6343
6344
6345
6346
6347