Annotation of OpenXM_contrib2/asir2000/gc6-risa.diff, Revision 1.1
1.1 ! ohara 1: # $OpenXM$
! 2: # Patches depend on Risa/Asir
! 3: diff -urN gc6.8/configure gc6.8-risa/configure
! 4: --- gc6.8/configure 2006-03-24 09:42:55.000000000 +0900
! 5: +++ gc6.8-risa/configure 2008-03-19 13:31:36.000000000 +0900
! 6: @@ -9628,7 +9628,7 @@
! 7: _ACEOF
! 8:
! 9: cat >>confdefs.h <<\_ACEOF
! 10: -#define NO_SIGNALS 1
! 11: +##define NO_SIGNALS 1
! 12: _ACEOF
! 13:
! 14: cat >>confdefs.h <<\_ACEOF
! 15: diff -urN gc6.8/alloc.c gc6.8-risa/alloc.c
! 16: --- gc6.8/alloc.c 2005-10-29 09:03:26.000000000 +0900
! 17: +++ gc6.8-risa/alloc.c 2008-03-19 13:50:20.000000000 +0900
! 18: @@ -110,6 +110,7 @@
! 19: GC_bool GC_dont_expand = 0;
! 20:
! 21: word GC_free_space_divisor = 3;
! 22: +word GC_free_space_numerator = 1;
! 23:
! 24: extern GC_bool GC_collection_in_progress();
! 25: /* Collection is in progress, or was abandoned. */
! 26: @@ -174,9 +175,9 @@
! 27: /* use a bit more of large empty heap */
! 28: + total_root_size);
! 29: if (TRUE_INCREMENTAL) {
! 30: - return scan_size / (2 * GC_free_space_divisor);
! 31: + return scan_size * GC_free_space_numerator / (2 * GC_free_space_divisor);
! 32: } else {
! 33: - return scan_size / GC_free_space_divisor;
! 34: + return scan_size * GC_free_space_numerator / GC_free_space_divisor;
! 35: }
! 36: }
! 37:
! 38: @@ -492,6 +493,7 @@
! 39: # if defined(REGISTER_LIBRARIES_EARLY)
! 40: GC_cond_register_dynamic_libraries();
! 41: # endif
! 42: + GC_timerstart();
! 43: STOP_WORLD();
! 44: IF_THREADS(GC_world_stopped = TRUE);
! 45: # ifdef CONDPRINT
! 46: @@ -526,6 +528,7 @@
! 47: GC_deficit = i; /* Give the mutator a chance. */
! 48: IF_THREADS(GC_world_stopped = FALSE);
! 49: START_WORLD();
! 50: + GC_timerstop();
! 51: return(FALSE);
! 52: }
! 53: if (GC_mark_some((ptr_t)(&dummy))) break;
! 54: @@ -560,6 +563,7 @@
! 55:
! 56: IF_THREADS(GC_world_stopped = FALSE);
! 57: START_WORLD();
! 58: + GC_timerstop();
! 59: # ifdef PRINTTIMES
! 60: GET_TIME(current_time);
! 61: GC_printf1("World-stopped marking took %lu msecs\n",
! 62: @@ -640,6 +644,7 @@
! 63: GET_TIME(start_time);
! 64: finalize_time = start_time;
! 65: # endif
! 66: + GC_timerstart();
! 67:
! 68: # ifdef GATHERSTATS
! 69: GC_mem_found = 0;
! 70: @@ -757,6 +762,7 @@
! 71: MS_TIME_DIFF(finalize_time,start_time),
! 72: MS_TIME_DIFF(done_time,finalize_time));
! 73: # endif
! 74: + GC_timerstop();
! 75: }
! 76:
! 77: /* Externally callable routine to invoke full, stop-world collection */
! 78: @@ -971,6 +977,9 @@
! 79: if (GC_collect_at_heapsize < GC_heapsize /* wrapped */)
! 80: GC_collect_at_heapsize = (word)(-1);
! 81: # endif
! 82: +#if defined(VISUAL_LIB)
! 83: + SendHeapSize();
! 84: +#endif
! 85: return(TRUE);
! 86: }
! 87:
! 88: @@ -1067,6 +1076,22 @@
! 89:
! 90: if (sz == 0) return(0);
! 91:
! 92: +#if defined(VISUAL)
! 93: + {
! 94: +#include <signal.h>
! 95: + extern int recv_intr;
! 96: + if ( recv_intr ) {
! 97: + if ( recv_intr == 1 ) {
! 98: + recv_intr = 0;
! 99: + int_handler();
! 100: + } else {
! 101: + recv_intr = 0;
! 102: + ox_usr1_handler(0);
! 103: + }
! 104: + }
! 105: + }
! 106: +#endif
! 107: +
! 108: while (*flh == 0) {
! 109: ENTER_GC();
! 110: /* Do our share of marking work */
! 111: diff -urN gc6.8/reclaim.c gc6.8-risa/reclaim.c
! 112: --- gc6.8/reclaim.c 2004-11-23 02:58:18.000000000 +0900
! 113: +++ gc6.8-risa/reclaim.c 2008-03-19 13:50:56.000000000 +0900
! 114: @@ -1030,6 +1030,7 @@
! 115:
! 116: GET_TIME(start_time);
! 117: # endif
! 118: + GC_timerstart();
! 119:
! 120: for (kind = 0; kind < GC_n_kinds; kind++) {
! 121: ok = &(GC_obj_kinds[kind]);
! 122: @@ -1052,6 +1053,7 @@
! 123: }
! 124: }
! 125: }
! 126: + GC_timerstop();
! 127: # ifdef PRINTTIMES
! 128: GET_TIME(done_time);
! 129: GC_printf1("Disposing of reclaim lists took %lu msecs\n",
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>