Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/uvm/mmap Yet another check.
details: https://anonhg.NetBSD.org/src/rev/fda143b531eb
branches: trunk
changeset: 481161:fda143b531eb
user: mycroft <mycroft%NetBSD.org@localhost>
date: Mon Jan 24 00:39:17 2000 +0000
description:
Yet another check.
diffstat:
regress/sys/uvm/mmap/mmap.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r 237579de7cd2 -r fda143b531eb regress/sys/uvm/mmap/mmap.c
--- a/regress/sys/uvm/mmap/mmap.c Mon Jan 24 00:10:22 2000 +0000
+++ b/regress/sys/uvm/mmap/mmap.c Mon Jan 24 00:39:17 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mmap.c,v 1.9 2000/01/24 00:00:25 mycroft Exp $ */
+/* $NetBSD: mmap.c,v 1.10 2000/01/24 00:39:17 mycroft Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -148,7 +148,7 @@
* TEST MLOCKALL'ING AN ANONYMOUS MEMORY RANGE.
*/
- npgs = 8;
+ npgs = 128;
printf(">>> MAPPING %d PAGE ANONYMOUS REGION <<<\n", npgs);
@@ -217,6 +217,14 @@
printf(" UNLOCKING ALL\n");
+ printf(" CHECKING RESIDENCY\n");
+
+ if (check_residency(addr, npgs) != npgs ||
+ check_residency(addr2, npgs) != npgs) {
+ printf(" RESIDENCY CHECK FAILED!\n");
+ ecode = 1;
+ }
+
(void) munlockall();
printf(">>> MADV_FREE'ING SECOND ANONYMOUS REGION <<<\n");
@@ -348,7 +356,7 @@
printf(" ZEROING SEGMENT\n");
- memset(addr, 0, npgs * pgsize);
+ memset(addr, 0xff, npgs * pgsize);
printf(" CHECKING RESIDENCY\n");
Home |
Main Index |
Thread Index |
Old Index