diff options
author | Robert Mustacchi <rm@joyent.com> | 2012-05-29 18:11:49 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2012-05-29 18:11:49 -0700 |
commit | aaf809d7f3d58e48120fe39c7ed18f62d8fef56a (patch) | |
tree | 957d55065ffde93c2b16e856ea7295bc500b86a7 /usr/src/lib/libumem/common/vmem.c | |
parent | 8c8c34cdb777834022d7093fb814ac34a91e8c89 (diff) | |
download | illumos-gate-aaf809d7f3d58e48120fe39c7ed18f62d8fef56a.tar.gz |
2058 libumem should allow you to specify an allocator
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Eric Schrock <eric.schrock@delphix.com>
Diffstat (limited to 'usr/src/lib/libumem/common/vmem.c')
-rw-r--r-- | usr/src/lib/libumem/common/vmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/lib/libumem/common/vmem.c b/usr/src/lib/libumem/common/vmem.c index 040517a78f..c868e42977 100644 --- a/usr/src/lib/libumem/common/vmem.c +++ b/usr/src/lib/libumem/common/vmem.c @@ -22,6 +22,7 @@ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright 2012 Joyent, Inc. All rights reserved. */ /* @@ -1069,6 +1070,7 @@ vmem_alloc(vmem_t *vmp, size_t size, int vmflag) int hb; int flist = 0; uint32_t mtbf; + vmflag |= vmem_allocator; if (size - 1 < vmp->vm_qcache_max) { ASSERT(vmflag & VM_NOSLEEP); |