Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 Use membar_consumer until we have membar_data...



details:   https://anonhg.NetBSD.org/src/rev/e14123503a75
branches:  trunk
changeset: 333906:e14123503a75
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Nov 21 16:21:13 2014 +0000

description:
Use membar_consumer until we have membar_datadep_consumer.

diffstat:

 share/man/man9/pserialize.9 |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 33a00e4f64fe -r e14123503a75 share/man/man9/pserialize.9
--- a/share/man/man9/pserialize.9       Fri Nov 21 15:44:42 2014 +0000
+++ b/share/man/man9/pserialize.9       Fri Nov 21 16:21:13 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pserialize.9,v 1.7 2014/11/21 15:44:42 riastradh Exp $
+.\"    $NetBSD: pserialize.9,v 1.8 2014/11/21 16:21:13 riastradh Exp $
 .\"
 .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -112,7 +112,8 @@
 
        s = pserialize_read_enter();
        for (f = frobbotzim; f != NULL; f = f->f_next) {
-.\"            membar_datadep_consumer();
+               /* Fetch f before we fetch anything f points to.  */
+               membar_consumer();
                if (f->f_... = key) {
                        *resultp = f->f_...;
                        error = 0;



Home | Main Index | Thread Index | Old Index