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