|
From: <sv...@va...> - 2010-03-08 07:55:32
|
Author: bart
Date: 2010-03-08 07:55:23 +0000 (Mon, 08 Mar 2010)
New Revision: 11082
Log:
Marked the annotations ANNOTATE_MUTEX_IS_USED_AS_CONDVAR,
ANNOTATE_UNPUBLISH_MEMORY_RANGE and ANNOTATE_SWAP_MEMORY_RANGE as deprecated.
Modified:
trunk/drd/drd.h
Modified: trunk/drd/drd.h
===================================================================
--- trunk/drd/drd.h 2010-03-07 22:15:48 UTC (rev 11081)
+++ trunk/drd/drd.h 2010-03-08 07:55:23 UTC (rev 11082)
@@ -141,12 +141,7 @@
*/
#define ANNOTATE_CONDVAR_WAIT(cv) do { } while(0)
-/**
- * Tell DRD to consider the memory operations that happened before a mutex
- * unlock event and after the subsequent mutex lock event on the same mutex as
- * ordered. This is how DRD always behaves, so this macro has been defined
- * such that it has no effect.
- */
+/** Deprecated -- don't use this annotation. */
#define ANNOTATE_MUTEX_IS_USED_AS_CONDVAR(mtx) do { } while(0)
/**
@@ -156,11 +151,12 @@
*/
#define ANNOTATE_PUBLISH_MEMORY_RANGE(addr, size) do { } while(0)
-/**
- * Tell DRD to undo the effect of ANNOTATE_PUBLISH_MEMORY_RANGE().
- */
+/** Deprecated -- don't use this annotation. */
#define ANNOTATE_UNPUBLISH_MEMORY_RANGE(addr, size) do { } while(0)
+/** Deprecated -- don't use this annotation. */
+#define ANNOTATE_SWAP_MEMORY_RANGE(addr, size) do { } while(0)
+
/** Tell DRD that a reader-writer lock object has been initialized. */
#define ANNOTATE_RWLOCK_CREATE(rwlock) \
DRDCL_(annotate_rwlock_create)(rwlock)
|