activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1411803 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp
Date Tue, 20 Nov 2012 19:15:00 GMT
Author: tabish
Date: Tue Nov 20 19:14:59 2012
New Revision: 1411803

URL: http://svn.apache.org/viewvc?rev=1411803&view=rev
Log:
Low the number of threads created in the stress test since it uses up all resources on older
windows.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp?rev=1411803&r1=1411802&r2=1411803&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp Tue Nov 20
19:14:59 2012
@@ -855,7 +855,7 @@ namespace {
         virtual ~RapidCreateDestoryThread(){}
 
         virtual void run() {
-            for (int i = 0; i < 5000; i++) {
+            for (int i = 0; i < 500; i++) {
                 QuickThread* t = new QuickThread;
                 t->start();
                 delete t;
@@ -868,7 +868,7 @@ namespace {
 void ThreadTest::testConcurrentRapidCreateAndDestroy() {
 
     ArrayList<Thread*> threads;
-    const int NUM_THREADS = 128;
+    const int NUM_THREADS = 32;
 
     for (int i = 0; i < NUM_THREADS; ++i) {
         threads.add(new RapidCreateDestoryThread);



Mime
View raw message