Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Thread safe internal buffer manager
[vpp.git]
/
src
/
vlib
/
unix
/
physmem.c
diff --git
a/src/vlib/unix/physmem.c
b/src/vlib/unix/physmem.c
index
933cc63
..
27a5bac
100644
(file)
--- a/
src/vlib/unix/physmem.c
+++ b/
src/vlib/unix/physmem.c
@@
-155,7
+155,8
@@
htlb_init (vlib_main_t * vm)
pm->heap = mheap_alloc_with_flags (pm->mem, pm->mem_size,
/* Don't want mheap mmap/munmap with IO memory. */
- MHEAP_FLAG_DISABLE_VM);
+ MHEAP_FLAG_DISABLE_VM |
+ MHEAP_FLAG_THREAD_SAFE);
cur = pointer_to_uword (pm->mem);
i = 0;