pike.git/
src/
block_allocator.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:25:15 by Arne Goedeke <el@laramies.com>
cf90a19c714beb436fbe81fc813f997174400fa5 (
5
lines) (+
5
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
block_allocator: do not execute empty loop
508:
} static INLINE void ba_list_defined(struct block_allocator * a, struct ba_block_header * b) {
+
#ifdef USE_VALGRIND
while (b && b != BA_ONE) { PIKE_MEMPOOL_ALLOC(a, b, a->l.block_size); PIKE_MEM_RW_RANGE(b, sizeof(struct ba_block_header)); b = b->next; }
-
+
#endif
} static INLINE void ba_list_undefined(struct block_allocator * a, struct ba_block_header * b) {
-
+
#ifdef USE_VALGRIND
while (b && b != BA_ONE) { struct ba_block_header * next = b->next; PIKE_MEMPOOL_FREE(a, b, a->l.block_size); b = next; }
-
+
#endif
} /*