[jboss-cvs] JBossAS SVN: r81131 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/session.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Nov 16 10:14:33 EST 2008


Author: bstansberry at jboss.com
Date: 2008-11-16 10:14:33 -0500 (Sun, 16 Nov 2008)
New Revision: 81131

Modified:
   trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/ClusteredSession.java
Log:
Reduce memory; not so many CHM segments

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/ClusteredSession.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/ClusteredSession.java	2008-11-16 11:51:46 UTC (rev 81130)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/ClusteredSession.java	2008-11-16 15:14:33 UTC (rev 81131)
@@ -155,7 +155,7 @@
    /**
     * The collection of user data attributes associated with this Session.
     */
-   private final Map<String, Object> attributes = new ConcurrentHashMap<String, Object>();
+   private final Map<String, Object> attributes = new ConcurrentHashMap<String, Object>(16, 0.75f, 2);
 
 
    /**
@@ -1108,7 +1108,7 @@
     */
    public void update(DistributableSessionData sessionData)
    {
-      assert metadata != null : "metadata is null";
+      assert sessionData != null : "sessionData is null";
       
       this.version.set(sessionData.getVersion());
       




More information about the jboss-cvs-commits mailing list