mirror of https://github.com/yandex/odyssey.git
machinarium: set proper size_guard size in context_stack
This commit is contained in:
parent
0157a02ad9
commit
b08b0359cd
|
@ -23,6 +23,7 @@ int mm_contextstack_create(mm_contextstack_t *stack, size_t size, size_t size_gu
|
||||||
base += size_guard;
|
base += size_guard;
|
||||||
stack->pointer = base;
|
stack->pointer = base;
|
||||||
stack->size = size;
|
stack->size = size;
|
||||||
|
stack->size_guard = size_guard;
|
||||||
#ifdef HAVE_VALGRIND
|
#ifdef HAVE_VALGRIND
|
||||||
stack->valgrind_stack =
|
stack->valgrind_stack =
|
||||||
VALGRIND_STACK_REGISTER(stack->pointer, stack->pointer + stack->size);
|
VALGRIND_STACK_REGISTER(stack->pointer, stack->pointer + stack->size);
|
||||||
|
|
Loading…
Reference in New Issue