Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vlib: align stack on OS page size
[vpp.git]
/
src
/
vlib
/
unix
/
main.c
diff --git
a/src/vlib/unix/main.c
b/src/vlib/unix/main.c
index
24ae416
..
ed909b6
100755
(executable)
--- a/
src/vlib/unix/main.c
+++ b/
src/vlib/unix/main.c
@@
-632,7
+632,7
@@
vlib_thread_stack_init (uword thread_index)
{
vec_validate (vlib_thread_stacks, thread_index);
vlib_thread_stacks[thread_index] = clib_mem_alloc_aligned
{
vec_validate (vlib_thread_stacks, thread_index);
vlib_thread_stacks[thread_index] = clib_mem_alloc_aligned
- (VLIB_THREAD_STACK_SIZE,
VLIB_THREAD_STACK_SIZE
);
+ (VLIB_THREAD_STACK_SIZE,
clib_mem_get_page_size ()
);
/*
* Disallow writes to the bottom page of the stack, to
/*
* Disallow writes to the bottom page of the stack, to