From 4a52c06932706e3878e6dff6b8c5418641b872e5 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 29 Jun 2011 16:31:16 -0400 Subject: [PATCH] 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 --- urcu-bp.c | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.34.1