/
ChangeLog
413 lines (270 loc) · 14.6 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
Mon Sep 24 18:56:59 CEST 2001 Paolo Molaro <lupus@ximian.com>
* object.c, object.h: added mono_ldstr (), mono_string_is_interned () and
mono_string_intern () to implement the semantics of the ldstr opcode
and the interning of System.Strings.
* icall.c: provide hooks to make String::IsIntern and String::Intern
internalcalls.
2001-09-23 Dick Porter <dick@ximian.com>
* threads-dummy.c:
* threads-dummy.h: New files of dummy threading routines
* Makefile.am (THREAD_SOURCE): Arrange to compile different thread
support code based on system specifics
Rename PTHREAD_LIBS to THREAD_LIBS
2001-09-23 Dick Porter <dick@ximian.com>
* threads-pthread.c: Implement the System.Threading.Thread::Sleep,
Schedule (called when asked to Sleep for 0 ms) and CurrentThread
internal calls.
(mono_thread_init): Set up a Thread object instance to return when
the main thread calls Thread.CurrentThread
(mono_thread_cleanup): Wait for all subthreads to exit
* icall.c: New internal calls for System.Threading.Thread::Sleep
(including Schedule) and CurrentThread
* threads.h: New file, to insulate thread-specific stuff from the
rest of the code
2001-09-21 Dick Porter <dick@ximian.com>
* threads-pthread.h:
* threads-pthread.c: New file, for handling pthreads-style
threading support. Start() now starts a new thread and executes
the ThreadStart delegate instance.
* icall.c: Added the internalcall for
System.Threading.Thread::Start_internal
* Makefile.am: Added new files, and PTHREADS_LIBS to the link line
Thu Sep 20 19:37:39 CEST 2001 Paolo Molaro <lupus@ximian.com>
* loader.c: work around the different signatures for delegates
constructors csc generates in compiled code vs the ones compiled in mscorlib.
Tue Sep 18 13:16:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.h, class.c: add mono_class_get_field_from_name ().
* *: Fix C comments and other ANSI C issues.
Mon Sep 10 20:21:34 CEST 2001 Paolo Molaro <lupus@ximian.com>
* endian.h, assembly.c: fix some endianness issues.
Fri Sep 7 18:40:40 CEST 2001 Paolo Molaro <lupus@ximian.com>
* loader.h, load.c: add delegate_class to mono_defaults.
Handle runtime provided methods in mono_get_method ().
2001-08-29 Dietmar Maurer <dietmar@ximian.com>
* loader.c (mono_get_method): use pinvoke for internal call
* icall.c: use pinvoke for internal call
* loader.c (method_from_memberref): set the method name
Wed Aug 29 12:43:41 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.c: help the compiler generate better code for
mono_class_from_mono_type ().
2001-08-28 Dietmar Maurer <dietmar@ximian.com>
* class.c (mono_class_metadata_init): delayed computing of the
class size to mono_class_metadata_init ()
Tue Aug 28 15:47:15 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.c, class.h: add an interfaces member to MonoClass.
* image.c, image.h: add assembly_name field to MonoImage
from the assembly table.
* metadata.c, metadata.h: add mono_metadata_interfaces_from_typedef ().
Mon Aug 27 20:12:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.c: Handle Array in mono_class_from_mono_type ().
* metadata.c, pedump.c: some endian fixes.
Mon Aug 27 15:23:23 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.c, loader.c, loader.h: More types handled in mono_class_from_mono_type ().
* metadata.c: fix small problem introduced with the latest commit.
Mon Aug 27 12:17:17 CEST 2001 Paolo Molaro <lupus@ximian.com>
* loader.c, metadata.c, metadata.h: Export mono_metadata_type_equal().
We don't need a MonoMetadata pointer anymore to compare signatures in
mono_metadata_signature_equal (), update callers.
Reduced memory usage an number of allocations for MonoMethodHeader and
MonoMethodSignature.
Sun Aug 26 23:03:09 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.c: added compare for szarray.
Sun Aug 26 11:34:24 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.h, class.c, loader.h, loader.c: export mono_class_from_mono_type ()
and add a couple more types to it and mono_defaults. Give an hint on
classes that need implementing in our corlib and are referenced
in mscorlib.
Sat Aug 25 12:52:54 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.h, class.c: keep track if a class is also an Enum.
* loader.c: Implement a couple more types for use in libffi
marshalling. Gives better diagnostics when failing to dlopen
a library. Set method->klass for P/Invoke methods, too.
Fri Aug 24 19:30:25 CEST 2001 Paolo Molaro <lupus@ximian.com>
* class.c, class.h: add a MonoType this_arg to MonoClass that
represents a pointer to an object of the class' type that
can be used by the interpreter and later the type cache.
Add best guess alignment info for valuetype objects.
Fri Aug 24 15:50:31 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, metadata.c, class.h, class.c: squeezed MonoParam
into MonoType: one less level of indirection and allocation and
simplifies quite a bit of code. Added cache for MonoTypes that are
used frequently, so that we don't need to allocate them all the time.
2001-08-24 Dietmar Maurer <dietmar@ximian.com>
* class.c (mono_class_create_from_typedef): System.Enum is also a
value type, although it does not derive from System.ValueType
(maybe a bug in the ms compiler?)
* metadata.c (mono_type_size): return the right size for value types
* loader.c (mono_get_method): only initialize method header if not abstract
* class.c (mono_class_from_mono_type): use mono_default values.
2001-08-23 Dietmar Maurer <dietmar@ximian.com>
* *: use MonoClass pointers instead of <type_tokens>
* class.h: new flag: metadata_inited.
* class.c (mono_class_metadata_init): impl.
(mono_class_instance_size): impl.
(mono_class_data_size): impl.
Wed Aug 22 16:27:30 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.c, loader.h, loader.c, image.h, image.c, class.h, class.c:
MonoClass now has the name and name_space fields.
MonoMethod has a pointer to its MonoClass, instead of MonoImage.
mono_get_method () takes and optional MonoClass as argument.
Removed mono_typedef_from_name() and added mono_class_token_from_name()
instead that takes advantage of a map from class names to typedef
tokens in MonoImage.
Tue Aug 21 18:54:58 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.c: zero is not a valid alignment boundary.
Merge MONO_TYPE_VOID in default decoding code.
2001-08-21 Dietmar Maurer <dietmar@ximian.com>
* image.h: merged MonoMetadata into MonoImage
* class.h: cleanup of MonoArrayClass, use a MonoClass pointer to
identify the type of elements.
Mon Aug 20 19:39:00 CEST 2001 Paolo Molaro <lupus@ximian.com>
* blob.h: fix MONO_TYPE_TYPEDBYREF value.
* cil-coff.h: split MonoMSDOSHeader and add size info.
* image.c: add some consistency checks.
* metadata.c: fix row size computation: one programmer
error and one LAMESPEC. Handle MONO_TYPE_TYPEDBYREF.
add explanation for the locator routine.
Fix decoding of size in method header.
2001-08-20 Miguel de Icaza <miguel@ximian.com>
* assembly.c (g_concat_dir_and_file): Use _S for string concat.
(g_concat_dir_and_file): Bring g_concat_dir_and_file
function from gnome-libs. This uses the right path separator
based on the OS, and also works around a bug in some systems where
a double slash is not allowed.
(default_assembly_name_resolver): Use g_concat_dir_and_file
(mono_assembly_open): ditto.
2001-08-20 Dietmar Maurer <dietmar@ximian.com>
* metadata.c (mono_metadata_signature_equal): impl.
* *: void is now a realy MonoType (instead of using NULL)
* metadata.c (do_mono_metadata_parse_type): use
mono_metadata_parse_type to parse void value.
Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.c, metadata.h: in the signature and method header store
only the space required for holding the loca vars and incoming arguments.
2001-08-15 Dietmar Maurer <dietmar@ximian.com>
* metadata.c (do_mono_metadata_parse_type): treat void like any
other type (instead of assigning NULL);
2001-08-14 Dietmar Maurer <dietmar@ximian.com>
* metadata.c (mono_metadata_parse_mh): fixxed pinned/byref value
2001-08-09 Dietmar Maurer <dietmar@ximian.com>
* image.c (do_mono_image_open): added a cache for arrays.
Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, metadata.c: add mono_metadata_decode_row_col () to
decode a single column from a row in a metadata table and changes
to take advantage of it in the typedef locator (gives a nice speed up).
Store offset info for function params.
2001-08-02 Dietmar Maurer <dietmar@ximian.com>
* image.h (MONO_IMAGE_IS_CORLIB): removed
Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
* assembly.c: how could mono_assembly_close () had ever worked?
* metadata.c, metadata.h: provide offset info for local vars.
Implement mono_type_size () to take care of alignment as well
as size (it was mono_field_type_size in cli/class.c before).
2001-08-01 Dietmar Maurer <dietmar@ximian.com>
* image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
* assembly.h (CORLIB_NAME): set to corlib.dll
* assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, metadata.c, Makefile.am, private.h, assembly.c, blob.h,
cil-coff.h, image.c, image.h, pedump.c, rawbuffer.c, rawbuffer.h, row-indexes.h,
tokentype.h: massive namespace cleanup.
Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, metadata.c: decode exception clauses when parsing method header.
2001-07-27 Dietmar Maurer <dietmar@ximian.com>
* metadata.c (mono_metadata_free_type): added check for type !=
NULL (void) before calling mono_metadata_free_type()
Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, row_indexes.h: added header with enumerations to use
to index in the columns from tables in metadata and to decode coded
tokens: we should start using this instead of embedding magic numbers
all over the code.
Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
* assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
Move metadata_t info from cli_image_info_t to MonoImage, where
it's easily accessible. Changed all the uses accordingly.
Added the method and class caches to MonoImage.
* metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
and mono_metadata_decode_value () signature to be more consistent
with the other parse functions (and simplify code). Taken advantage
of zero-length array allocation with GCC. Removed reduntant (and
wrong) MonoFieldType struct and use MonoParam instead. Changed
mono_metadata_parse_field_type () to use common code for parsing.
Added mono_metadata_typedef_from_field () and
mono_metadata_typedef_from_method () to lookup a typedef index from a
field or method token.
Pack the MonoRetType structure more tightly (fits in 8 bytes now).
2001-07-23 Miguel de Icaza <miguel@ximian.com>
* metadata.c (mono_metadata_parse_field_type): Implement.
(do_mono_metadata_parse_type): Split engine from
mono_metadata_parse_type, so that we can create smaller structures
for things that just have one pointer to the MonoType (look at
the MonoFieldType)
2001-07-20 Miguel de Icaza <miguel@ximian.com>
* metadata.c (mono_metadata_parse_mh): Correct the implementation,
as Jan Gray found out, it is incorrect.
2001-07-18 Miguel de Icaza <miguel@ximian.com>
* assembly.c: Implement asssembly loading. This loads an image
and loads all the referenced assemblies. Come to think of it, we
could always do lazy loading of the assemblies.
* image.c (mono_image_open): Keep loaded images in a hashtable.
* image.h (MonoImage): Add reference count.
2001-07-17 Miguel de Icaza <miguel@ximian.com>
* assembly.c (mono_assembly_open): Keep track of the file name in
case the assembly has no ASSEMBLY table.
* metadata.h: Fixed Paolo's quick hack. Put the documnentation
from get.c here.
Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.c, metadata.h: decode local vars in method header
parse function. Change callers accordingly.
Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metadata.h, cil-coff.h: protect against multiple inclusion.
Added some new structures to hold information decoded from metadata:
MonoType, MonoParam, MonoArray, MonoMethod, MonoMethodSignature
and relevant decoding/free functions.
* metadata.c: implement decoding functions. Add warning for out of bounds
index in mono_metadata_locate(). Implement mono_get_method () to retreive
all the info about a method signature and invocation. Remove check on
uninitialized local var in parse_mh() and fix memory leak.
2001-07-12 Miguel de Icaza <miguel@ximian.com>
* metadata.h: More macros.
* tokentype.h: New file.
Fri Jul 6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
* assembly.c: added a consistency check and initialize
some structures with g_new0().
* metadata.c: fixed a couple more bugs in table size computation
and add other checks for out-of bound access to metadata.
Thu Jul 5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
* metatada.c: fix bugs computing table sizes. Spew a
warning when index in string heap is out of bounds.
2001-07-04 Miguel de Icaza <miguel@ximian.com>
* metadata.h: Add a couple of macros to manipulate tokens.
Tue Jul 3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
* assembly.c: g_free(ii->cli_sections) (and avoid double free of
cli_section_tables).
2001-07-01 Miguel de Icaza <miguel@ximian.com>
* metadata.c (mono_metadata_user_string): New function, provides
access to the UserString heap.
2001-06-27 Miguel de Icaza <miguel@ximian.com>
* metadata.c: Add inline documentation.
2001-06-26 Miguel de Icaza <miguel@ximian.com>
* propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
files.
2001-06-22 Miguel de Icaza <miguel@ximian.com>
* typeattr.h: New file, TypeAttribute flags.
2001-06-21 Miguel de Icaza <miguel@ximian.com>
* mono/metadata/assembly.c (mono_assembly_ensure_section_idx,
mono_assembly_ensure_section): Section loading code.
(load_section_tables): Load the sections.
* mono/metadata/metadata.c (mono_metadata_locate_token,
mono_metadata_locate): Functions to locate the information
definition given a token or a table and an index.
(mono_metadata_compute_table_bases): New.
(compute_size): New function to compute the sizes of the various
tables.
* mono/metadata/metadata.h: Finish listing the different index
types.
* mono/metadata/pedump.c: Improve to dump new information.
2001-06-19 Miguel de Icaza <miguel@ximian.com>
* mono/metadata/metadata.c: Entered all the tables matching
Beta2.
* mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2