Hi, In malloc.conf(5), why does the 'S' option turn on "CFGJ" yet the 's' option only turns off "cgj"?
My understanding is that they should be consistent, unless otherwise noted. I don't seem to see it noted anywhere. Attached patch adds matching 'f' to the 's'.
Index: lib/libc/stdlib/malloc.c =================================================================== RCS file: /cvs/src/lib/libc/stdlib/malloc.c,v retrieving revision 1.235 diff -u -p -r1.235 malloc.c --- lib/libc/stdlib/malloc.c 19 Oct 2017 16:34:33 -0000 1.235 +++ lib/libc/stdlib/malloc.c 2 Nov 2017 11:51:56 -0000 @@ -600,7 +600,7 @@ omalloc_init(void) mopts.malloc_cache = 0; break; case 's': - for (q = "cgj"; *q != '\0'; q++) + for (q = "cfgj"; *q != '\0'; q++) omalloc_parseopt(*q); mopts.malloc_cache = MALLOC_DEFAULT_CACHE; break;