head	1.3;
access;
symbols
	GC_5_1:1.1.1.2
	GC_5_0:1.1.1.2
	GC_5_0_ALPHA_7:1.1.1.2
	GC_5_0_ALPHA_6:1.1.1.2
	GC_5_0_ALPHA_4:1.1.1.2
	libgcj-2_95_1-release:1.1.1.1
	libgcj-2_95-release:1.1.1.1
	GC_5_0_ALPHA_1:1.2.0.2
	GC_4_14:1.1.1.2
	libgcj-2_95-branch:1.1.1.1.0.2
	libgcj-2_95-branchpoint:1.1.1.1
	GC_4_13_ALPHA_2:1.1.1.1
	BOEHM:1.1.1;
locks; strict;
comment	@# @;


1.3
date	99.11.01.23.15.51;	author tromey;	state Exp;
branches;
next	1.2;

1.2
date	99.06.30.12.42.53;	author tromey;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	99.04.07.14.56.06;	author tromey;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.04.07.14.56.06;	author tromey;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	99.06.30.13.05.05;	author tromey;	state Exp;
branches;
next	;

1.2.2.1
date	99.07.17.10.47.29;	author bryce;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Merged GC 5.0alpha4 with local changes, plus:
	* Makefile.in: Rebuilt.
	* Makefile.am (gctest_LDADD): Added THREADLIB.
	(TESTS): New macro.
	* configure: Rebuilt.
	* configure.in (INCLUDES): New subst.
@
text
@Performance of the incremental collector can be greatly enhanced with
-DNO_EXECUTE_PERMISSION.

The collector should run with all of the -32, -n32 and -64 ABIs.  Remember to
define the AS macro in the Makefile to be "as -64", or "as -n32".

If you use -DREDIRECT_MALLOC=GC_malloc with C++ code, your code should make
at least one explicit call to malloc instead of new to ensure that the proper
version of malloc is linked in.

Sproc threads are not supported in this version, though there may exist other
ports.

Pthreads support is provided.  This requires that:

1) You compile the collector with -DIRIX_THREADS specified in the Makefile.

2) You have the latest pthreads patches installed.  

(Though the collector makes only documented pthread calls,
it relies on signal/threads interactions working just right in ways
that are not required by the standard.  It is unlikely that this code
will run on other pthreads platforms.  But please tell me if it does.)

3) Every file that makes thread calls should define IRIX_THREADS and then
include gc.h.  Gc.h redefines some of the pthread primitives as macros which
also provide the collector with information it requires.

4) pthread_cond_wait and pthread_cond_timed_wait should be prepared for
premature wakeups.  (I believe the pthreads and realted standards require this
anyway.  Irix pthreads often terminate a wait if a signal arrives.
The garbage collector uses signals to stop threads.)

5) It is expensive to stop a thread waiting in IO at the time the request is
initiated.  Applications with many such threads may not exhibit acceptable
performance with the collector.  (Increasing the heap size may help.)

6) The collector should not be compiled with -DREDIRECT_MALLOC.  This
confuses some library calls made by the pthreads implementation, which
expect the standard malloc.

@


1.2
log
@Forced commit to prepare for future import
@
text
@d38 4
@


1.2.2.1
log
@1999-07-17  Bryce McKinlay  <bryce@@albatross.co.nz>

        * Imported Boehm GC 5.0a1
@
text
@a37 4
6) The collector should not be compiled with -DREDIRECT_MALLOC.  This
confuses some library calls made by the pthreads implementation, which
expect the standard malloc.

@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Imported Boehm GC 4.13a2
@
text
@@


1.1.1.2
log
@Imported Boehm GC 4.14
@
text
@a37 4
6) The collector should not be compiled with -DREDIRECT_MALLOC.  This
confuses some library calls made by the pthreads implementation, which
expect the standard malloc.

@

