70 block_*& f = freelist_[size];
76 VALGRIND_MALLOCLIKE_BLOCK(f, size, 0,
false);
79 VALGRIND_MAKE_MEM_DEFINED(f,
sizeof(block_*));
89 if (free_start_ + size > free_end_)
91 const size_t requested = (size > 128 ? size : 128) * 8192 - 64;
92 chunk_* c =
reinterpret_cast<chunk_*
>(malloc(requested));
94 throw std::bad_alloc();
98 free_start_ = c->data_ + size;
99 free_end_ = c->data_ + requested;
102 void* res = free_start_;
104#ifdef USES_MEMCHECK_H
105 VALGRIND_MALLOCLIKE_BLOCK(res, size, 0,
false);