Date: Tue, 25 Jan 2011 19:44:42 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/vm vm_map.c vm_map.h Message-ID: <201101251945.p0PJj2o8040482@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2011-01-25 19:44:42 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/vm vm_map.c vm_map.h
Log:
SVN rev 217835 on 2011-01-25 19:44:42Z by jhb
MFC 214144:
- Make 'vm_refcnt' volatile so that compilers won't be tempted to treat
its value as a loop invariant. Currently this is a no-op because
'atomic_cmpset_int()' clobbers all memory on current architectures.
- Use atomic_fetchadd_int() instead of an atomic_cmpset_int() loop to drop
a reference in vmspace_free().
Revision Changes Path
1.419.2.12 +1 -5 src/sys/vm/vm_map.c
1.130.2.5 +1 -1 src/sys/vm/vm_map.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101251945.p0PJj2o8040482>
