pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:6163:    MAKE_CONST_STRING (pike_cycle_depth_str.u.string, "pike_cycle_depth");    }       assert (mc_work_queue == NULL);    mc_work_queue = malloc (MC_WQ_START_SIZE * sizeof (mc_work_queue[0]));    if (!mc_work_queue) {    exit_mc_marker_hash();    SIMPLE_OUT_OF_MEMORY_ERROR ("Pike.count_memory",    MC_WQ_START_SIZE * sizeof (mc_work_queue[0]));    } +  /* NB: 1-based indexing in mc_work_queue. */    mc_work_queue--;    mc_wq_size = MC_WQ_START_SIZE;    mc_wq_used = 1;    mc_lookahead = -1;       assert (!mc_pass);    assert (visit_enter == NULL);    assert (visit_ref == NULL);    assert (visit_leave == NULL);   
pike.git/src/gc.c:6201:       mc_ref_from->flags |= MC_FLAG_INT_VISITED;    mc_ref_from->visit_fn(mc_ref_from->thing, VISIT_COMPLEX_ONLY, NULL);    }      #if defined (PIKE_DEBUG) || defined (MEMORY_COUNT_DEBUG)    mc_ref_from = (void *) (ptrdiff_t) -1;   #endif       exit_mc_marker_hash(); -  free (mc_work_queue + 1); +  /* NB: 1-based indexing in mc_work_queue. */ +  mc_work_queue++; +  free(mc_work_queue);    mc_work_queue = NULL;       visit_enter = NULL;    visit_ref = NULL;    visit_leave = NULL;      #ifdef PIKE_DEBUG    if (s != Pike_sp-1) {    Pike_fatal("Stack error in identify_loops.\n");    }