+2009-05-22 Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidanski, diff71)
+ * tests/test.c: Change gcj vtable decriptor type from size_t to
+ GC_word.
+
2009-05-22 Hans Boehm <Hans.Boehm@hp.com>
* gcj_mlc.c: Add comment.
* tests/test.c: Change NTEST to NTHREADS. Fork 5 threads by default.
/* This assumes the default value of MARK_DESCR_OFFSET. */
struct fake_vtable {
void * dummy; /* class pointer in real gcj. */
- size_t descr;
+ GC_word descr;
};
struct fake_vtable gcj_class_struct1 = { 0, sizeof(struct SEXPR)
+ sizeof(struct fake_vtable *) };
/* length based descriptor. */
struct fake_vtable gcj_class_struct2 =
- { 0, ((size_t)3 << (CPP_WORDSZ - 3)) | GC_DS_BITMAP};
+ { 0, ((GC_word)3 << (CPP_WORDSZ - 3)) | GC_DS_BITMAP};
/* Bitmap based descriptor. */
struct GC_ms_entry * fake_gcj_mark_proc(word * addr,
# ifdef LINT
char *y = 0;
# else
- char *y = (char *)(size_t)fail_proc1;
+ char *y = (char *)(GC_word)fail_proc1;
# endif
CLOCK_TYPE typed_time;
# endif