Boehm-gc ChangeLog: 2004-03-11 Hans Boehm * alloc.c (GC_should_collect): Add GC_collect_at_heapsize. (GC_expand_hp_inner): Set expansion_slop more conservatively. Warn if heap too large. * configure, configure.in: Set LIBGCJ_GC_DEBUG with --enable-full-debug. * dbg_mlc.c (GC_print_backtrace): Add newlines in prints. (GC_generate_random_backtrace): Split off GC_generate_random_backtrace_no_gc. (GC_debug_header_size): New. (GC_debug_register_finalizer, GC_debug_register_finalizer_no_order, GC_debug_register_finalizer_ignore_self): Ignore requests for pointers outside heap. (GC_register_describe_type_fn, GC_print_type): New. (GC_print_obj): Call GC_print_type. * finalize.c (GC_notify_or_invoke_finalizers): Check GC_backtraces. * misc.c (GC_backtraces): New. (GC_init_inner): Set GC_backtraces from GC_BACKTRACES in environment. (GC_new_free_list_inner, GC_new_free_list): New. (GC_new_kind_inner, GC_new_kind): New. (GC_new_proc_inner, GC_new_proc): New. * gcj_mlc.c (GC_init_gcj_malloc): Use GC_new_kind_inner() and friends. (GC_debug_gcj_malloc): Correct comment. * doc/README.environment: Add GC_BACKTRACES. * include/gc_mark.h: (GC_debug_header_size, GC_USR_PTR_FROM_BASE): New. (GC_new_free_list_inner, GC_new_free_list): New. (GC_new_kind_inner, GC_new_kind): New. (GC_new_proc_inner, GC_new_proc): New. (GC_generic_malloc): Add declaration. (GC_describe_type_fn, GC_register_describe_type_fn): New. * include/javaxfc.h: Delete everything except GC_finalize_all. * include/private/dbg_mlc.h (USR_PTR_FROM_BASE): Delete. * include/private/gc_priv.h (GC_generic_malloc): comment out declaration. (GC_backtraces): Add declaration. * tests/test.c: Don't include private/dbg_mlc.h. (USR_PTR_FROM_BASE): Rename to GC_USR_PTR_FROM_BASE. * include/gc_gcj.h: Check for include ordering with local_alloc.h. (GC_gcj_kind, GC_gcj_debug_kind): Declare. Libjava ChangeLog: 2004-03-11 Hans Boehm * boehm.cc: Include gc_mark.h, javaxfc.h, but no GC private files. (GC_DEBUG): Set if LIBGCJ_GC_DEBUG is set. (GC_finalize_all, GC_debug_generic_malloc): Don't declare. (disable_gc_mutex): Delete along with all references. (_Jv_MarkObj, _Jv_MarkArray): Use public types, adjust for debug header size. (_Jv_AllocObj, _Jv_allocPtrFreeObj): Define out of line for debug case. (_Jv_AllocArray): Declare min_heap_addr only if needed. (gcj_describe_type_fn): New. (_Jv_InitGC): Use GC_new_free_list, GC_new_proc, and GC_new_kind. Register gcj_describe_type_fn. * include/boehm-gc.h: (_Jv_AllocObj, _Jv_allocPtrFreeObj): Don't define, but declare, for debug case. * java/lang/natObject.cc: (GC_DEBUG): Define if LIBGCJ_GC_DEBUG is set. cvs diff -u boehm-gc/alloc.c boehm-gc/configure.in boehm-gc/configure boehm-gc/dbg_mlc.c boehm-gc/finalize.c boehm-gc/misc.c boehm-gc/gcj_mlc.c boehm-gc/doc/README.environment boehm-gc/include/gc_mark.h boehm-gc/include/javaxfc.h boehm-gc/include/private/dbg_mlc.h boehm-gc/include/private/gc_priv.h boehm-gc/tests/test.c boehm-gc/include/gc_gcj.h libjava/boehm.cc libjava/include/boehm-gc.h libjava/java/lang/natObject.cc