82 if(pool->data[i] == mem) { |
83 if(pool->data[i] == mem) { |
83 pool->data[i] = newm; |
84 pool->data[i] = newm; |
84 return newm + sizeof(ucx_destructor); |
85 return newm + sizeof(ucx_destructor); |
85 } |
86 } |
86 } |
87 } |
87 fprintf(stderr, "FATAL: %8x not in mpool %8x\n", ptr, pool); |
88 fprintf(stderr, "FATAL: 0x%08"PRIxPTR" not in mpool 0x%08"PRIxPTR"\n", |
|
89 (intptr_t)ptr, (intptr_t)pool); |
88 exit(1); |
90 exit(1); |
89 } else { |
91 } else { |
90 return newm + sizeof(ucx_destructor); |
92 return newm + sizeof(ucx_destructor); |
91 } |
93 } |
92 } |
94 } |