From 6caa8b56bff23e05a280dce328447646b4636f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Fri, 8 Feb 2019 15:35:54 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@740 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/containers/pideque.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src_main/containers/pideque.h b/src_main/containers/pideque.h index 917c2da1..dbf168cf 100755 --- a/src_main/containers/pideque.h +++ b/src_main/containers/pideque.h @@ -440,6 +440,7 @@ private: } } inline void alloc(size_t new_size, bool direction, ssize_t start_offset = 0) { // direction == true -> alloc forward + if(new_size == 65536) printf("(%p) alloc too much size %d->%d", this, (int)pid_size, (int)new_size); if (direction) { if (pid_start + new_size <= pid_rsize) { pid_size = new_size; @@ -452,7 +453,7 @@ private: //printf("(%p) realloc %d -> %d (%p)\n", this, pid_rsize, as, pid_data); PIINTROSPECTION_CONTAINER_ALLOC((as-pid_rsize)*sizeof(T)) T * p_d = (T*)(realloc((void*)(pid_data), as*sizeof(T))); - if(!p_d) printf("(%p) realloc (%d)%d -> %d (%p) %d\n", this, (int)pid_start, (int)pid_rsize, (int)as, pid_data, new_size); + if(!p_d) printf("(%p) realloc (%d)%d -> %d (%p) %d\n", this, (int)pid_start, (int)pid_rsize, (int)as, pid_data, (int)new_size); assert(p_d); pid_data = p_d; pid_rsize = as;