Use membar_consumer until we have membar_datadep_consumer.

This commit is contained in:
riastradh 2014-11-21 16:21:13 +00:00
parent 3e2082f994
commit 6687f07d58

View File

@ -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 @@ Find a frotz, as a reader:
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;