From 669fd212c813f982757bc213bbc3285bd3234ae8 Mon Sep 17 00:00:00 2001 From: RUBET Louis Date: Tue, 23 May 2017 14:20:12 +0200 Subject: [PATCH] #63: refactored stack for heavy allocations --- src/stack.h | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/src/stack.h b/src/stack.h index 49c65d1..55d675d 100644 --- a/src/stack.h +++ b/src/stack.h @@ -62,48 +62,36 @@ public: object* allocated; bool data_is_reallocated = false; ptrdiff_t realloc_offset = 0; + char* old_base; // manage data memory allocation (add as much as memory it is needed) -cout<<"** BASE"<realloc size="<<_total_size<realloc offset="<_base="<<(void*)_base<_total_count_pointer="<<_total_count_pointer<_base_pointer["<