Author: ron.sigal(a)jboss.com
Date: 2008-05-18 00:41:59 -0400 (Sun, 18 May 2008)
New Revision: 4200
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/security/TestCallbackStore.java
Log:
JBREM-977: Eliminated big memory holder.
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/security/TestCallbackStore.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/security/TestCallbackStore.java 2008-05-18
04:40:58 UTC (rev 4199)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/security/TestCallbackStore.java 2008-05-18
04:41:59 UTC (rev 4200)
@@ -31,16 +31,16 @@
public class TestCallbackStore implements TestCallbackStoreMBean
{
private static Logger log = Logger.getLogger(TestCallbackStore.class);
- private static byte[] memHolder;
+// private static byte[] memHolder;
- static
- {
- long max = Runtime.getRuntime().maxMemory();
- log.info("max mem: " + max);
- int memSize = (int) (max * 0.6);
- memHolder = new byte[memSize];
- log.info("memHolder.length: " + memHolder.length);
- }
+// static
+// {
+// long max = Runtime.getRuntime().maxMemory();
+// log.info("max mem: " + max);
+// int memSize = (int) (max * 0.6);
+// memHolder = new byte[memSize];
+// log.info("memHolder.length: " + memHolder.length);
+// }
private int size;
Show replies by date