sebb        2003/10/22 03:28:07

  Modified:    src/core/org/apache/jmeter/threads TestCompiler.java
  Log:
  Change synch to use the correct object this time...(duh!)
  
  Revision  Changes    Path
  1.36      +8 -5      
jakarta-jmeter/src/core/org/apache/jmeter/threads/TestCompiler.java
  
  Index: TestCompiler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/threads/TestCompiler.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- TestCompiler.java 21 Oct 2003 14:57:34 -0000      1.35
  +++ TestCompiler.java 22 Oct 2003 10:28:07 -0000      1.36
  @@ -67,9 +67,12 @@
        * Clears the pairing Set
        * Called by StandardJmeterEngine at the start of a test run.
        */
  -    public static synchronized void initialize()
  +    public static void initialize()
       {
  -        pairing.clear();
  +        // synch is probably not needed as only called before run starts
  +     synchronized(pairing){
  +                     pairing.clear();
  +     }
       }
   
       public void sampleOccurred(SampleEvent e)
  @@ -135,7 +138,7 @@
                   new ObjectPair(
                       (TestElement) child,
                       (TestElement) stack.getLast());
  -                     synchronized (this){
  +                     synchronized (pairing){//Called from multiple threads
                   if (!pairing.contains(pair))
                   {
                       pair.addTestElements();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to