Browse Source

adapt S option: add C, rm F (not relevant with 0 cache and disables

chunk rnd), rm P: is default
OPENBSD_6_0
otto 8 years ago
parent
commit
4e61a98ad4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/lib/libc/stdlib/malloc.c

+ 3
- 3
src/lib/libc/stdlib/malloc.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: malloc.c,v 1.190 2016/06/28 06:40:11 tb Exp $ */
/* $OpenBSD: malloc.c,v 1.191 2016/06/30 09:00:48 otto Exp $ */
/* /*
* Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@ -617,12 +617,12 @@ omalloc_init(struct dir_info **dp)
for (; p != NULL && *p != '\0'; p++) { for (; p != NULL && *p != '\0'; p++) {
switch (*p) { switch (*p) {
case 'S': case 'S':
for (q = "FGJP"; *q != '\0'; q++)
for (q = "CGJ"; *q != '\0'; q++)
omalloc_parseopt(*q); omalloc_parseopt(*q);
mopts.malloc_cache = 0; mopts.malloc_cache = 0;
break; break;
case 's': case 's':
for (q = "fgj"; *q != '\0'; q++)
for (q = "cgj"; *q != '\0'; q++)
omalloc_parseopt(*q); omalloc_parseopt(*q);
mopts.malloc_cache = MALLOC_DEFAULT_CACHE; mopts.malloc_cache = MALLOC_DEFAULT_CACHE;
break; break;


Loading…
Cancel
Save