Lines Matching refs:oldmem
3834 static void* internal_realloc(mstate m, void* oldmem, size_t bytes) {
3840 mchunkptr oldp = mem2chunk(oldmem);
3876 USAGE_ERROR_ACTION(m, oldmem);
3894 memcpy(newmem, oldmem, (oc < bytes)? oc : bytes);
3895 internal_free(m, oldmem);
4370 void* dlrealloc(void* oldmem, size_t bytes) {
4371 if (oldmem == 0)
4375 dlfree(oldmem);
4383 mstate m = get_mstate_for(mem2chunk(oldmem));
4385 USAGE_ERROR_ACTION(m, oldmem);
4389 return internal_realloc(m, oldmem, bytes);
4773 void* mspace_realloc(mspace msp, void* oldmem, size_t bytes) {
4774 if (oldmem == 0)
4778 mspace_free(msp, oldmem);
4784 mchunkptr p = mem2chunk(oldmem);
4793 return internal_realloc(ms, oldmem, bytes);