This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Java GC descriptor vs. tree_int_cst on 64-bit platforms


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]