2009-04-13 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / utils / ChangeLog
1 2009-04-03  Miguel de Icaza  <miguel@novell.com>
2
3         * mono-filemap.c: Move mono_file_unmap for the not-mmap case to
4         the mono-filemap.c file so it can be plugged in platform-specific
5         code as well. 
6
7 2009-04-03 Rodrigo Kumpera  <rkumpera@novell.com>
8
9         * strenc.h:
10         * strenc.c: Add mono_utf8_validate_and_len_with_bounds.
11
12 2009-03-23  Zoltan Varga  <vargaz@gmail.com>
13
14         * Makefile.am (libmonoutils_la_SOURCES): Fix make dist.
15
16 2009-03-22  Zoltan Varga  <vargaz@gmail.com>
17
18         * gc_wrapper.h: Disable thread local allocation for ARM too because of
19         incomplete support in libgc.
20
21 2009-03-20  Zoltan Varga  <vargaz@gmail.com>
22
23         * gc_wrapper.h: New file, moved from ../os.
24
25         * Makefile.am: Add gc_wrapper.h
26
27 2009-03-06  Zoltan Varga  <vargaz@gmail.com>
28
29         * mono-hash.c: Use precise GC allocation for the Boehm GC as well.
30
31 2009-02-16  Mark Probst  <mark.probst@gmail.com>
32
33         Contributed under the terms of the MIT/X11 license by Steven
34         Munroe <munroesj@us.ibm.com>.
35
36         * mono-compiler.h: MONO_THREAD_VAR_OFFSET for PPC(64).
37
38 2009-02-11  Bill Holmes  <billholmes54@gmail.com>
39
40         * mono-filemap.c : Fixing the MSVC build.
41
42         Contributed under MIT/X11 license.
43
44 2009-02-03  Miguel de Icaza  <miguel@novell.com>
45
46         * mono-dl.c: Add support for registering in-proc addresses as
47         libraries that can be P/Invoked.   Used in operating systems that
48         lack a dynamic linker. 
49
50         * mono-filemap.c: Integrate Paolo's mono-filemap code here, split
51         some code from mono-mmap. into this file to ease porting.
52
53         * mono-io-portability.c: Use new define to turn off portability
54         features. 
55
56 2009-01-25  Zoltan Varga  <vargaz@gmail.com>
57
58         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Add ARM Linux support.
59
60 2009-01-21  Zoltan Varga  <vargaz@gmail.com>
61
62         * mono-mmap.c: Applied patch from Koushik Dutta
63         (koush@koushikdutta.com). Rework the #ifdefs so Android could use the mmap
64         implementation.
65
66 2009-01-19  Bill Holmes  <billholmes54@gmail.com>
67
68         * mono-path.c (mono_path_canonicalize): Adding support for UNC
69            paths on Windows.
70
71         Contributed under MIT/X11 license.
72
73 2009-01-18  Zoltan Varga  <vargaz@gmail.com>
74
75         * mono-mmap.c: Applied patch from Koushik Dutta
76         (koush@koushikdutta.com). Add an #ifdef HAVE_SHM_OPEN.
77
78 2009-01-16  Zoltan Varga  <vargaz@gmail.com>
79
80         * mono-hash.c: Change the roots to use write barriers when running with
81         SGEN, to avoid scanning all the hash nodes at every minor collection.
82
83 2009-01-15  Zoltan Varga  <vargaz@gmail.com>
84
85         * mono-hash.c: Rewrite the SGEN specific parts to use a user defined
86         marker function instead of registering each GC node as a hash root.
87
88 2009-01-08  Bill Holmes  <billholmes54@gmail.com>
89
90         * mono-dl.c (mono_dl_open): Fix the MSVC build.
91
92         Contributed under MIT/X11 license.
93
94 2008-12-19  Miguel de Icaza  <miguel@novell.com>
95
96         * mono-dl.c (mono_dl_open): Do not crash if the platform does not
97         support dlopen.
98
99 2008-12-08  Kornél Pál  <kornelpal@gmail.com>
100
101         * mono-time.c (mono_100ns_ticks, PLATFORM_WIN32): Use GetSystemTimeAsFileTime
102         with ULARGE_INTEGER that is more efficient.
103
104         Contributed under MIT/X11 license.
105
106 2008-12-02  Rodrigo Kumpera  <rkumpera@novell.com>
107
108         * mono-property-hash.c (mono_property_hash_destroy): Release
109         the root hashtable as well.
110
111 2008-11-24  Zoltan Varga  <vargaz@gmail.com>
112
113         * freebsd-elf_common.h (struct): Use uint32_t instead of 
114         u_int32_t to fix the build on opensolaris.
115
116 2008-11-18  Zoltan Varga  <vargaz@gmail.com>
117
118         * freebsd-dwarf.h: Add dwarf.h header file from freebsd.
119
120 2008-11-14  Andreas Färber  <andreas.faerber@web.de>
121
122         * Makefile.am (ENABLE_DTRACE): Re-add dtrace -h flag.
123         Fixes #445074.
124         
125         Contributed under MIT/X11 license.
126
127 Mon Nov 10 17:38:41 CET 2008 Paolo Molaro <lupus@ximian.com>
128
129         * mono-proclib.c: adapt code for FreeBSD and hopefully other BSD
130         systems.
131
132 Mon Nov 10 17:27:01 CET 2008 Paolo Molaro <lupus@ximian.com>
133
134         * mono-proclib.c, mono-proclib.h: added elapsed time and parent pid.
135
136 2008-11-05  Zoltan Varga  <vargaz@gmail.com>
137
138         * Makefile.am (libmonoutils_la_SOURCES): Add the freebsd-elf*.h files to
139         the build.
140
141 2008-11-04  Zoltan Varga  <vargaz@gmail.com>
142
143         * freebsd-elf32.h freebsd-elf64.h freebsd-elf_common.h: Add elf header
144         files from freebsd.
145
146 Wed Oct 22 17:43:03 CEST 2008 Paolo Molaro <lupus@ximian.com>
147
148         * mono-proclib.c, mono-proclib.h: added functions to get info
149         about the processors in the system.
150
151 Wed Oct 22 16:45:20 CEST 2008 Paolo Molaro <lupus@ximian.com>
152
153         * mono-proclib.c, mono-mmap.c: basic support for OSX and
154         (untested) BSD systems.
155
156 2008-10-13  Bill Holmes  <billholmes54@gmail.com>
157
158         * mono-proclib.c : Adding a compilation check for HAVE_UNISTD_H.
159
160         Contributed under MIT/X11 license.
161
162 Mon Oct 13 14:36:10 CEST 2008 Paolo Molaro <lupus@ximian.com>
163
164         * mono-proclib.c, mono-proclib.h: added a function to deal with
165         error handling if the caller needs the info.
166
167 Mon Oct 13 11:11:43 CEST 2008 Paolo Molaro <lupus@ximian.com>
168
169         * Makefile.am, mono-proclib.c, mono-proclib.h: utility functions to
170         access process-related information.
171
172 2008-10-08  Zoltan Varga  <vargaz@gmail.com>
173
174         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Apply a patch from
175         the fedora packagers to the IA64 MONO_THREAD_VAR_OFFSET definition.
176
177 2008-09-26  Zoltan Varga  <vargaz@gmail.com>
178
179         * mono-mmap.c (mono_shared_area_for_pid): Fix a warning.
180
181 Thu Sep 18 18:16:45 CEST 2008 Paolo Molaro <lupus@ximian.com>
182
183         * mono-mmap.c, mono-mmap.h: added mono_shared_area_instances ()
184         too return the list of mono processes with performance counter data.
185
186 2008-08-27  Bill Holmes  <billholmes54@gmail.com>
187
188         * strenc.c : Fixing some waringings and compiler errors when using
189           eglib.
190
191         Contributed under MIT/X11 license.
192
193 2008-08-20  Mike Voorhees  <vernish13@gmail.com>
194
195         * strenc.h : Adding declaration for mono_utf8_validate_and_len.
196
197         * strenc.c : Adding implementation for mono_utf8_validate_and_len.
198
199         Contributed under MIT/X11 license.
200
201 2008-08-03  Andreas Färber  <andreas.faerber@web.de>
202
203         * mono-io-portability.c (mono_portability_find_file): Fix ANSI C compliance.
204         
205         Contributed under MIT/X11 license.
206
207 Fri Aug 1 15:48:53 CEST 2008 Paolo Molaro <lupus@ximian.com>
208
209         * mono-mmap.h, mono-mmap.c: added support for storing some runtime data
210         in a shared memory page.
211
212 2008-07-21  Bill Holmes  <billholmes54@gmail.com>
213
214         * mono-membar.h :  From previous commit.  When including glib.h,
215           <> should be used and not "".
216
217         Contributed under MIT/X11 license.
218
219 2008-07-21  Bill Holmes  <billholmes54@gmail.com>
220
221         * mono-membar.h :  Including glib.h to get definition of 'inline.'  Needed
222           by the MSVC compiler.
223
224         Contributed under MIT/X11 license.
225
226 2008-07-09  Zoltan Varga  <vargaz@gmail.com>
227
228         * mono-codeman.c (mono_code_manager_new): Initialize the read-only field.
229         
230         * mono-codeman.c (mono_code_manager_set_read_only): New helper function to
231         set the code manager to read-only status.
232         (mono_code_manager_reserve_align): Assert if the code manager is read only.
233
234 2008-06-14  Zoltan Varga  <vargaz@gmail.com>
235
236         * mono-codeman.c (new_codechunk): Allocate memory for dynamic code managers
237         using dlmemalign.
238
239         * dlmalloc.c: Enable the memalign functions.
240
241 2008-06-05  Zoltan Varga  <vargaz@gmail.com>
242
243         * Makefile.am (libmonoutils_la_SOURCES): Add dtrace.h.
244
245 2008-06-05  Andreas Färber  <andreas.faerber@web.de>
246
247         * dtrace.h: New file, defines macros for DTrace probes.
248         * Makefile.am (BUILT_SOURCES): Generate mono-dtrace.h when DTrace enabled.
249
250         Contributed under MIT/X11 license.
251
252 2008-05-29  Zoltan Varga  <vargaz@gmail.com>
253
254         * mono-value-hash.c: Remove the unused prime functions. Fixes #395320.
255
256 2008-05-27  Zoltan Varga  <vargaz@gmail.com>
257
258         * mono-value-hash.c: Fix build on older glib versions.
259
260         * Makefile.am (libmonoutils_la_SOURCES): Add mono-value-hash.{h,c}.
261
262         * mono-value-hash.h mono-value-hash.c: New files.
263
264 2008-05-26  Zoltan Varga  <vargaz@gmail.com>
265
266         * Makefile.am (libmonoutils_la_SOURCES): Add mono-property-hash.{h,c}.
267
268         * mono-property-hash.h mono-property-hash.c: New files.
269
270 2008-05-14  Kornél Pál  <kornelpal@gmail.com>
271
272         * mono-path.c (mono_path_canonicalize): Convert '/' to '\' on Windows that
273         fixes path canonicalization for paths containing '/'.
274
275         Contributed under MIT/X11 license.
276
277 2008-05-04  Andreas Faerber  <andreas.faerber@web.de>
278
279         * mono-membar.h: Prepare support for OSX/ppc64.
280
281         Contributed under MIT/X11 license.
282
283 2008-04-16  Jonathan Chambers  <joncham@gmail.com>
284         * monobitset.c (find_first_unset): Use gsize instead of gulong for platform
285           dependent size; fixes Win64.
286         * mono-member.h: Implement mono_memory_barrier, mono_memory_read_barrier, and 
287           mono_memory_write_barrier for Win64.
288
289         Contributed under MIT/X11 license.
290
291 2008-04-16  Marek Habersack  <mhabersack@novell.com>
292
293         * mono-io-portability.c (mono_portability_find_file): properly
294         process unrooted entries with a trailing slash.
295
296 2008-04-09  Zoltan Varga  <vargaz@gmail.com>
297
298         * dlmalloc.h dlmalloc.c: New files, a slightly modified version of Doug
299         Lea's malloc package.
300
301         * mono-codeman.c: Use dlmalloc for managing memory in dynamic code managers,
302         this allows us to set the executable bit on the system memory dlmalloc 
303         allocates from, fixing #320036.
304
305 2008-03-29  Zoltan Varga  <vargaz@gmail.com>
306
307         * mono-logger.h: Move G_END_DECLS outside of an #ifdef. Fixes #375107.
308
309 2008-03-14  Robert Jordan  <robertj@gmx.net>
310
311         * mono-dl.c (w32_load_module): prevent error dialog by resetting
312         the Win32 error mode during LoadLibrary (). Fixes #360363.
313
314         * mono-dl.c (w32_dlerror): kill a warning.
315
316 2007-MM-DD  Yoichi NAKAYAMA  <nakayama@pixela.co.jp>
317  
318         * mono-membar.h: Memory barrier for mips.
319  
320         Contributed under MIT/X11 license.
321  
322 Tue Feb 26 15:43:26 CET 2008 Paolo Molaro <lupus@ximian.com>
323
324         * mono-time.c, mono-time.h: new file with the implementation of the
325         time-related routines we need in mono. This includes a hires
326         monotonic clock and a proper monotonic replacement for GetTickCount ().
327
328 2008-02-13  Zoltan Varga  <vargaz@gmail.com>
329
330         * mono-membar.h (mono_memory_barrier): Applied patch by Sergey Tikhonov 
331         <tsv@solvo.ru>. Add alpha support.
332
333 2008-01-11  Zoltan Varga  <vargaz@gmail.com>
334
335         * mono-io-portability.c: Include errno.h since it is needed by code inside
336         #ifdef DEBUG.
337
338         * mono-ehash.c: Don't include os/gc_wrapper.h.
339
340 2008-01-06  Zoltan Varga  <vargaz@gmail.com>
341
342         * mono-hash.c: Don't include os/gc_wrapper.h.
343
344 2007-11-06  Geoff Norton  <gnorton@novell.com>
345
346         * strtod.c: Use a G_MUTEX call pattern compatible with eglib.  Patch
347         from Jonathan Chambers
348
349 2007-10-11  Zoltan Varga  <vargaz@freemail.hu>
350
351         * mono-mmap.c (mono_vfree): Fix call to VirtualFree (). Fixes #332165.
352
353 Mon Oct 8 11:47:44 CEST 2007 Paolo Molaro <lupus@ximian.com>
354
355         * mono-codeman.c, mono-codeman.h: added a function to be able
356         to specify alignment per-allocation. Changed the code to align
357         the starting position instead of the size, which wouldn't work
358         with variable-alignment.
359
360 Mon Oct 8 10:51:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
361
362         * mono-codeman.c, mono-codeman.h: fixed alignment code to not
363         be wasteful, Added documentation. Added mono_code_manager_size ()
364         to gather statistics info about a code manager.
365
366 Mon Oct 8 10:21:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
367
368         * mono-counters.h, mono-counters.c: better formatting of the output
369         and added a cleanup function.
370
371 2007-10-03  Miguel de Icaza  <miguel@novell.com>
372
373         * mono-compiler.h (trunc): Make the definition of trunk for MSC
374         use ceil or floor instead of always using floor which is
375         incorrect.
376
377         Issue pointed out by Aras Pranckevicius <aras@unity3d.com>
378
379 2007-10-02  Jonathan Chambers <joncham@gmail.com>
380
381         * mono-io-portability.c: Init __mono_io_portability_helpers
382         to PORTABILITY_NONE on windows as mono_portability_helpers_init
383         is not always called before mono_portability_find_file.
384         
385         Code is contributed under MIT/X11 license.
386
387 2007-10-01  Jonathan Chambers <joncham@gmail.com>
388
389         * mono-io-portability.c: Only support on non-Windows
390         platforms.
391         
392         Code is contributed under MIT/X11 license.
393
394 Mon Sep 24 17:14:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
395
396         * strtod.h, strtod.c: made the code threadsafe, fixed gcc warnings,
397         renamed exported call and made it properly internal.
398
399 2007-09-14  Jonathan Chambers <joncham@gmail.com>
400
401         * mono-io-portability.c: Add HAVE_UNISTD_H check around include.
402         
403         Code is contributed under MIT/X11 license.
404
405 Wed Sep 12 15:15:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
406
407         * Makefile.am: don't install internal headers.
408
409 2007-09-12  Marek Habersack  <mhabersack@novell.com>
410
411         * mono-io-portability.c: added. Moved options_init from io-layer.
412         (find_in_dir): moved from io-layer/io-portability.c
413         (mono_portability_find_file): moved find_file from
414         io-layer/io-portability.c, renamed and made MONO_INTERNAL.
415
416         * mono-io-portability.h: added. Contains declarations utility
417         functions and acros for checking whether MONO_IOMAP is in effect.
418         Added a prototype for mono_portability_find_file.
419
420 2007-09-09  Zoltan Varga  <vargaz@gmail.com>
421
422         * mono-compiler.h: Applied patch from Jurek Bartuszek (jurek@gentoo.org).
423         Fixes build with -fPIE.
424
425 2007-08-31  Jonathan Chambers <joncham@gmail.com>
426
427         * mono-compiler.h: Define MONO_INTERNAL to nothing on Windows.
428         Fixes tons of warnings we get on cygwin build.
429         
430         Code is contributed under MIT/X11 license.
431
432 2007-08-14  Jonathan Chambers <joncham@gmail.com>
433
434         * mono-membar.h: Use intrinsic functions in msvc.
435
436 2007-07-31  Zoltan Varga  <vargaz@freemail.hu>
437
438         * mono-dl.c (w32_dlerror): Fix call to FormatMessage (). Fixes #82260.
439
440 2007-07-27  Mark Probst  <mark.probst@gmail.com>
441
442         * mono-membar.h: Memory barriers.
443
444 2007-06-13  Mark Probst  <mark.probst@gmail.com>
445
446         * mono-codeman.c (mono_code_manager_reserve): Gather dynamic code
447         allocation stats.
448
449 2007-06-06  Mark Probst  <mark.probst@gmail.com>
450
451         * mono-internal-hash.c: Fixed a bug in the remove entry code.
452
453 2007-06-04  Mark Probst  <mark.probst@gmail.com>
454
455         * Makefile.am:
456         * mono-internal-hash.c, mono-internal-hash.h: Hash table which
457         uses the value themselves as nodes, hence doesn't have to allocate
458         nodes.
459
460 2007-05-24  Jonathan Chambers  <joncham@gmail.com>
461
462         * mono-path.c: Add configure checks for header files.
463         * mono-codeman.c: Add configure checks for header files.
464         * mono-poll.h: Add configure checks for header files.
465         * mono-stdlib.c: Add configure checks for header files.
466         
467         Code is contributed under MIT/X11 license.
468
469 2007-03-09  Jonathan Chambers  <joncham@gmail.com>
470
471         * mono-dl.c:  Use Unicode characters for Win32 functions.
472         
473         Code is contributed under MIT/X11 license.
474         
475 2007-01-26  Robert Jordan  <robertj@gmx.net>
476
477         * mono-dl.c (w32_find_symbol): Implement in-proc symbol lookup
478         for Win32.
479
480 Fri Jan 26 13:06:57 CET 2007 Paolo Molaro <lupus@ximian.com>
481
482         * mono-dl.h, mono-dl.c: make symbols internal and fixes.
483
484 Wed Jan 24 23:20:17 CET 2007 Paolo Molaro <lupus@ximian.com>
485
486         * mono-codeman.c: don't call mono_mprotect() on windows.
487
488 2007-01-20  Zoltan Varga  <vargaz@gmail.com>
489
490         * monobitset.h: monobitset.c: Move MonoBitSet type definition to
491         the header file. Add fast macro based versions of most bitset 
492         operations and optimize the rest a bit.
493
494 Mon Dec 18 18:59:08 CET 2006 Paolo Molaro <lupus@ximian.com>
495
496         * mono-dl.h, mono-dl.c, Makefile.am: implementation
497         of dynamic loading API.
498
499 Wed Dec 13 17:21:40 CET 2006 Paolo Molaro <lupus@ximian.com>
500
501         * mono-mmap.c, mono-mmap.h: use guint64 instead of off_t.
502
503 2006-12-12  Atsushi Enomoto  <atsushi@ximian.com>
504
505         * mono-mmap.c : win32 build fix.
506
507 Mon Dec 11 17:24:49 CET 2006 Paolo Molaro <lupus@ximian.com>
508
509         * mono-codeman.c: changed to use the mono-mmap.h API.
510
511 Mon Dec 11 15:08:27 CET 2006 Paolo Molaro <lupus@ximian.com>
512
513         * mono-mmap.c, mono-mmap.h, Makefile.am: introduced mmap-like API.
514
515 Mon Nov 27 16:03:58 CET 2006 Paolo Molaro <lupus@ximian.com>
516
517         * strtod.c: fix, again, 64 bit issues.
518
519 2006-11-25  Miguel de Icaza  <miguel@novell.com>
520
521         * strtod.c: Upgrade this implementation to the one from:
522         http://www.netlib.org/fp/
523
524         Fixed a few warnings, and added the header thta we had to
525         autodetect the FPU setup to use.
526
527         This should fix the hang when running the corlib test suite. 
528
529 2006-10-18  Miguel de Icaza  <miguel@novell.com>
530
531         * mono-ehash.c (mono_g_hash_table_destroy): Use mg_free, not
532         g_free. 
533
534 2006-10-17  Miguel de Icaza  <miguel@novell.com>
535
536         * mono-ehash.c: Use the new eglib hash implementation;   Currently
537         only Boehm is supported. 
538
539 Tue Oct 10 09:53:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
540
541         * strtod.c: teleport to the new millennium.
542
543 2006-10-09  Miguel de Icaza  <miguel@novell.com>
544
545         * strtod.c: Replace the BSD implementation which was fairly old
546         and complex with a cleaner version from Tcl/Tk.   Fixes the hang
547         that we have in the Double parsing tests in our class libraries.
548
549 2006-09-12  Zoltan Varga  <vargaz@gmail.com>
550
551         * strtod.c (IEEE_8087): Applied patch from Sergey Tikhonov <tsv@solvo.ru>. Define
552         IEEE_8087 for alpha as well.
553
554 2006-09-04  Robert Jordan  <robertj@gmx.net>
555
556         * mono-stdlib.c (mono_mkstemp): Fix mkstemp's loop.
557
558 2006-08-30  Zoltan Varga  <vargaz@gmail.com>
559
560         * mono-codeman.c: Align code to a 16 byte boundary on amd64 too.
561
562 2006-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
563
564         * Makefile.am:
565         * mono-stdlib.[ch]: mkstemp implementation.
566
567 2006-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
568
569         * Makefile.am:
570         * mono-path.[ch]: new files with functions to handle/resolve paths.
571
572 2006-08-10  Zoltan Varga  <vargaz@gmail.com>
573
574         * mono-compiler.h: Fix TLS definitions so libmono can be loaded dynamically as a
575         module. Fixes #78767.
576
577 Wed May 17 19:00:15 CEST 2006 Paolo Molaro <lupus@ximian.com>
578
579         * mono-hash.h, mono-hash.c: changed the code so we're able to
580         specify if the key or value or both are managed objects.
581
582 2006-04-10  Zoltan Varga  <vargaz@gmail.com>
583
584         * monobitset.c (mono_bitset_sub): Use src->size since the assert 
585         guarantees it is less than dest->size.
586
587 Mon Apr 10 12:28:05 CEST 2006 Paolo Molaro <lupus@ximian.com>
588
589         * monobitset.c: cap size in mono_bitset_sub () to
590         avoid reading uninit memory.
591
592 Wed Mar 29 16:39:14 CEST 2006 Paolo Molaro <lupus@ximian.com>
593
594         * mono-counters.c: initialize the next pointer.
595
596 Mon Mar 20 14:50:35 CET 2006 Paolo Molaro <lupus@ximian.com>
597
598         * monobitset.c, monobitset.h: added mono_bitset_find_first_unset ().
599
600 2006-03-16  Zoltan Varga  <vargaz@gmail.com>
601
602         * monobitset.c: Guard inline asm with #ifdef __GNUC__.
603
604         * monobitset.c (mono_bitset_find_first): Turn a g_return_val_if_fail
605         into an assert.
606
607         * mono-compiler.h (MONO_INTERNAL): Disable this on the VC build.
608
609 2006-03-10  Zoltan Varga  <vargaz@gmail.com>
610
611         * monobitset.h monobitset.c: Merge lots of optimizations from the linear-il 
612         branch.
613
614 2006-03-01  Zoltan Varga  <vargaz@gmail.com>
615
616         * mono-compiler.h (__func__): Define this as __FUNCTION__ for MSVC.
617
618         * mono-counters.c: Fix windows build.
619
620 Wed Mar 1 12:33:26 CET 2006 Paolo Molaro <lupus@ximian.com>
621
622         * mono-counters.h, mono-counters.c, Makefile.am: added
623         API for flexible stats collection.
624
625 Tue Feb 28 13:58:50 CET 2006 Paolo Molaro <lupus@ximian.com>
626
627         * mono-compiler.h: fixed Jakub's patch to actually compile on amd64.
628
629 Tue Feb 28 11:33:40 CET 2006 Paolo Molaro <lupus@ximian.com>
630
631         * mono-compiler.h: patch from Jakub Jelinek to retrieve
632         the tls offset without a text writable section (bug #77653).
633
634 2006-02-01  Sebastien Pouliot  <sebastien@ximian.com>
635
636         * mono-compiler.h: Added a macro for isnormal(x) as it's not available
637         in VS.NET.
638
639 2006-01-20  Zoltan Varga  <vargaz@gmail.com>
640
641         * monobitset.h (mono_bitset_set_fast): Add more fast accessors. 
642
643 2006-01-17  Zoltan Varga  <vargaz@gmail.com>
644
645         * monobitset.h monobitset.c: Move the mono_bitset_test_fast macro here
646          from mini.h. Also fix it after the 64 bit changes.
647
648 2006-01-15  Zoltan Varga  <vargaz@gmail.com>
649
650         * monobitset.h monobitset.c: Use 64 bit chunks on 64 bit machines.
651
652 2006-01-04  Zoltan Varga  <vargaz@gmail.com>
653
654         * mono-codeman.c (new_codechunk): Fix warnings.
655
656 2005-12-13  Atsushi Enomoto  <atsushi@ximian.com>
657
658         * strtod.c : un-constified some variables to fix bug #75228.
659
660 2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
661
662         * strenc.c: don't use the UTF16 conversion with g_convert. It returns
663         the FF FE at the beginning, which is not what we expect. Now
664         MONO_EXTERNAL_ENCODINGS can roundtrip and works.
665
666 2005-09-12  Zoltan Varga  <vargaz@freemail.hu>
667
668         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Fix compilation on amd64
669         with recent binutils.
670
671 Wed Sep 7 21:23:18 BST 2005 Paolo Molaro <lupus@ximian.com>
672
673         * mono-codeman.c: ensure we have enough room for thunks
674         with large allocations.
675
676 2005-08-27  Zoltan Varga  <vargaz@gmail.com>
677
678         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Disable this when using
679         intel icc.
680
681         * strtod.c (Storeinc): Modify code which is miscompiled by intel icc.
682
683 Thu Aug 4 20:06:28 BST 2005 Paolo Molaro <lupus@ximian.com>
684
685         * mono-codeman.c: allow room for far calls for ARM, too.
686
687 2005-07-20  Zoltan Varga  <vargaz@freemail.hu>
688
689         * mono-compiler.h (MONO_THREAD_VAR_OFFSET): Use the nice way of
690         getting the tls offsets on amd64 too.
691
692 2005-07-19  Zoltan Varga  <vargaz@freemail.hu>
693
694         * mono-compiler.h: Add TLS offset detection for ia64.
695
696 2005-06-28  Zoltan Varga  <vargaz@freemail.hu>
697
698         * mono-compiler.h (trunc): Define this to be floor under win32.
699
700 2005-06-13  Geoff Norton  <gnorton@customerdna.com>
701
702         * mono-compiler.h:  Be slightly more conservative on ppc
703         as this was previously causing crashes building.
704
705 2005-06-09  Duncan Mak  <duncan@novell.com>
706
707         * *.h: Added G_BEGIN_DECLS and G_END_DECLS where appropriate to
708         all public headers. Fixes #74919.
709
710 2005-05-18  Zoltan Varga  <vargaz@freemail.hu>
711
712         * mono-codeman.c: Align code on a 16 byte boundary on ia64.
713
714 2005-04-20  Zoltan Varga  <vargaz@freemail.hu>
715
716         * mono-digest.h mono-sha1.c mono-md5.c: Fix some gcc 4.0 warnings.
717
718 2005-04-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
719
720         * mono-poll.c: windows return code translation.
721         * mono-poll.h: FD_SETSIZE must be defined when compiling everything.
722         Moved to configure.in.
723
724 2005-04-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
725
726         * mono-poll.[ch]: mono_poll uses poll() when available, otherwise
727         implement it in terms of select().
728         * Makefile.am: added new files.
729
730 2005-03-29  Sebastien Pouliot  <sebastien@ximian.com>
731
732         * mono-compiler.h: Added defines to make it easier to compile mono and
733         it's unmanaged tools using the Microsoft C compiler (VS.NET 2005).
734
735 2005-02-27  Zoltan Varga  <vargaz@freemail.hu>
736
737         * mono-codeman.c: Pass MAP_32BIT to mmap on amd64 to force generated
738         code to have 32 bit addresses.
739
740 Fri Feb 25 14:54:19 CET 2005 Paolo Molaro <lupus@ximian.com>
741
742         * mono-compiler.h: amd64 can't handle local-exec in PIC libs.
743
744 Thu Feb 24 15:18:05 CET 2005 Paolo Molaro <lupus@ximian.com>
745
746         * Makefile.am, mono-compiler.h: added header to deal with 
747         compiler-specific bugs and features.
748
749 2005-01-30  Zoltan Varga  <vargaz@freemail.hu>
750
751         * mono-logger.c (mono_trace_is_traced): Fix comment.
752
753         * mono-logger.h mono-logger.c (mono_trace_is_traced): New helper function.
754
755 2005-01-15  Zoltan Varga  <vargaz@freemail.hu>
756
757         * mono-codeman.c (new_codechunk): Initialize pagesize in the dynamic
758         case as well.
759
760 2004-12-23  Ben Maurer  <bmaurer@ximian.com>
761
762         * strtod.c: add `cosnt' to some arrays to get them on shareable pages.
763
764 Tue Dec 7 17:53:01 CET 2004 Paolo Molaro <lupus@ximian.com>
765
766         * mono-codeman.c: align bsize so the returned pointer
767         is aligned also for dynamic methods.
768
769 2004-10-26  Zoltan Varga  <vargaz@freemail.hu>
770
771         * mono-codeman.c: Fall back to malloc if MAP_ANON is not defined.
772
773 2004-09-25  Zoltan Varga  <vargaz@freemail.hu>
774
775         * mono-codeman.c (new_codechunk): Set malloc'ed code pages as 
776         executable.
777
778 2004-09-07  Bernie Solomon  <bernard@ugsolutions.com>
779
780         * mono-sha1.c: Remove uint32 and int32 types completely
781
782 2004-09-02  Zoltan Varga  <vargaz@freemail.hu>
783
784         * mono-codeman.c (new_codechunk): Remove g_assert_not_reached ().
785         
786         * mono-codeman.c (new_codechunk): Fix windows build.
787
788         * mono-codeman.h mono-codeman.c: Generalize so it can be used to
789         allocate code for dynamic methods (one method per code manager).
790
791 2004-07-30  Zoltan Varga  <vargaz@freemail.hu>
792
793         * mono-logger.c (mono_trace_set_mask_string): Fix AOT tracing constant.
794
795 2004-07-28  Zoltan Varga  <vargaz@freemail.hu>
796
797         * mono-codeman.c (mono_code_manager_invalidate): Invalidate with
798         x86 break on AMD64 too.
799
800 2004-07-23  zovarga  <vargaz@freemail.hu>
801
802         * monobitset.c (my_g_bit_nth_msf): Add workaround for glib 2.2 bug on
803         64 bit platforms.
804
805 2004-07-09  Ben Maurer  <bmaurer@ximain.com>
806         
807         * mono-hash.c: register gc roots
808
809 2004-07-02  Zoltan Varga  <vargaz@freemail.hu>
810
811         * mono-logger.h mono-logger.c: Added AOT component.
812
813 2004-06-30  Zoltan Varga  <vargaz@freemail.hu>
814
815         * strtod.c: Use gint32 for 32 bit types.
816
817 2004-06-29  Zoltan Varga  <vargaz@freemail.hu>
818
819         * mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption
820         in SHA1Transform on 64 bit systems.
821
822 2004-06-24  David Waite  <mass@akuma.org>
823
824         * monobitset.c: change to C90-style comments from C99/C++-style 
825
826 2004-06-21  Atsushi Enomoto  <atsushi@ximian.com>
827
828         * mono-sha1.c : close opened file in case of successful read. This
829           saves a bunch of System.Reflection Emit failures under windows.
830
831 2004-06-18  Jackson Harper  <jackson@ximian.com>
832
833         * mono-logger.c/h: Add a trace mask option for tracing loading
834         config files. A little white space love.
835         
836 2004-06-18  Jackson Harper  <jackson@ximian.com>
837
838         * mono-logger.c: Change default logging level to ERROR. Make sure
839         that mono_trace_init is called if mono_tracev is our first trace
840         statement is mono_tracev. Little indentation fix.
841         
842 2004-05-25  Zoltan Varga  <vargaz@freemail.hu>
843
844         * mono-codeman.c (mono_code_manager_invalidate): On x86, fill the
845         memory with 0xcc (x86 break).
846
847 2004-05-02  Miguel de Icaza  <miguel@ximian.com>
848
849         * mono-sha1.c: MacOS X defines "LITTLE_ENDIAN", you are supposed
850         to test against BYTE_ORDER, and this caused trouble.  We now use
851         G_BYTE_ORDER and G_LITTLE_ENDIAN.  This should fix the MacOS woes.
852
853 2004-04-26  David Waite  <mass@akuma.org>
854
855         * mono-logger.h: remove comma from end of enumeration declaration
856
857 Fri Apr 23 11:04:33 EDT 2004 Paolo Molaro <lupus@ximian.com>
858
859         * mono-codeman.c: macosx pretends an argument (which is ignored)
860         to be -1. Make sure the thunks area is zeroed.
861
862 2004-03-11  Zoltan Varga  <vargaz@freemail.hu>
863
864         * monobitset.c (mono_bitset_test_bulk): New function to return multiple
865         bits at once.
866
867 Thu Mar 4 15:46:20 PST 2004 Paolo Molaro <lupus@ximian.com>
868
869         * mono-codeman.c: add a define to force the use of malloc
870         instead of mmap.
871
872 Tue Feb 17 21:45:12 CET 2004 Paolo Molaro <lupus@ximian.com>
873
874         * mono-codeman.c, mono-codeman.h: allocate extra room in memory close
875         to the native code for arch where calls have a limited immediate
876         displacement.
877
878 Wed Feb 11 15:26:18 CET 2004 Paolo Molaro <lupus@ximian.com>
879
880         * Makefile.am, mono-codeman.h, mono-codeman.c: new support code
881         to deal with buffers of native code (handles exec bits and other
882         details).
883
884 2004-01-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
885
886         * strenc.c:
887         (mono_unicode_from_external): UTF8 is the default, not the preferred
888         encoding, ie, try MONO_EXTERNAL_ENCODINGS first. When "default_locale"
889         was passed in the env. var., it always failed because we were passing
890         "default_locale" to g_convert. Also fixed the byte count for non-UTF8
891         conversions.
892         (mono_utf8_from_external): UTF8 is the default, not the preferred one.
893
894         Fixes bug #53166.
895
896 Thu Jan 8 19:56:08 CET 2004 Paolo Molaro <lupus@ximian.com>
897
898         * mono-uri.c: fixed compile problem.
899
900 2003-12-02  Bernie Solomon  <bernard@ugsolutions.com>
901
902         * mono-math.c: fix for older C compilers and big endian machines
903
904 2003-11-12  Zoltan Varga  <vargaz@freemail.hu>
905
906         * mono-math.h mono-math.c: New file which contains implementations of
907         math functions/macros which are missing on some platforms.
908
909 2003-11-10  Dick Porter  <dick@ximian.com>
910
911         * strenc.c: Use platform-endian UTF16
912
913 2003-10-28  Dick Porter  <dick@ximian.com>
914
915         * strenc.h:
916         * strenc.c: New files, convert text to and from unicode or utf8,
917         and the user's chosen encoding.
918
919 2003-08-26  Zoltan Varga  <vargaz@freemail.hu>
920
921         * mono-hash.h mono-hash.c (mono_g_hash_table_remap): New function used
922         to remap hashtable values during a copying collection. Not used at the
923         moment.
924         * mono-hash.c (g_hash_node_new): Restructured to avoid the global lock
925         in the common case.
926         * mono-hash.c (mono_g_hash_table_new_full): Enable the optimization of
927         the key function even if the client supplied g_direct_equal instead of
928         NULL.
929
930 2003-08-22  Duncan Mak  <duncan@ximian.com>
931
932         * strtod.c: 64-bit related fixes from Laurent Morichetti
933         <l_m@pacbell.net>. Patch approval from Miguel.
934
935 Fri Jun 6 19:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
936
937         * mono-logger.h, mono-logger.c, Makefile.am: added
938         selective logging code by Jerome Laban <jlaban@wanadoo.fr>.
939
940 2003-03-05  Dietmar Maurer  <dietmar@ximian.com>
941
942         * monobitset.c (mono_bitset_set_all): impl.
943
944 Fri Sep 13 15:56:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
945
946         * mono-digest.h, mono-sha1.c: Added mono_digest_get_public_token()
947         to get the public key token from a public key.
948
949 Thu Jul 25 13:59:34 CEST 2002 Paolo Molaro <lupus@ximian.com>
950
951         * mono-digest.h, mono-md5.c, mono-sha1.c: MD5 and SHA1
952         implementations.
953
954 Mon Jun 3 15:59:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
955
956         * strtod.c: make __bsd_dtoa() always return malloc()ed memory.
957
958 Mon Jun 3 15:42:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
959
960         * monobitset.c, monobitset.h: documentation and fixes from
961         Dennis Haney.
962
963 Sat Jun 1 14:10:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
964
965         * monobitset.c: fix my screwup pointed out by Lawrence Pit
966         (loz@cable.a2000.nl).
967
968 Fri May 31 15:34:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
969
970         * monobitset.c, monobitset.h: fixes. added mono_bitset_foreach().
971
972 Wed May 22 12:42:06 CEST 2002 Paolo Molaro <lupus@ximian.com>
973
974         * monobitset.c: use our own bit_nth_lsf since the glib one is buggy.
975         Add more tests. mono_bitset_find_first (set, -1) will work correctly
976         now.
977
978 2002-05-09  Dietmar Maurer  <dietmar@ximian.com>
979
980         * monobitset.c: use memcmp instead of memcpy
981
982 Thu May 9 17:23:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
983
984         * monobitset.c, monibitset.h: bit set data structure.
985         Not included in the build yet because the jit has some symbol clashes
986         with it.
987
988 Mon Mar 25 12:50:53 CET 2002 Paolo Molaro <lupus@ximian.com>
989
990         * First checkin: libmonoutils is meant to hold some utility
991         data structures and bits that are usefult to the rest of the project
992         and don't require metadata/runtime support.
993         mono-hash is a GC-safe hash table: i.e. you can store GC-allocated
994         data in it.
995