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