urcu-bp: don't copy old region upon mremap
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 29 Jun 2011 20:31:16 +0000 (16:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 29 Jun 2011 20:31:16 +0000 (16:31 -0400)
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 <mathieu.desnoyers@efficios.com>
urcu-bp.c

index 543a9f3ae01775b18008e4e2140513116bd2e781..2973574436b7977e491df3a6634e5c99d2ea2a85 100644 (file)
--- 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;
 }
This page took 0.025637 seconds and 4 git commands to generate.