svn commit: r230267 - head/include

David Chisnall theraven at FreeBSD.org
Tue Jan 17 15:20:42 UTC 2012


Author: theraven
Date: Tue Jan 17 15:20:41 2012
New Revision: 230267
URL: http://svn.freebsd.org/changeset/base/230267

Log:
  Fix clang atomic to use for atomic_is_lock_free().
  
  Reviewed by:	ed
  Approved by:	dim (mentor)

Modified:
  head/include/stdatomic.h

Modified: head/include/stdatomic.h
==============================================================================
--- head/include/stdatomic.h	Tue Jan 17 13:52:04 2012	(r230266)
+++ head/include/stdatomic.h	Tue Jan 17 15:20:41 2012	(r230267)
@@ -118,7 +118,7 @@ enum memory_order {
 
 #if defined(__CLANG_ATOMICS)
 #define	atomic_is_lock_free(obj) \
-	__atomic_is_lock_free(obj)
+	__atomic_is_lock_free(sizeof(obj))
 #elif defined(__GNUC_ATOMICS)
 #define	atomic_is_lock_free(obj) \
 	__atomic_is_lock_free(sizeof((obj)->__val))


More information about the svn-src-all mailing list