Date: Fri, 31 Dec 2004 15:08:25 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 67992 for review Message-ID: <200412311508.iBVF8P0L009725@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67992 Change 67992 by davidxu@davidxu_tiger on 2004/12/31 15:07:44 use THREAD_LIST_LOCK, THREAD_LIST_UNLOCK macro. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_stack.c#3 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_stack.c#3 (text+ko) ==== @@ -152,7 +152,7 @@ * Use the garbage collector lock for synchronization of the * spare stack lists and allocations from usrstack. */ - THR_LOCK_ACQUIRE(curthread, &_thread_list_lock); + THREAD_LIST_LOCK(curthread); /* * If the stack and guard sizes are default, try to allocate a stack * from the default-size stack cache: @@ -182,7 +182,7 @@ } if (attr->stackaddr_attr != NULL) { /* A cached stack was found. Release the lock. */ - THR_LOCK_RELEASE(curthread, &_thread_list_lock); + THREAD_LIST_UNLOCK(curthread); } else { /* Allocate a stack from usrstack. */ @@ -203,7 +203,7 @@ last_stack -= (stacksize + guardsize); /* Release the lock before mmap'ing it. */ - THR_LOCK_RELEASE(curthread, &_thread_list_lock); + THREAD_LIST_UNLOCK(curthread); /* Map the stack and guard page together, and split guard page from allocated space: */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412311508.iBVF8P0L009725>