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