projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
urcu-bp: don't copy old region upon mremap
[urcu.git]
/
urcu-bp.c
diff --git
a/urcu-bp.c
b/urcu-bp.c
index 203642cbede2b70c597875d3646f9a4e87027bf9..2973574436b7977e491df3a6634e5c99d2ea2a85 100644
(file)
--- a/
urcu-bp.c
+++ b/
urcu-bp.c
@@
-41,6
+41,10
@@
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
#include "urcu-bp.h"
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
#include "urcu-bp.h"
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
/* Sleep delay in us */
#define RCU_SLEEP_DELAY 1000
#define ARENA_INIT_ALLOC 16
/* Sleep delay in us */
#define RCU_SLEEP_DELAY 1000
#define ARENA_INIT_ALLOC 16
@@
-250,7
+254,6
@@
static void resize_arena(struct registry_arena *arena, size_t len)
if (new_arena == arena->p)
return;
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;
}
bzero(new_arena + arena->len, len - arena->len);
arena->p = new_arena;
}
This page took
0.023298 seconds
and
4
git commands to generate.