[svn-commits] murf: branch murf/mtxprof r126222 - /team/murf/mtxprof/main/utils.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jun 28 15:22:20 CDT 2008


Author: murf
Date: Sat Jun 28 15:22:19 2008
New Revision: 126222

URL: http://svn.digium.com/view/asterisk?view=rev&rev=126222
Log:
Another experiment; force a coredump at pthread_create before #34, then another at #38, and compare the thread list; at 38, the thread creation is slow; at 34 they are fast. Compared the two; the only diff is that the sip do_monitor is in the handle_request_invite code; and the CLI thread is created. That's it. Tried running Asterisk w/o the CLI, and still the pthread creates are slow, so that isn't it.

Modified:
    team/murf/mtxprof/main/utils.c

Modified: team/murf/mtxprof/main/utils.c
URL: http://svn.digium.com/view/asterisk/team/murf/mtxprof/main/utils.c?view=diff&rev=126222&r1=126221&r2=126222
==============================================================================
--- team/murf/mtxprof/main/utils.c (original)
+++ team/murf/mtxprof/main/utils.c Sat Jun 28 15:22:19 2008
@@ -1084,6 +1084,15 @@
 	}
 #endif /* !LOW_MEMORY */
 
+#ifdef PROVE_NOTHING
+	if (numtimes == 38) { /* 33 = the last (shown as 34) time we had speedy thread create */
+		abort();
+		/* Just in case abort() doesn't work or something else super silly,
+		 * and for Qwell's amusement. */
+		*((int*)0)=0;
+	}
+#endif
+
 	start9 = ast_tvnow();
 	ret7 =  pthread_create(thread, attr, start_routine, data); /* We're in ast_pthread_create, so it's okay */
 	end9 = ast_tvnow();




More information about the svn-commits mailing list