PERFORCE change 133099 for review
John Birrell
jb at FreeBSD.org
Fri Jan 11 21:10:17 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133099
Change 133099 by jb at jb_freebsd1 on 2008/01/12 05:09:19
Hack to get around asserts where libdtrace delves into private libc
voodoo on Solaris to check if a mutex is held.
Affected files ...
.. //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_subr.c#14 edit
Differences ...
==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libdtrace/common/dt_subr.c#14 (text) ====
@@ -848,14 +848,18 @@
extern int _rw_write_held(struct _rwlock *);
return (_rw_write_held((struct _rwlock *)lock));
}
+#endif
int
dt_mutex_held(pthread_mutex_t *lock)
{
+#if defined(sun)
extern int _mutex_held(struct _lwp_mutex *);
return (_mutex_held((struct _lwp_mutex *)lock));
+#else
+ return (1);
+#endif
}
-#endif
static int
dt_string2str(char *s, char *str, int nbytes)
More information about the p4-projects
mailing list