Fix some comments and whitespace.

This commit is contained in:
Jason Evans 2010-01-31 03:57:29 -08:00
parent 990d10cefb
commit 13668262d1
4 changed files with 5 additions and 3 deletions

View File

@ -185,6 +185,7 @@ struct arena_chunk_s {
/* Number of dirty pages. */ /* Number of dirty pages. */
size_t ndirty; size_t ndirty;
/* Map of pages within chunk that keeps track of free/large/small. */ /* Map of pages within chunk that keeps track of free/large/small. */
arena_chunk_map_t map[1]; /* Dynamically sized. */ arena_chunk_map_t map[1]; /* Dynamically sized. */
}; };

View File

@ -1610,6 +1610,7 @@ arena_stats_merge(arena_t *arena, size_t *nactive, size_t *ndirty,
void void
arena_dalloc_large(arena_t *arena, arena_chunk_t *chunk, void *ptr) arena_dalloc_large(arena_t *arena, arena_chunk_t *chunk, void *ptr)
{ {
/* Large allocation. */ /* Large allocation. */
malloc_mutex_lock(&arena->lock); malloc_mutex_lock(&arena->lock);

View File

@ -506,7 +506,7 @@ ctl_refresh(void)
#endif #endif
/* /*
* Clear sum stats, since the will be merged into by * Clear sum stats, since they will be merged into by
* ctl_arena_refresh(). * ctl_arena_refresh().
*/ */
ctl_arena_clear(&ctl_stats.arenas[narenas]); ctl_arena_clear(&ctl_stats.arenas[narenas]);
@ -1231,7 +1231,7 @@ swap_prezeroed_ctl(const size_t *mib, size_t miblen, void *oldp,
} else { } else {
/* /*
* swap_prezeroed isn't actually used by the swap code until it * swap_prezeroed isn't actually used by the swap code until it
* is set during a successfull chunk_swap_enabled() call. We * is set during a successful chunk_swap_enabled() call. We
* use it here to store the value that we'll pass to * use it here to store the value that we'll pass to
* chunk_swap_enable() in a swap.fds mallctl(). This is not * chunk_swap_enable() in a swap.fds mallctl(). This is not
* very clean, but the obvious alternatives are even worse. * very clean, but the obvious alternatives are even worse.

View File

@ -607,7 +607,7 @@ stats_print(void (*write4)(void *, const char *, const char *, const char *,
if (ninitialized > 1) { if (ninitialized > 1) {
/* Print merged arena stats. */ /* Print merged arena stats. */
malloc_cprintf(write4, w4opaque, malloc_cprintf(write4, w4opaque,
"\nMerge arenas stats:\n"); "\nMerged arenas stats:\n");
stats_arena_print(write4, w4opaque, stats_arena_print(write4, w4opaque,
narenas); narenas);
} }