PERFORCE change 90994 for review
John Baldwin
jhb at FreeBSD.org
Fri Feb 3 12:09:32 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=90994
Change 90994 by jhb at 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. */
More information about the p4-projects
mailing list