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