mirror of git://sourceware.org/git/glibc.git
Revert "Use _int_free_chunk in tcache_thread_shutdown"
This reverts commit 05ef6a4974.
This commit is contained in:
parent
f4e402b370
commit
3191dda282
|
|
@ -3288,7 +3288,6 @@ static void
|
||||||
tcache_thread_shutdown (void)
|
tcache_thread_shutdown (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
mchunkptr p;
|
|
||||||
tcache_perthread_struct *tcache_tmp = tcache;
|
tcache_perthread_struct *tcache_tmp = tcache;
|
||||||
|
|
||||||
tcache_shutting_down = true;
|
tcache_shutting_down = true;
|
||||||
|
|
@ -3310,14 +3309,11 @@ tcache_thread_shutdown (void)
|
||||||
malloc_printerr ("tcache_thread_shutdown(): "
|
malloc_printerr ("tcache_thread_shutdown(): "
|
||||||
"unaligned tcache chunk detected");
|
"unaligned tcache chunk detected");
|
||||||
tcache_tmp->entries[i] = REVEAL_PTR (e->next);
|
tcache_tmp->entries[i] = REVEAL_PTR (e->next);
|
||||||
e->key = 0;
|
__libc_free (e);
|
||||||
p = mem2chunk (e);
|
|
||||||
_int_free_chunk (arena_for_chunk (p), p, chunksize (p), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p = mem2chunk (tcache_tmp);
|
__libc_free (tcache_tmp);
|
||||||
_int_free_chunk (arena_for_chunk (p), p, chunksize (p), 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize tcache. In the rare case there isn't any memory available,
|
/* Initialize tcache. In the rare case there isn't any memory available,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue