projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c26be0d
)
halve memory consumption of mempool flist, since we know we cannot have more than...
author
Lennart Poettering
<lennart@poettering.net>
Fri, 27 Jun 2008 18:13:26 +0000
(20:13 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 27 Jun 2008 18:13:26 +0000
(20:13 +0200)
src/pulsecore/memblock.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/memblock.c
b/src/pulsecore/memblock.c
index
85b9207
..
b43113d
100644
(file)
--- a/
src/pulsecore/memblock.c
+++ b/
src/pulsecore/memblock.c
@@
-693,7
+693,7
@@
pa_mempool* pa_mempool_new(pa_bool_t shared) {
PA_LLIST_HEAD_INIT(pa_memimport, p->imports);
PA_LLIST_HEAD_INIT(pa_memexport, p->exports);
- p->free_slots = pa_flist_new(p->n_blocks
*2
);
+ p->free_slots = pa_flist_new(p->n_blocks);
return p;
}
@@
-747,7
+747,7
@@
void pa_mempool_vacuum(pa_mempool *p) {
pa_assert(p);
- list = pa_flist_new(p->n_blocks
*2
);
+ list = pa_flist_new(p->n_blocks);
while ((slot = pa_flist_pop(p->free_slots)))
while (pa_flist_push(list, slot) < 0)