[asterisk-scf-commits] asterisk-scf/release/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jun 3 15:48:56 CDT 2011


branch "master" has been updated
       via  842ac2916a9dacfa0151dd121763d94aba3f23b5 (commit)
      from  c44cbcab1add8308822053fda7ebb73a79cadb1b (commit)

Summary of changes:
 src/PJSipManager.cpp |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 842ac2916a9dacfa0151dd121763d94aba3f23b5
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Jun 3 15:43:32 2011 -0500

    Moved the stack size alteration to config_site.h

diff --git a/src/PJSipManager.cpp b/src/PJSipManager.cpp
index c8b4462..ffd2854 100644
--- a/src/PJSipManager.cpp
+++ b/src/PJSipManager.cpp
@@ -66,13 +66,10 @@ PJSipManager::PJSipManager(const Ice::PropertiesPtr& props)
         lg(Error) << "Failed to create a memory pool";
     }
 
-    //
-    // The stack size calculation is necessary to support x64. Due to the increased size
-    // of many of the structures PJSIP allocates on the thread stacks, the default size simply
-    // isn't big enough.
-    //
+    // The default stack size might be set in config_site.h for
+    // specific platforms. 
     status = pj_thread_create(mMemoryPool, "SIP", (pj_thread_proc *) &monitorThread,
-        mEndpoint, PJ_THREAD_DEFAULT_STACK_SIZE * (sizeof(long*)/sizeof(long)), 0, &mPjThread);
+        mEndpoint, PJ_THREAD_DEFAULT_STACK_SIZE, 0, &mPjThread);
     if (status != PJ_SUCCESS)
     {
         lg(Error) << "Failed to create SIP maintenance thread";

-----------------------------------------------------------------------


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list