dims        01/02/28 06:11:06

  Modified:    src/org/apache/cocoon/util Tag: xml-cocoon2
                        ComponentPool.java
  Log:
  When running Apache JMeter with a very high load the synchronize on m_pool is
  not good enough. So modified it to synchronize (this) instead.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.8   +2 -2      
xml-cocoon/src/org/apache/cocoon/util/Attic/ComponentPool.java
  
  Index: ComponentPool.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/util/Attic/ComponentPool.java,v
  retrieving revision 1.1.2.7
  retrieving revision 1.1.2.8
  diff -u -r1.1.2.7 -r1.1.2.8
  --- ComponentPool.java        2001/02/26 14:44:11     1.1.2.7
  +++ ComponentPool.java        2001/02/28 14:11:06     1.1.2.8
  @@ -59,7 +59,7 @@
        * @return an object from Pool
        */
       public synchronized final Poolable get() throws Exception {
  -        synchronized(m_pool) {
  +        synchronized(this) {
               Poolable component = super.get();
               log.debug(
                   (new StringBuffer("ComponentPool retrieved "))
  @@ -77,7 +77,7 @@
        * @param poolable the object to be placed in pool
        */
       public synchronized final void put(final Poolable poolable) {
  -        synchronized(m_pool) {
  +        synchronized(this) {
               super.put(poolable);
               log.debug(
                   (new StringBuffer("ComponentPool returned "))
  
  
  

Reply via email to