mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Changed copy on write to occur during lookup, rather than after lookup.
Much carnage, but it's way faster. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3172 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -46,7 +46,7 @@ public class AVMStressTest extends AVMServiceTestBase
|
||||
System.out.println("Load time: " + (System.currentTimeMillis() - start));
|
||||
List<AVMTester> testers = new ArrayList<AVMTester>();
|
||||
List<Thread> threads = new ArrayList<Thread>();
|
||||
for (int i = 0; i < 1; i++)
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
AVMTester tester
|
||||
= new AVMTester(400, // create file.
|
||||
@@ -74,12 +74,12 @@ public class AVMStressTest extends AVMServiceTestBase
|
||||
thread.start();
|
||||
}
|
||||
int exited = 0;
|
||||
while (exited != 1)
|
||||
while (exited != 8)
|
||||
{
|
||||
try
|
||||
{
|
||||
Thread.sleep(2000);
|
||||
for (int i = 0; i < 1; i++)
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
if (threads.get(i) == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user