From b433a814549547e192301f6760721a5e3c782bc4 Mon Sep 17 00:00:00 2001 From: wez Date: Sat, 26 Jun 2010 16:02:39 +0000 Subject: Sync with the current sources from onnv-gate. The solaris sources use a non-portable create-thread-suspended flag when spawning the update thread; I've thrown together a pthreads portable equivalent. This has not had any real level of testing. These changes include a lock around the underlying brk() call; the lack of lock in earlier revisions of this repo may be the reason that UMEM_OPTIONS=backend=sbrk was flaky. git-svn-id: https://labs.omniti.com/portableumem/trunk@59 1665872d-e22b-0410-9e5d-a57ad4215e6d --- vmem_base.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vmem_base.h') diff --git a/vmem_base.h b/vmem_base.h index 06c1efc..dd9482f 100644 --- a/vmem_base.h +++ b/vmem_base.h @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License, (the "License"). + You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -60,6 +59,7 @@ extern void vmem_reap(void); /* vmem_populate()-safe reap */ extern size_t pagesize; extern size_t vmem_sbrk_pagesize; +extern size_t vmem_sbrk_minalloc; extern uint_t vmem_backend; #define VMEM_BACKEND_SBRK 0x0000001 -- cgit v1.2.3