2006-12-22 Robert Jordan <robertj@gmx.net>
[mono.git] / libgc / ChangeLog
1 2006-12-22  Robert Jordan  <robertj@gmx.net>
2
3         * include/private/gcconfig.h, os_dep.c:
4         Add FreeBSD/amd64 support. Based on a FreeBSD Port Collection patch.
5         r=Paolo.
6
7 2006-11-19  Allan Hsu <allan@counterpop.net>
8
9         * libgc/darwin_stop_world.c, libgc/include/private/gc_priv.h,
10         libgc/os_dep.c: Fixes to make the GC work on OSX/Intel with XCode
11         2.4 (10.4u SDK and newer).
12
13         This code should work with older versions of the SDK as well. 
14
15 Tue Oct 10 16:58:37 CEST 2006 Paolo Molaro <lupus@ximian.com>
16
17         * darwin_stop_world.c: patch from Allan Hsu <allan@counterpop.net>
18         to avoid using memory just after freeing it.
19
20 2006-08-31  Zoltan Varga  <vargaz@freemail.hu>
21
22         * libgc.vcproj: Define GC_INSIDE_DLL on VC build too.
23
24 2006-08-18  Zoltan Varga  <vargaz@gmail.com>
25
26         * Makefile.am (EXTRA_DIST): Fix make dist.
27
28         * libtool.m4: Removed, should not be in SVN.
29
30 2006-07-19  Zoltan Varga  <vargaz@gmail.com>
31
32         * configure.in: Applied patch from Sergey Tikhonov <tsv@solvo.ru>. Beginning
33         of alpha support.
34
35 2006-06-28  Martin Baulig  <martin@ximian.com>
36
37         * darwin_stop_world.c, pthread_support.c: Committing a patch from
38         Allan Hsu <allan@imeem.com> to fix memory leaks; see bug #78628.
39
40 2006-06-26  Zoltan Varga  <vargaz@gmail.com>
41
42         * solaris_threads.c: And another one.
43
44         * solaris_pthreads.c: Avoid another solaris/x86 #error.
45
46 2006-04-08  Zoltan Varga  <vargaz@gmail.com>
47
48         * dyn_load.c: Avoid #error "large files are not supported by libelf" errors on solaris/x86.
49
50 2006-05-24  Martin Baulig  <martin@ximian.com>
51
52         * doc/debugger-support.txt: Removed; this issue turned out to be
53         something completely different and the patch mentioned in this
54         file is already reverted.
55
56 2006-05-23  Zoltan Varga  <vargaz@gmail.com>
57
58         * os_dep.c (GC_unix_get_mem): Add an assert to bail out early if the runtime is
59         run on a machine with smaller page size than HBLKSIZE.
60
61 2006-05-19  Martin Baulig  <martin@ximian.com>
62
63         * include/gc.h: Don't include "libgc-mono-debugger.h".
64
65         * pthread_support.c, pthread_stop_world.c: Include it here.
66
67 2006-05-17  Martin Baulig  <martin@ximian.com>
68
69         * pthread-support.c, pthread-stop-world.c: Put the debugger stuff
70         inside a `#if LIBGC_MONO_DEBUGGER_SUPPORTED' conditional.
71
72 2006-05-17  Martin Baulig  <martin@ximian.com>
73
74         Fix a weird race condition which prevented XSP from working inside
75         the debugger - see doc/debugger-issues.txt for details.
76
77         * include/gc.h: Moved the "libgc-mono-debugger.h" #include down
78         after the gc_pthread_redirects.h one.
79
80         * include/libgc-mono-debugger.h
81         (GCThreadFunctions): Added `thread_created' and `thread_exited'.
82         (GC_mono_debugger_add_all_threads): New function prototype.
83
84         * pthread_stop_world.c (gc_thread_vtable): Allow the vtable and
85         any function in it be NULL; use NULL as the default vtable.
86         (GC_mono_debugger_add_all_threads): New public function.
87
88         * pthread_support.c
89         (GC_delete_thread): Call `gc_thread_vtable->thread_exited()'.
90         (GC_thr_init): Call `gc_thread_vtable->thread_created()'.
91
92 2006-04-05  Zoltan Varga  <vargaz@gmail.com>
93
94         * include/private/gcconfig.h (LINUX and SPARC): Applied patch from 
95         David S. Miller <davem@davemloft.net>: Do not
96        use _etest and GC_SysVGetDataStart() to figure out DATASTART.
97        Instead use either SEARCH_FOR_DATA_START or __environ, based
98        upon GLIBC version.
99
100 2006-03-25  Zoltan Varga  <vargaz@gmail.com>
101
102         * configure.in: Applied patch from David S. Miller <davem@davemloft.net>: Fix support for sparc/linux.
103
104 Mon Mar 20 18:56:21 CET 2006 Paolo Molaro <lupus@ximian.com>
105
106         * include/gc.h: enable pthread redirection on darwin, too.
107         * include/gc_pthread_redirects.h: completed from Bryan Berg.
108
109 Thu Feb 9 16:20:55 CET 2006 Paolo Molaro <lupus@ximian.com>
110
111         * os_dep.c, include/private/gcconfig.h, darwin_stop_world.c:
112         OSX/x86 support, mostly from Geoff Norton <gnorton@customerdna.com>.
113
114 Wed Feb 1 18:23:55 CET 2006 Paolo Molaro <lupus@ximian.com>
115
116         * pthread_support.c, *: back out Zoltan's patch since it's
117         incorrect.
118         The correct fix it to execute the cleanup from inside
119         the thread also when using the __thread var to access the
120         current GC_thread.
121
122 2006-02-01  Zoltan Varga  <vargaz@gmail.com>
123
124         * pthread_support.c (GC_thread_deregister_foreign): New public API
125         function to deregister a foreign thread from the GC.
126         (GC_destroy_thread_local): Clean up the TLS key too.
127         
128 Tue Jan 24 12:34:06 CET 2006 Paolo Molaro <lupus@ximian.com>
129
130         * *: update from upstream changes.
131
132 2006-01-21  Martin Baulig  <martin@ximian.com>
133
134         * include/Makefile.am: Don't install libgc-mono-debugger.h.
135
136 2006-01-21  Martin Baulig  <martin@ximian.com>
137
138         * include/libgc-mono-debugger.h: Call the conditional
139         `_IN_THE_MONO_DEBUGGER', not `IN_MONO_DEBUGGER'.
140
141 2006-01-11  Zoltan Varga  <vargaz@gmail.com>
142
143         * include/private/gcconfig.h: Undef _FILE_OFFSET_BITS on sparc.
144
145 2006-01-03  Geoff Norton  <gnorton@customerdna.com>
146
147         * darwin_stop_world.c:  Merge a patch from Bruce Mitchener that fixes a small
148         leak on OS X.
149
150 2005-12-26  Zoltan Varga  <vargaz@gmail.com>
151
152         * include/private/gcconfig.h: Disable PROC_VDB on solaris/x86 as it
153         doesn't seem to work.
154
155 2005-12-06  Todd Berman  <tberman@off.net>
156
157         * pthread_support.c (GC_thread_register_foreign): Wrap a GC_printf1
158         inside a #ifdef DEBUG_THREADS like the others. Based on a patch from
159         Bryan Berg (bryan AT imeem DOT com).
160
161 2005-10-11  Zoltan Varga  <vargaz@gmail.com>
162
163         * pthread_support.c (GC_thread_deregister_foreign): Make this return
164         void instead of void*.
165
166 2005-09-29  Raja R Harinath  <harinath@gmail.com>
167
168         * configure.host: Fix syntax error.
169
170 2005-08-24  Zoltan Varga  <vargaz@gmail.com>
171
172         * win32_threads.c: If GC_INSIDE_DLL is defined, define the DllMain function for automatic registration
173         of threads with the GC.
174
175         * configure.in: Add an option for turning GC_INSIDE_DLL on.     
176
177 2005-08-25  Zoltan Varga  <vargaz@freemail.hu>
178
179         * solaris_threads.c (GC_thread_register_foreign): Add dummy implementation.
180
181 Mon Aug 22 10:41:41 BST 2005 Paolo Molaro <lupus@ximian.com>
182
183         * include/private/gc_locks.h: make gcc generate correct code for swp
184         (patch by tomba@bat.org, Tomi Valkeinen).
185
186 2005-08-20  Zoltan Varga  <vargaz@freemail.hu>
187
188         * include/private/gc_locks.h: Fix compilation of GC_test_and_set on IA64 with gcc-3.3.5.
189
190 Thu Aug 18 18:08:54 CEST 2005 Paolo Molaro <lupus@ximian.com>
191
192         * include/private/gcconfig.h: use LINUX_STACKBOTTOM on ARM Linux.
193
194 Mon Aug 1 16:49:45 CEST 2005 Paolo Molaro <lupus@ximian.com>
195
196         * include/private/pthread_support.h, pthread_support.c: added
197         patch to support registering new threads at runtime (from
198         Michael Meeks <michael.meeks@novell.com>).
199
200 2005-07-07  Raja R Harinath  <rharinath@novell.com>
201
202         * Makefile.am (INCLUDES): Add $(top_builddir)/.. to pick up mono's
203         config.h.
204
205 Thu Jul 7 12:15:22 CEST 2005 Paolo Molaro <lupus@ximian.com>
206
207         * pthread_support.c: fix compilation when TLS_ALLOC is not defined.
208
209 Thu Jul 7 11:59:42 CEST 2005 Paolo Molaro <lupus@ximian.com>
210
211         * pthread_support.c, Makefile.am: make the __thread var use
212         fast access if available (and avoid dlopen issue, bug #75390).
213
214 2005-07-05  Ben Maurer  <bmaurer@ximian.com>
215
216         * pthread_stop_world.c (pthread_start_world, _GC_suspend_handler):
217         Make sure that all threads have been started before releasing the
218         GC_lock. Otherwise, the thread table can be corrupt in the restart
219         handler, causing deadlocks and segfaults.
220
221 2005-06-22  Zoltan Varga  <vargaz@freemail.hu>
222
223         * include/private/gcconfig.h: Fix amd64 build.
224
225 2005-06-21  Ben Maurer  <bmaurer@ximian.com>
226
227         * configure.host: remove -fexceptions, messes up with nptl
228         includes, as on fc4.
229
230 2005-06-17  Zoltan Varga  <vargaz@freemail.hu>
231
232         * pthread_support.c: Workaround gcc-3.3 compiler bug.
233
234 2005-05-26  Sebastien Pouliot  <sebastien@ximian.com>
235
236         * libgc.vcproj: Project file for libgc.
237
238 2005-05-19  Zoltan Varga  <vargaz@freemail.hu>
239
240         * configure.in: Handle i386-*-linux* as well. Fixes #74960.     
241
242 Tue May 3 16:28:26 CEST 2005 Paolo Molaro <lupus@ximian.com>
243
244         * os_dep.c: remove usage of libc private symbol.
245
246 2005-05-02  Miguel de Icaza  <miguel@novell.com>
247
248         * pthread_stop_world.c (GC_restart_handler, GC_suspend_handler):
249         Wrap the original routines into methods that preserve the value of
250         errno.  Fixes #74740
251
252 2005-04-18  Zoltan Varga  <vargaz@freemail.hu>
253
254         * configure.in: Applied another freebsd patch from Bill Middleton (flashdict@gmail.com).
255
256 2005-04-15  Zoltan Varga  <vargaz@freemail.hu>
257
258         * configure.in: Applied another freebsd patch from Bill Middleton (flashdict@gmail.com).
259
260 2005-04-11  Zoltan Varga  <vargaz@freemail.hu>
261
262         * include/private/gcconfig.h configure.in os_dep.c dyn_load.c: 
263         Applied some freebsd patch from Bill Middleton <flashdict@gmail.com>.
264
265 2005-04-06  Zoltan Varga  <vargaz@freemail.hu>
266
267         * solaris_pthreads.c (GC_pthread_detach): Add locking.
268
269         * include/gc_pthread_redirects.h (pthread_detach): Override pthread_detach too.
270
271         * solaris_pthreads.c (GC_pthread_detach): Override pthread_detach too. Fixes
272         #74223.
273
274 2005-03-29  Zoltan Varga  <vargaz@freemail.hu>
275
276         * os_dep.c: Add ability to fall back to mmap-ing memory when sbrk
277         fails.
278
279         * include/private/gcconfig.h: Enable FALLBACK_TO_MMAP on amd64. Fixes
280         #73882.
281
282         * config.guess config.sub ltmain.sh: Update these files with more
283         up-to-date versions. Fixes #74071.
284
285 2005-03-09  Zoltan Varga  <vargaz@freemail.hu>
286
287         * solaris_threads.c (GC_thread_is_registered): Add this for solaris
288         too.
289
290         * pthread_support.c (GC_thread_is_registered): Move this outside of
291         the #ifdef THREAD_LOCAL_ALLOC.
292
293 2005-03-03  Zoltan Varga  <vargaz@freemail.hu>
294
295         * include/gc.h pthread_support.c win32_threads.: Add 
296         GC_thread_is_registered API function.
297
298 2005-02-17  Raja R Harinath  <rharinath@novell.com>
299
300         * acinclude.m4: Don't include distributed libtool.m4.
301         
302 Wed Feb 16 22:30:54 CET 2005 Paolo Molaro <lupus@ximian.com>
303
304         * alloc.c: tune the code to collect instead of expanding
305         the heap if there are many finalizers and we reclaimed some
306         memory from cleaning the finalization queue (should fix
307         bug #71001 and #70701).
308
309 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
310
311         * include/private/gc_priv.h: Bump the max root sets to 1024
312
313 Mon Jan 24 16:39:42 CET 2005 Paolo Molaro <lupus@ximian.com>
314
315         * alloc.c, include/gc.h: add event notification, mostly from 
316         a patch by Ben Maurer.
317
318 2005-01-23  Geoff Norton  <gnorton@customerdna.com>
319         
320         * os_dir.c: Change GC_task_self to be static everywhere on Darwin.
321         Allows gcc4.0 to compile.
322
323 Tue Jan 18 11:19:47 CET 2005 Paolo Molaro <lupus@ximian.com>
324
325         * pthread_stop_world.c: handle EINTR from sem_wait() call.
326
327 2004-08-20 Ben Maurer  <bmaurer@users.sourceforge.net>
328
329         * include/private/gc_priv.h: use the test glib does
330         for EXPECT.
331
332 2004-08-20  Zoltan Varga  <vargaz@freemail.hu>
333
334         * include/private/gc_priv.h (__GNUC_PREREQ): Fix typo spotted by Ben.
335
336         * include/gc_local_alloc.h pthread_support.c: Add 
337         GC_local_gcj_fast_malloc.
338
339         * include/private/gc_priv.h (EXPECT): Enable this on modern versions
340         of gcc.
341
342 2004-08-17 Ben Maurer  <bmaurer@users.sourceforge.net>
343
344         * pthread_support.c: make __thread variable static
345         
346         * include/gc_local_alloc.c: make the other headers get
347         included before we define our own variable. This fixes
348         up an ordering problem with GCJ and thread local alloc.
349         
350         The problem was that gc.h needed to include gc_local_alloc.h
351         before gc_gcj.h. However, when gc.h was included after
352         GC_LOCAL_ALLOC_H was #defined, it would not include
353         gc_local_alloc.h.
354
355 2004-08-16  Zoltan Varga  <vargaz@freemail.hu>
356
357         * Makefile.am: Create a static version of libmonogc for inclusion into
358         the mono executable.
359
360 2004-07-27  John Merryweather Cooper <john_m_cooper@yahoo.com>
361
362         * configure.in:  Fix to properly select flags for pthreads
363         on FreeBSD 4.x (aka -STABLE) and 5.x (aka -CURRENT).
364         
365 2004-07-01  Zoltan Varga  <vargaz@freemail.hu>
366
367         * include/install-sh doc/install-sh: New files.
368
369 2004-06-30  Zoltan Varga  <vargaz@freemail.hu>
370
371         * include/private/gc_priv.h (SMALL_OBJ): Add Hans' fix for crashes
372         seen on SPARC64.
373
374 Thu Jun 24 15:39:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
375
376         * alloc.c: use Hans' fix for bug #59557.
377
378 2004-06-18  Dick Porter  <dick@ximian.com>
379
380         * darwin_stop_world.c: Make the world actually stop.  This seems
381         to fix the finalizer thread signalling deadlock in 58706.
382
383 Sat Jun 5 19:38:20 CEST 2004 Paolo Molaro <lupus@ximian.com>
384
385         * alloc.c: temporary fix for bug #59557.
386
387 Tue May 25 13:41:08 EDT 2004 Paolo Molaro <lupus@ximian.com>
388
389         * darwin_stop_world.c: more thread died races fixes.
390
391 2004-05-21  Martin Baulig  <martin@ximian.com>
392
393         * pthread_stop_world.c: Merged the changes from linux_threads.c.
394
395         * linux_threads.c: Removed, this file no longer exists in the
396         latest upstream version.
397
398 2004-05-20  Martin Baulig  <martin@ximian.com>
399
400         * libgc.patch: Removed.  There's no need to have this in a
401         separate file, just use CVS.
402
403 2004-05-20  Jackson Harper  <jackson@ximian.com>
404
405         * Makefile.am: Remove tests from EXTRA_DIST.
406         
407 Wed May 19 18:57:30 CEST 2004 Paolo Molaro <lupus@ximian.com>
408
409         * darwin_stop_world.c: deal with threads that die before they can be
410         suspended (should solce the thread_info failed aborts).
411
412 Wed May 19 18:42:23 CEST 2004 Paolo Molaro <lupus@ximian.com>
413
414         * configure.in, Makefile.am: update correctly from the libgc sources:
415         this excludes linux_threads.c from the build: Martin will have to port
416         his changes to the new code, since linux_threads.c doesn't exist
417         anymore in the upstream sources.
418
419 2004-05-19  Raja R Harinath  <rharinath@novell.com>
420
421         * configure.in ($enable_embed_check): New internal option that
422         will be passed by mono's configure.
423         (THREADS): Use $with_libgc_threads, which is passed by mono's
424         configure.
425
426 2004-05-18  Martin Baulig  <martin@ximian.com>
427
428         Importing Boehm GC 6.3 alpha 6.
429
430 2004-03-24 Ben Maurer  <bmaurer@users.sourceforge.net>
431
432         * gcj_mlc.c: Do finalization.
433
434         This is a patch from Hans Boehm that fixes a bug where
435         GC_gcj_malloc never does finalization.
436
437         See:
438         http://www.hpl.hp.com/hosted/linux/mail-archives/gc/2004-March/000359.html
439         http://bugzilla.ximian.com/show_bug.cgi?id=55644
440
441         Fixes #55644.
442
443         I am checking this in at Zoltan's request.
444
445 2003-11-07  Zoltan Varga  <vargaz@freemail.hu>
446
447         * autogen.sh: Fix previous patch and silence noisy GNU which.   
448         
449         * autogen.sh: Applied patch from Peter Teichman (peter@ximian.com). 
450         Use 'glibtool' instead of 'libtool' on OSX. 
451
452 2003-10-01  Pedro Martínez Juliá  <yoro@wanadoo.es>
453
454         * Makefile.am: Change lib_LTLIBRARIES to noinst_LTLIBRARIES because
455         of libmonogc is included inside libmono and without this change it
456         breaks down and not include it.
457
458 2003-09-26  Zoltan Varga  <vargaz@freemail.hu>
459
460         * mips_sgi_mach_dep.S: Remove since it is a duplicate of .s and it
461         breaks cvs checkout under windows.
462
463 Wed Sep 17 17:29:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
464
465         * configure.in: disable ALL_INTERIOR_POINTERS: managed pointers
466         are not allowed in the heap, so this should be safe and it helps
467         reducing false positives.
468
469 2003-08-28  Dick Porter  <dick@ximian.com>
470
471         * pthread_support.c:
472         * aix_irix_threads.c:  Applied bug fix from alpha libgc
473
474 2003-08-26  Martin Baulig  <martin@ximian.com>
475
476         Imported Boehm GC 6.2.
477
478 2003-06-20  Martin Baulig  <martin@ximian.com>
479
480         * include/gc.h: Fixed compiler warnings.
481
482 2003-06-09  Martin Baulig  <martin@ximian.com>
483
484         * include/libgc-mono-debugger.h: New header file.  This is
485         installed as <mono/private/libgc-mono-debugger.h>, but it's a
486         private header files and may only be used by the Mono Debugger.
487
488         * Makefile.am: Build libmonogc.la and install it.  For some
489         reason, using a libtool convenience archive doesn't work here.
490
491 2003-06-08  Martin Baulig  <martin@ximian.com>
492
493         * libgc-mono.pc.in: Removed.
494
495         * Makefile.am: Don't install anything.
496
497         * configure.in: We're now embedded in mono and can't be built as a
498         stand-alone module any longer.
499
500 2003-05-17  Martin Baulig  <martin@ximian.com>
501
502         * libgc.patch, libgc.log: Added patch against the original version
503         and a ChangeLog entry.
504
505 2003-05-17  Martin Baulig  <martin@ximian.com>
506
507         * misc.c, os_dep.c, include/private/gc_priv.h: Back to the
508         original version.
509
510         * linux_threads.c: Use the `gc_thread_vtable' internally in this
511         file instead of calling it from the header files.
512
513 2003-05-16  Martin Baulig  <martin@ximian.com>
514
515         * include/gc.h (GCThreadFunctions): Removed the `pthread_*'
516         function since we don't need them here.
517
518         * include/gc_pthread_redirects.h: Put back the original version.
519
520 2003-04-08  Alp Toker <alp@atoker.com>
521
522         * configure.in: fix automake 1.6 compatibility without breaking
523         previous versions (AM_PROG_AS)
524
525 2003-03-31  Martin Baulig  <martin@ximian.com>
526
527         * include/gc.h (GCThreadFunctions): New type.
528         (gc_thread_vtable): New global variable.
529
530         * include/gc_pthread_redirects.h: Use the `gc_thread_vtable'
531         vtable for the redirects instead of calling the methods directly.
532         This allows us to override them at runtime.     
533
534 2003-03-31  Martin Baulig  <martin@ximian.com>
535
536         * include/Makefile.am: Install gc_pthread_redirects.h.
537
538         * include/gc.h: `#include <gc/gc_pthread_redirects.h>', not
539         `#include "gc_pthread_redirects.h"'.
540
541 2003-03-31  Martin Baulig  <martin@ximian.com>
542
543         * configure.in: Call the package `libgc-mono'.
544
545         * libgc-mono.pc.in: Added pkg-config files.
546
547 2003-03-31  Martin Baulig  <martin@ximian.com>
548
549         This is a modified version of Boehm GC 6.1.
550