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