Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2006 20:09:31 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 90994 for review
Message-ID:  <200602032009.k13K9VPm029385@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90994

Change 90994 by jhb@jhb_slimer on 2006/02/03 20:08:50

	Sabotage panic() into printf() in for rw_assert() and witness for now.

Affected files ...

.. //depot/projects/smpng/sys/kern/kern_rwlock.c#3 edit
.. //depot/projects/smpng/sys/kern/subr_witness.c#150 edit

Differences ...

==== //depot/projects/smpng/sys/kern/kern_rwlock.c#3 (text+ko) ====

@@ -493,6 +493,9 @@
 #undef _rw_assert
 #endif
 
+/* XXX: no commit! */
+#define	panic	printf
+
 /*
  * In the non-WITNESS case, rw_assert() can only detect that at least
  * *some* thread owns an rlock, but it cannot guarantee that *this*

==== //depot/projects/smpng/sys/kern/subr_witness.c#150 (text+ko) ====

@@ -798,6 +798,9 @@
 	return (0);
 }
 
+/* XXX: no commit! */
+#define	panic	printf
+
 void
 witness_checkorder(struct lock_object *lock, int flags, const char *file,
     int line)
@@ -1245,6 +1248,7 @@
 		}
 	panic("lock (%s) %s not locked @ %s:%d", class->lc_name, lock->lo_name,
 	    file, line);
+	return;
 found:
 
 	/* First, check for shared/exclusive mismatches. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602032009.k13K9VPm029385>