[asterisk-commits] dlee: branch dlee/performance r399977 - /team/dlee/performance/main/astobj2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 27 12:46:06 CDT 2013


Author: dlee
Date: Fri Sep 27 12:46:04 2013
New Revision: 399977

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399977
Log:
At Richard's insistence, removing the minimum size from ao2_alloc

Modified:
    team/dlee/performance/main/astobj2.c

Modified: team/dlee/performance/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/performance/main/astobj2.c?view=diff&rev=399977&r1=399976&r2=399977
==============================================================================
--- team/dlee/performance/main/astobj2.c (original)
+++ team/dlee/performance/main/astobj2.c Fri Sep 27 12:46:04 2013
@@ -559,14 +559,6 @@
 	struct astobj2 *obj;
 	struct astobj2_lock *obj_mutex;
 	struct astobj2_rwlock *obj_rwlock;
-
-	if (data_size < sizeof(void *)) {
-		/*
-		 * We always alloc at least the size of a void *,
-		 * for debugging purposes.
-		 */
-		data_size = sizeof(void *);
-	}
 
 	switch (options & AO2_ALLOC_OPT_LOCK_MASK) {
 	case AO2_ALLOC_OPT_LOCK_MUTEX:




More information about the asterisk-commits mailing list