Java GC descriptor vs. tree_int_cst on 64-bit platforms

Fergus Henderson fjh@cs.mu.oz.au
Wed Mar 28 18:23:00 GMT 2001


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /