Date: Sun, 7 May 2006 23:13:24 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96806 for review Message-ID: <200605072313.k47NDOe4083577@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96806 Change 96806 by jb@jb_freebsd2 on 2006/05/07 23:12:24 Satisfy gcc's taste for things consistent. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_dynvar.c#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_dynvar.c#3 (text+ko) ==== @@ -182,8 +182,6 @@ */ bucket = hashval % dstate->dtds_hashsize; -printf("%s:%s(%d): DOODAD\n",__FUNCTION__,__FILE__,__LINE__); -#ifdef DOODAD if (op == DTRACE_DYNVAR_DEALLOC) { volatile uintptr_t *lockp = &hash[bucket].dtdh_lock; @@ -191,14 +189,13 @@ while ((lock = *lockp) & 1) continue; - if (dtrace_casptr((void *)lockp, - (void *)lock, (void *)(lock + 1)) == (void *)lock) + if (dtrace_casptr((volatile void *)lockp, + (volatile void *)lock, (volatile void *)(lock + 1)) == (void *)lock) break; } dtrace_membar_producer(); } -#endif top: prev = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605072313.k47NDOe4083577>