vlib: align stack on OS page size 84/19284/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 1 May 2019 08:10:48 +0000 (10:10 +0200)
committerDave Barach <openvpp@barachs.net>
Thu, 2 May 2019 15:17:38 +0000 (15:17 +0000)
Change-Id: I6d7589c967c5801a6a21a213723e2a895269e105
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vlib/unix/main.c

index 24ae416..ed909b6 100755 (executable)
@@ -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
-    (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