facf1f6fc015b375d7854436603552e664e91ab8
[mono.git] / mono / utils / ChangeLog
1 2007-07-31  Zoltan Varga  <vargaz@freemail.hu>
2
3         * mono-dl.c (w32_dlerror): Fix call to FormatMessage (). Fixes #82260.
4
5 2007-07-27  Mark Probst  <mark.probst@gmail.com>
6
7         * mono-membar.h: Memory barriers.
8
9 2007-06-13  Mark Probst  <mark.probst@gmail.com>
10
11         * mono-codeman.c (mono_code_manager_reserve): Gather dynamic code
12         allocation stats.
13
14 2007-06-06  Mark Probst  <mark.probst@gmail.com>
15
16         * mono-internal-hash.c: Fixed a bug in the remove entry code.
17
18 2007-06-04  Mark Probst  <mark.probst@gmail.com>
19
20         * Makefile.am:
21         * mono-internal-hash.c, mono-internal-hash.h: Hash table which
22         uses the value themselves as nodes, hence doesn't have to allocate
23         nodes.
24
25 2007-05-24  Jonathan Chambers  <joncham@gmail.com>
26
27         * mono-path.c: Add configure checks for header files.
28         * mono-codeman.c: Add configure checks for header files.
29         * mono-poll.h: Add configure checks for header files.
30         * mono-stdlib.c: Add configure checks for header files.
31         
32         Code is contributed under MIT/X11 license.
33
34 2007-03-09  Jonathan Chambers  <joncham@gmail.com>
35
36         * mono-dl.c:  Use Unicode characters for Win32 functions.
37         
38         Code is contributed under MIT/X11 license.
39         
40 2007-01-26  Robert Jordan  <robertj@gmx.net>
41
42         * mono-dl.c (w32_find_symbol): Implement in-proc symbol lookup
43         for Win32.
44
45 Fri Jan 26 13:06:57 CET 2007 Paolo Molaro <lupus@ximian.com>
46
47         * mono-dl.h, mono-dl.c: make symbols internal and fixes.
48
49 Wed Jan 24 23:20:17 CET 2007 Paolo Molaro <lupus@ximian.com>
50
51         * mono-codeman.c: don't call mono_mprotect() on windows.
52
53 2007-01-20  Zoltan Varga  <vargaz@gmail.com>
54
55         * monobitset.h: monobitset.c: Move MonoBitSet type definition to
56         the header file. Add fast macro based versions of most bitset 
57         operations and optimize the rest a bit.
58
59 Mon Dec 18 18:59:08 CET 2006 Paolo Molaro <lupus@ximian.com>
60
61         * mono-dl.h, mono-dl.c, Makefile.am: implementation
62         of dynamic loading API.
63
64 Wed Dec 13 17:21:40 CET 2006 Paolo Molaro <lupus@ximian.com>
65
66         * mono-mmap.c, mono-mmap.h: use guint64 instead of off_t.
67
68 2006-12-12  Atsushi Enomoto  <atsushi@ximian.com>
69
70         * mono-mmap.c : win32 build fix.
71
72 Mon Dec 11 17:24:49 CET 2006 Paolo Molaro <lupus@ximian.com>
73
74         * mono-codeman.c: changed to use the mono-mmap.h API.
75
76 Mon Dec 11 15:08:27 CET 2006 Paolo Molaro <lupus@ximian.com>
77
78         * mono-mmap.c, mono-mmap.h, Makefile.am: introduced mmap-like API.
79
80 Mon Nov 27 16:03:58 CET 2006 Paolo Molaro <lupus@ximian.com>
81
82         * strtod.c: fix, again, 64 bit issues.
83
84 2006-11-25  Miguel de Icaza  <miguel@novell.com>
85
86         * strtod.c: Upgrade this implementation to the one from:
87         http://www.netlib.org/fp/
88
89         Fixed a few warnings, and added the header thta we had to
90         autodetect the FPU setup to use.
91
92         This should fix the hang when running the corlib test suite. 
93
94 2006-10-18  Miguel de Icaza  <miguel@novell.com>
95
96         * mono-ehash.c (mono_g_hash_table_destroy): Use mg_free, not
97         g_free. 
98
99 2006-10-17  Miguel de Icaza  <miguel@novell.com>
100
101         * mono-ehash.c: Use the new eglib hash implementation;   Currently
102         only Boehm is supported. 
103
104 Tue Oct 10 09:53:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
105
106         * strtod.c: teleport to the new millennium.
107
108 2006-10-09  Miguel de Icaza  <miguel@novell.com>
109
110         * strtod.c: Replace the BSD implementation which was fairly old
111         and complex with a cleaner version from Tcl/Tk.   Fixes the hang
112         that we have in the Double parsing tests in our class libraries.
113
114 2006-09-12  Zoltan Varga  <vargaz@gmail.com>
115
116         * strtod.c (IEEE_8087): Applied patch from Sergey Tikhonov <tsv@solvo.ru>. Define
117         IEEE_8087 for alpha as well.
118
119 2006-09-04  Robert Jordan  <robertj@gmx.net>
120
121         * mono-stdlib.c (mono_mkstemp): Fix mkstemp's loop.
122
123 2006-08-30  Zoltan Varga  <vargaz@gmail.com>
124
125         * mono-codeman.c: Align code to a 16 byte boundary on amd64 too.
126
127 2006-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
128
129         * Makefile.am:
130         * mono-stdlib.[ch]: mkstemp implementation.
131
132 2006-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
133
134         * Makefile.am:
135         * mono-path.[ch]: new files with functions to handle/resolve paths.
136
137 2006-08-10  Zoltan Varga  <vargaz@gmail.com>
138
139         * mono-compiler.h: Fix TLS definitions so libmono can be loaded dynamically as a
140         module. Fixes #78767.
141
142 Wed May 17 19:00:15 CEST 2006 Paolo Molaro <lupus@ximian.com>
143
144         * mono-hash.h, mono-hash.c: changed the code so we're able to
145         specify if the key or value or both are managed objects.
146
147 2006-04-10  Zoltan Varga  <vargaz@gmail.com>
148
149         * monobitset.c (mono_bitset_sub): Use src->size since the assert 
150         guarantees it is less than dest->size.
151
152 Mon Apr 10 12:28:05 CEST 2006 Paolo Molaro <lupus@ximian.com>
153
154         * monobitset.c: cap size in mono_bitset_sub () to
155         avoid reading uninit memory.
156
157 Wed Mar 29 16:39:14 CEST 2006 Paolo Molaro <lupus@ximian.com>
158
159         * mono-counters.c: initialize the next pointer.
160
161 Mon Mar 20 14:50:35 CET 2006 Paolo Molaro <lupus@ximian.com>
162
163         * monobitset.c, monobitset.h: added mono_bitset_find_first_unset ().
164
165 2006-03-16  Zoltan Varga  <vargaz@gmail.com>
166
167         * monobitset.c: Guard inline asm with #ifdef __GNUC__.
168
169         * monobitset.c (mono_bitset_find_first): Turn a g_return_val_if_fail
170         into an assert.
171
172         * mono-compiler.h (MONO_INTERNAL): Disable this on the VC build.
173
174 2006-03-10  Zoltan Varga  <vargaz@gmail.com>
175
176         * monobitset.h monobitset.c: Merge lots of optimizations from the linear-il 
177         branch.
178
179 2006-03-01  Zoltan Varga  <vargaz@gmail.com>
180
181         * mono-compiler.h (__func__): Define this as __FUNCTION__ for MSVC.
182
183         * mono-counters.c: Fix windows build.
184
185 Wed Mar 1 12:33:26 CET 2006 Paolo Molaro <lupus@ximian.com>
186
187         * mono-counters.h, mono-counters.c, Makefile.am: added
188         API for flexible stats collection.
189
190 Tue Feb 28 13:58:50 CET 2006 Paolo Molaro <lupus@ximian.com>
191
192         * mono-compiler.h: fixed Jakub's patch to actually compile on amd64.
193
194 Tue Feb 28 11:33:40 CET 2006 Paolo Molaro <lupus@ximian.com>
195
196         * mono-compiler.h: patch from Jakub Jelinek to retrieve
197         the tls offset without a text writable section (bug #77653).
198
199 2006-02-01  Sebastien Pouliot  <sebastien@ximian.com>
200
201         * mono-compiler.h: Added a macro for isnormal(x) as it's not available
202         in VS.NET.
203
204 2006-01-20  Zoltan Varga  <vargaz@gmail.com>
205
206         * monobitset.h (mono_bitset_set_fast): Add more fast accessors. 
207
208 2006-01-17  Zoltan Varga  <vargaz@gmail.com>
209
210         * monobitset.h monobitset.c: Move the mono_bitset_test_fast macro here
211          from mini.h. Also fix it after the 64 bit changes.
212
213 2006-01-15  Zoltan Varga  <vargaz@gmail.com>
214
215         * monobitset.h monobitset.c: Use 64 bit chunks on 64 bit machines.
216
217 2006-01-04  Zoltan Varga  <vargaz@gmail.com>
218
219         * mono-codeman.c (new_codechunk): Fix warnings.
220
221 2005-12-13  Atsushi Enomoto  <atsushi@ximian.com>
222
223         * strtod.c : un-constified some variables to fix bug #75228.
224
225 2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
226
227         * strenc.c: don't use the UTF16 conversion with g_convert. It returns
228         the FF FE at the beginning, which is not what we expect. Now
229         MONO_EXTERNAL_ENCODINGS can roundtrip and works.
230
231 2005-09-12  Zoltan Varga  <vargaz@freemail.hu>
232
233         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Fix compilation on amd64
234         with recent binutils.
235
236 Wed Sep 7 21:23:18 BST 2005 Paolo Molaro <lupus@ximian.com>
237
238         * mono-codeman.c: ensure we have enough room for thunks
239         with large allocations.
240
241 2005-08-27  Zoltan Varga  <vargaz@gmail.com>
242
243         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Disable this when using
244         intel icc.
245
246         * strtod.c (Storeinc): Modify code which is miscompiled by intel icc.
247
248 Thu Aug 4 20:06:28 BST 2005 Paolo Molaro <lupus@ximian.com>
249
250         * mono-codeman.c: allow room for far calls for ARM, too.
251
252 2005-07-20  Zoltan Varga  <vargaz@freemail.hu>
253
254         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Use the nice way of
255         getting the tls offsets on amd64 too.
256
257 2005-07-19  Zoltan Varga  <vargaz@freemail.hu>
258
259         * mono-compiler.h: Add TLS offset detection for ia64.
260
261 2005-06-28  Zoltan Varga  <vargaz@freemail.hu>
262
263         * mono-compiler.h (trunc): Define this to be floor under win32.
264
265 2005-06-13  Geoff Norton  <gnorton@customerdna.com>
266
267         * mono-compiler.h:  Be slightly more conservative on ppc
268         as this was previously causing crashes building.
269
270 2005-06-09  Duncan Mak  <duncan@novell.com>
271
272         * *.h: Added G_BEGIN_DECLS and G_END_DECLS where appropriate to
273         all public headers. Fixes #74919.
274
275 2005-05-18  Zoltan Varga  <vargaz@freemail.hu>
276
277         * mono-codeman.c: Align code on a 16 byte boundary on ia64.
278
279 2005-04-20  Zoltan Varga  <vargaz@freemail.hu>
280
281         * mono-digest.h mono-sha1.c mono-md5.c: Fix some gcc 4.0 warnings.
282
283 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
284
285         * mono-poll.c: windows return code translation.
286         * mono-poll.h: FD_SETSIZE must be defined when compiling everything.
287         Moved to configure.in.
288
289 2005-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
290
291         * mono-poll.[ch]: mono_poll uses poll() when available, otherwise
292         implement it in terms of select().
293         * Makefile.am: added new files.
294
295 2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>
296
297         * mono-compiler.h: Added defines to make it easier to compile mono and
298         it's unmanaged tools using the Microsoft C compiler (VS.NET 2005).
299
300 2005-02-27  Zoltan Varga  <vargaz@freemail.hu>
301
302         * mono-codeman.c: Pass MAP_32BIT to mmap on amd64 to force generated
303         code to have 32 bit addresses.
304
305 Fri Feb 25 14:54:19 CET 2005 Paolo Molaro <lupus@ximian.com>
306
307         * mono-compiler.h: amd64 can't handle local-exec in PIC libs.
308
309 Thu Feb 24 15:18:05 CET 2005 Paolo Molaro <lupus@ximian.com>
310
311         * Makefile.am, mono-compiler.h: added header to deal with 
312         compiler-specific bugs and features.
313
314 2005-01-30  Zoltan Varga  <vargaz@freemail.hu>
315
316         * mono-logger.c (mono_trace_is_traced): Fix comment.
317
318         * mono-logger.h mono-logger.c (mono_trace_is_traced): New helper function.
319
320 2005-01-15  Zoltan Varga  <vargaz@freemail.hu>
321
322         * mono-codeman.c (new_codechunk): Initialize pagesize in the dynamic
323         case as well.
324
325 2004-12-23  Ben Maurer  <bmaurer@ximian.com>
326
327         * strtod.c: add `cosnt' to some arrays to get them on shareable pages.
328
329 Tue Dec 7 17:53:01 CET 2004 Paolo Molaro <lupus@ximian.com>
330
331         * mono-codeman.c: align bsize so the returned pointer
332         is aligned also for dynamic methods.
333
334 2004-10-26  Zoltan Varga  <vargaz@freemail.hu>
335
336         * mono-codeman.c: Fall back to malloc if MAP_ANON is not defined.
337
338 2004-09-25  Zoltan Varga  <vargaz@freemail.hu>
339
340         * mono-codeman.c (new_codechunk): Set malloc'ed code pages as 
341         executable.
342
343 2004-09-07  Bernie Solomon  <bernard@ugsolutions.com>
344
345         * mono-sha1.c: Remove uint32 and int32 types completely
346
347 2004-09-02  Zoltan Varga  <vargaz@freemail.hu>
348
349         * mono-codeman.c (new_codechunk): Remove g_assert_not_reached ().
350         
351         * mono-codeman.c (new_codechunk): Fix windows build.
352
353         * mono-codeman.h mono-codeman.c: Generalize so it can be used to
354         allocate code for dynamic methods (one method per code manager).
355
356 2004-07-30  Zoltan Varga  <vargaz@freemail.hu>
357
358         * mono-logger.c (mono_trace_set_mask_string): Fix AOT tracing constant.
359
360 2004-07-28  Zoltan Varga  <vargaz@freemail.hu>
361
362         * mono-codeman.c (mono_code_manager_invalidate): Invalidate with
363         x86 break on AMD64 too.
364
365 2004-07-23  zovarga  <vargaz@freemail.hu>
366
367         * monobitset.c (my_g_bit_nth_msf): Add workaround for glib 2.2 bug on
368         64 bit platforms.
369
370 2004-07-09  Ben Maurer  <bmaurer@ximain.com>
371         
372         * mono-hash.c: register gc roots
373
374 2004-07-02  Zoltan Varga  <vargaz@freemail.hu>
375
376         * mono-logger.h mono-logger.c: Added AOT component.
377
378 2004-06-30  Zoltan Varga  <vargaz@freemail.hu>
379
380         * strtod.c: Use gint32 for 32 bit types.
381
382 2004-06-29  Zoltan Varga  <vargaz@freemail.hu>
383
384         * mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption
385         in SHA1Transform on 64 bit systems.
386
387 2004-06-24  David Waite  <mass@akuma.org>
388
389         * monobitset.c: change to C90-style comments from C99/C++-style 
390
391 2004-06-21  Atsushi Enomoto  <atsushi@ximian.com>
392
393         * mono-sha1.c : close opened file in case of successful read. This
394           saves a bunch of System.Reflection Emit failures under windows.
395
396 2004-06-18  Jackson Harper  <jackson@ximian.com>
397
398         * mono-logger.c/h: Add a trace mask option for tracing loading
399         config files. A little white space love.
400         
401 2004-06-18  Jackson Harper  <jackson@ximian.com>
402
403         * mono-logger.c: Change default logging level to ERROR. Make sure
404         that mono_trace_init is called if mono_tracev is our first trace
405         statement is mono_tracev. Little indentation fix.
406         
407 2004-05-25  Zoltan Varga  <vargaz@freemail.hu>
408
409         * mono-codeman.c (mono_code_manager_invalidate): On x86, fill the
410         memory with 0xcc (x86 break).
411
412 2004-05-02  Miguel de Icaza  <miguel@ximian.com>
413
414         * mono-sha1.c: MacOS X defines "LITTLE_ENDIAN", you are supposed
415         to test against BYTE_ORDER, and this caused trouble.  We now use
416         G_BYTE_ORDER and G_LITTLE_ENDIAN.  This should fix the MacOS woes.
417
418 2004-04-26  David Waite  <mass@akuma.org>
419
420         * mono-logger.h: remove comma from end of enumeration declaration
421
422 Fri Apr 23 11:04:33 EDT 2004 Paolo Molaro <lupus@ximian.com>
423
424         * mono-codeman.c: macosx pretends an argument (which is ignored)
425         to be -1. Make sure the thunks area is zeroed.
426
427 2004-03-11  Zoltan Varga  <vargaz@freemail.hu>
428
429         * monobitset.c (mono_bitset_test_bulk): New function to return multiple
430         bits at once.
431
432 Thu Mar 4 15:46:20 PST 2004 Paolo Molaro <lupus@ximian.com>
433
434         * mono-codeman.c: add a define to force the use of malloc
435         instead of mmap.
436
437 Tue Feb 17 21:45:12 CET 2004 Paolo Molaro <lupus@ximian.com>
438
439         * mono-codeman.c, mono-codeman.h: allocate extra room in memory close
440         to the native code for arch where calls have a limited immediate
441         displacement.
442
443 Wed Feb 11 15:26:18 CET 2004 Paolo Molaro <lupus@ximian.com>
444
445         * Makefile.am, mono-codeman.h, mono-codeman.c: new support code
446         to deal with buffers of native code (handles exec bits and other
447         details).
448
449 2004-01-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
450
451         * strenc.c:
452         (mono_unicode_from_external): UTF8 is the default, not the preferred
453         encoding, ie, try MONO_EXTERNAL_ENCODINGS first. When "default_locale"
454         was passed in the env. var., it always failed because we were passing
455         "default_locale" to g_convert. Also fixed the byte count for non-UTF8
456         conversions.
457         (mono_utf8_from_external): UTF8 is the default, not the preferred one.
458
459         Fixes bug #53166.
460
461 Thu Jan 8 19:56:08 CET 2004 Paolo Molaro <lupus@ximian.com>
462
463         * mono-uri.c: fixed compile problem.
464
465 2003-12-02  Bernie Solomon  <bernard@ugsolutions.com>
466
467         * mono-math.c: fix for older C compilers and big endian machines
468
469 2003-11-12  Zoltan Varga  <vargaz@freemail.hu>
470
471         * mono-math.h mono-math.c: New file which contains implementations of
472         math functions/macros which are missing on some platforms.
473
474 2003-11-10  Dick Porter  <dick@ximian.com>
475
476         * strenc.c: Use platform-endian UTF16
477
478 2003-10-28  Dick Porter  <dick@ximian.com>
479
480         * strenc.h:
481         * strenc.c: New files, convert text to and from unicode or utf8,
482         and the user's chosen encoding.
483
484 2003-08-26  Zoltan Varga  <vargaz@freemail.hu>
485
486         * mono-hash.h mono-hash.c (mono_g_hash_table_remap): New function used
487         to remap hashtable values during a copying collection. Not used at the
488         moment.
489         * mono-hash.c (g_hash_node_new): Restructured to avoid the global lock
490         in the common case.
491         * mono-hash.c (mono_g_hash_table_new_full): Enable the optimization of
492         the key function even if the client supplied g_direct_equal instead of
493         NULL.
494
495 2003-08-22  Duncan Mak  <duncan@ximian.com>
496
497         * strtod.c: 64-bit related fixes from Laurent Morichetti
498         <l_m@pacbell.net>. Patch approval from Miguel.
499
500 Fri Jun 6 19:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
501
502         * mono-logger.h, mono-logger.c, Makefile.am: added
503         selective logging code by Jerome Laban <jlaban@wanadoo.fr>.
504
505 2003-03-05  Dietmar Maurer  <dietmar@ximian.com>
506
507         * monobitset.c (mono_bitset_set_all): impl.
508
509 Fri Sep 13 15:56:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
510
511         * mono-digest.h, mono-sha1.c: Added mono_digest_get_public_token()
512         to get the public key token from a public key.
513
514 Thu Jul 25 13:59:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
515
516         * mono-digest.h, mono-md5.c, mono-sha1.c: MD5 and SHA1
517         implementations.
518
519 Mon Jun 3 15:59:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
520
521         * strtod.c: make __bsd_dtoa() always return malloc()ed memory.
522
523 Mon Jun 3 15:42:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
524
525         * monobitset.c, monobitset.h: documentation and fixes from
526         Dennis Haney.
527
528 Sat Jun 1 14:10:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
529
530         * monobitset.c: fix my screwup pointed out by Lawrence Pit
531         (loz@cable.a2000.nl).
532
533 Fri May 31 15:34:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
534
535         * monobitset.c, monobitset.h: fixes. added mono_bitset_foreach().
536
537 Wed May 22 12:42:06 CEST 2002 Paolo Molaro <lupus@ximian.com>
538
539         * monobitset.c: use our own bit_nth_lsf since the glib one is buggy.
540         Add more tests. mono_bitset_find_first (set, -1) will work correctly
541         now.
542
543 2002-05-09  Dietmar Maurer  <dietmar@ximian.com>
544
545         * monobitset.c: use memcmp instead of memcpy
546
547 Thu May 9 17:23:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
548
549         * monobitset.c, monibitset.h: bit set data structure.
550         Not included in the build yet because the jit has some symbol clashes
551         with it.
552
553 Mon Mar 25 12:50:53 CET 2002 Paolo Molaro <lupus@ximian.com>
554
555         * First checkin: libmonoutils is meant to hold some utility
556         data structures and bits that are usefult to the rest of the project
557         and don't require metadata/runtime support.
558         mono-hash is a GC-safe hash table: i.e. you can store GC-allocated
559         data in it.
560