From: Mathieu Desnoyers Date: Wed, 29 Jun 2011 20:31:16 +0000 (-0400) Subject: urcu-bp: don't copy old region upon mremap X-Git-Tag: v0.6.4~7 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=4a52c06932706e3878e6dff6b8c5418641b872e5 urcu-bp: don't copy old region upon mremap mremap keeps the same virtual pages for the old/new mappings. So explicitly copying from the old mapping is not needed, and probably buggy, since the old mapping might have been unmapped. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-bp.c b/urcu-bp.c index 543a9f3..2973574 100644 --- a/urcu-bp.c +++ b/urcu-bp.c @@ -254,7 +254,6 @@ static void resize_arena(struct registry_arena *arena, size_t len) if (new_arena == arena->p) return; - memcpy(new_arena, arena->p, arena->len); bzero(new_arena + arena->len, len - arena->len); arena->p = new_arena; }