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