69 block_*& f = freelist_[size];
75 VALGRIND_MALLOCLIKE_BLOCK(f, size, 0,
false);
78 VALGRIND_MAKE_MEM_DEFINED(f,
sizeof(block_*));
88 if (free_start_ + size > free_end_)
90 const size_t requested = (size > 128 ? size : 128) * 8192 - 64;
91 chunk_* c =
reinterpret_cast<chunk_*
>(malloc(requested));
93 throw std::bad_alloc();
97 free_start_ = c->data_ + size;
98 free_end_ = c->data_ + requested;
101 void* res = free_start_;
103#ifdef USES_MEMCHECK_H
104 VALGRIND_MALLOCLIKE_BLOCK(res, size, 0,
false);