Lines Matching defs:oldmem
5214 void* dlrealloc(void* oldmem, size_t bytes) {
5216 if (oldmem == 0) {
5224 dlfree(oldmem);
5229 mchunkptr oldp = mem2chunk(oldmem);
5235 USAGE_ERROR_ACTION(m, oldmem);
5250 memcpy(mem, oldmem, (oc < bytes)? oc : bytes);
5251 internal_free(m, oldmem);
5259 void* dlrealloc_in_place(void* oldmem, size_t bytes) {
5261 if (oldmem != 0) {
5267 mchunkptr oldp = mem2chunk(oldmem);
5273 USAGE_ERROR_ACTION(m, oldmem);
5282 mem = oldmem;
5773 void* mspace_realloc(mspace msp, void* oldmem, size_t bytes) {
5775 if (oldmem == 0) {
5783 mspace_free(msp, oldmem);
5788 mchunkptr oldp = mem2chunk(oldmem);
5794 USAGE_ERROR_ACTION(m, oldmem);
5809 memcpy(mem, oldmem, (oc < bytes)? oc : bytes);
5810 mspace_free(m, oldmem);
5818 void* mspace_realloc_in_place(mspace msp, void* oldmem, size_t bytes) {
5820 if (oldmem != 0) {
5826 mchunkptr oldp = mem2chunk(oldmem);
5833 USAGE_ERROR_ACTION(m, oldmem);
5842 mem = oldmem;