Module Name:    src
Committed By:   riastradh
Date:           Tue Jan 26 01:09:56 UTC 2016

Modified Files:
        src/share/man/man9: pserialize.9

Log Message:
Note limited extent for reference to the pserialized object.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man9/pserialize.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/pserialize.9
diff -u src/share/man/man9/pserialize.9:1.11 src/share/man/man9/pserialize.9:1.12
--- src/share/man/man9/pserialize.9:1.11	Tue Jan 26 01:05:17 2016
+++ src/share/man/man9/pserialize.9	Tue Jan 26 01:09:56 2016
@@ -1,4 +1,4 @@
-.\"	$NetBSD: pserialize.9,v 1.11 2016/01/26 01:05:17 riastradh Exp $
+.\"	$NetBSD: pserialize.9,v 1.12 2016/01/26 01:09:56 riastradh Exp $
 .\"
 .\" Copyright (c) 2011 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -117,6 +117,13 @@ Find a frotz, as a reader:
 		/* Fetch f before we fetch anything f points to.  */
 		membar_datadep_consumer();
 		if (f->f_... == key) {
+			/*
+			 * Grab whatever part of the frotz we need.
+			 * Note that we can't use the frotz after
+			 * pserialize_read_exit, without a stronger
+			 * kind of reference, say a reference count
+			 * managed by atomic_ops(3).
+			 */
 			*resultp = f->f_...;
 			error = 0;
 			break;

Reply via email to