Menu

#3 Circularity in lists of mem_blocks

open
nobody
None
5
2006-04-05
2006-04-05
No

Under some situations that need to be investigated it
happens that the list of mem_blocks to be merged in the
mem_merge_maps() function presents circularity.

The problem has been temporarily solved with the
following hack:

for (i=0; i < j; i++) {
mem_block_t *x, *y;
for (x = m[i].next; x; ) {
saved += x->size;
y = x;
/* FIXME: HACK!!! */
if (x == x->next)
x->next = NULL;
x = x->next;
mem_insert(dst, y);
}
}

The problem is reproducible with the test_radio_2.conf
using the trace_avs_1 trace available in the regression
testing suite.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB