mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
disable valgrind macro usage for now since valgrind generates a lot of spurious warnings as it seems
This commit is contained in:
parent
6d52a41307
commit
f728e9cce0
1 changed files with 11 additions and 7 deletions
|
|
@ -261,9 +261,11 @@ static struct mempool_slot* mempool_allocate_slot(pa_mempool *p) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
/* #ifdef HAVE_VALGRIND_MEMCHECK_H */
|
||||||
VALGRIND_MALLOCLIKE_BLOCK(slot, p->block_size, 0, 0);
|
/* if (PA_UNLIKELY(pa_in_valgrind())) { */
|
||||||
#endif
|
/* VALGRIND_MALLOCLIKE_BLOCK(slot, p->block_size, 0, 0); */
|
||||||
|
/* } */
|
||||||
|
/* #endif */
|
||||||
|
|
||||||
return slot;
|
return slot;
|
||||||
}
|
}
|
||||||
|
|
@ -534,16 +536,18 @@ static void memblock_free(pa_memblock *b) {
|
||||||
|
|
||||||
call_free = b->type == PA_MEMBLOCK_POOL_EXTERNAL;
|
call_free = b->type == PA_MEMBLOCK_POOL_EXTERNAL;
|
||||||
|
|
||||||
|
/* #ifdef HAVE_VALGRIND_MEMCHECK_H */
|
||||||
|
/* if (PA_UNLIKELY(pa_in_valgrind())) { */
|
||||||
|
/* VALGRIND_FREELIKE_BLOCK(slot, b->pool->block_size); */
|
||||||
|
/* } */
|
||||||
|
/* #endif */
|
||||||
|
|
||||||
/* The free list dimensions should easily allow all slots
|
/* The free list dimensions should easily allow all slots
|
||||||
* to fit in, hence try harder if pushing this slot into
|
* to fit in, hence try harder if pushing this slot into
|
||||||
* the free list fails */
|
* the free list fails */
|
||||||
while (pa_flist_push(b->pool->free_slots, slot) < 0)
|
while (pa_flist_push(b->pool->free_slots, slot) < 0)
|
||||||
;
|
;
|
||||||
|
|
||||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
|
||||||
VALGRIND_FREELIKE_BLOCK(slot, b->pool->block_size);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (call_free)
|
if (call_free)
|
||||||
if (pa_flist_push(PA_STATIC_FLIST_GET(unused_memblocks), b) < 0)
|
if (pa_flist_push(PA_STATIC_FLIST_GET(unused_memblocks), b) < 0)
|
||||||
pa_xfree(b);
|
pa_xfree(b);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue