#else
#define MALLINFO mallinfo
#endif
- /*
- * When a brk() fails due to fragmented address space (which sometimes
- * happens when we try to grab 8M or so), glibc will make a new
- * arena. In this arena, the rules for using “direct” mmap are relaxed,
- * circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can,
- * however, detect when this happens with mallinfo() and try to co-opt
- * malloc into using MMAP as a MORECORE substitute instead of returning
- * MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the
- * memory on free(), this is good enough for our purposes.
- */
+ /*
+ * When a brk() fails due to fragmented address space (which sometimes
+ * happens when we try to grab 8M or so), glibc will make a new
+ * arena. In this arena, the rules for using "direct" mmap are relaxed,
+ * circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can,
+ * however, detect when this happens with mallinfo() and try to co-opt
+ * malloc into using MMAP as a MORECORE substitute instead of returning
+ * MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the
+ * memory on free(), this is good enough for our purposes.
+ */
while (missing > 0) {
struct MALLINFO inf = MALLINFO();
hblks = inf.hblks;
oo = &_oo_lines[_oo_line_count++];
if (!(oo->name = strdup(name))) {
- log_error("Failer to duplicate name %s.", name);
+ log_error("Failed to duplicate name %s.", name);
return; /* FIXME: return code */
}
start = strchr(line, ':') + 2;
if (!(oo->line = strdup(start))) {
- log_error("Failer to duplicate line %s.", start);
+ log_error("Filler to duplicate line %s.", start);
return;
}
}