Source-Changes-HG archive

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

[src/trunk]: src/lib/libpthread_dbg Test pt_blockgen against pt_unblockgen, n...



details:   https://anonhg.NetBSD.org/src/rev/ef692c90c5fd
branches:  trunk
changeset: 558265:ef692c90c5fd
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Tue Feb 03 20:26:16 2004 +0000

description:
Test pt_blockgen against pt_unblockgen, not against itself, to check
for blocked-in-kernel situations.

diffstat:

 lib/libpthread_dbg/pthread_dbg.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 65282da4013b -r ef692c90c5fd lib/libpthread_dbg/pthread_dbg.c
--- a/lib/libpthread_dbg/pthread_dbg.c  Tue Feb 03 20:04:56 2004 +0000
+++ b/lib/libpthread_dbg/pthread_dbg.c  Tue Feb 03 20:26:16 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_dbg.c,v 1.13 2004/02/02 20:36:19 nathanw Exp $ */
+/*     $NetBSD: pthread_dbg.c,v 1.14 2004/02/03 20:26:16 nathanw Exp $ */
 
 /*-
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_dbg.c,v 1.13 2004/02/02 20:36:19 nathanw Exp $");
+__RCSID("$NetBSD: pthread_dbg.c,v 1.14 2004/02/03 20:26:16 nathanw Exp $");
 
 #include <stddef.h>
 #include <stdlib.h>
@@ -236,7 +236,7 @@
            &tmp, sizeof(tmp))) != 0)
                return val;
        if ((val = READ(thread->proc, 
-           thread->addr + offsetof(struct __pthread_st, pt_blockgen), 
+           thread->addr + offsetof(struct __pthread_st, pt_unblockgen), 
            &tmp1, sizeof(tmp1))) != 0)
                return val;
        if (tmp != tmp1)
@@ -359,7 +359,7 @@
            &tmp, sizeof(tmp))) != 0)
                return val;
        if ((val = READ(thread->proc, 
-           thread->addr + offsetof(struct __pthread_st, pt_blockgen), 
+           thread->addr + offsetof(struct __pthread_st, pt_unblockgen), 
            &tmp1, sizeof(tmp1))) != 0)
                return val;
        if (tmp != tmp1)
@@ -443,7 +443,7 @@
            &tmp, sizeof(tmp))) != 0)
                return val;
        if ((val = READ(thread->proc, 
-           thread->addr + offsetof(struct __pthread_st, pt_blockgen), 
+           thread->addr + offsetof(struct __pthread_st, pt_unblockgen), 
            &tmp1, sizeof(tmp1))) != 0)
                return val;
        if (tmp != tmp1)



Home | Main Index | Thread Index | Old Index