This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Java GC descriptor vs. tree_int_cst on 64-bit platforms
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: Java GC descriptor vs. tree_int_cst on 64-bit platforms
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Thu, 29 Mar 2001 12:22:58 +1000
- Cc: "'aph at cambridge dot redhat dot com'" <aph at cambridge dot redhat dot com>, "'java at gcc dot gnu dot org'" <java at gcc dot gnu dot org>, "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- References: <140D21516EC2D3119EE7009027876644049B5D07@hplex1.hpl.hp.com>
On 28-Mar-2001, Boehm, Hans <hans_boehm@hp.com> wrote:
> +++ gc_priv.h 2001/03/15 22:38:53
> @@ -890,6 +890,18 @@
> # define SMALL_OBJ(bytes) ((bytes) <= WORDS_TO_BYTES(MAXOBJSZ))
> # define ADD_SLOP(bytes) (bytes)
> # endif
> +# ifndef MIN_WORDS
> + /* MIN_WORDS is the size of the smallest allocated object. */
> + /* 1 and 2 are the only valid values. */
> + /* 2 must be used if: */
> + /* - GC_gcj_malloc can be used for objects of size */
> + /* smaller than 2 words, or */
> +# if defined(GC_GCJ_SUPPORT)
> +# define MIN_WORDS 2 /* Smallest allocated object. */
> +# else
> +# define MIN_WORDS 1
> +# endif
> +# endif
The comment there is incomplete (ends in ", or") and seems contradictory
(*MIN*_WORDS is 2 if GC_gcj_malloc can be used for objects of size *smaller*
than 2 words?).
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.