[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/memory ...
Ben Wang
bwang at jboss.com
Mon Oct 9 04:34:19 EDT 2006
User: bwang
Date: 06/10/09 04:34:19
Modified: tests-50/functional/org/jboss/cache/pojo/memory
ReplicatedTest.java
Log:
Updated api
Revision Changes Path
1.4 +8 -8 JBossCache/tests-50/functional/org/jboss/cache/pojo/memory/ReplicatedTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/memory/ReplicatedTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ReplicatedTest.java 8 Sep 2006 07:55:58 -0000 1.3
+++ ReplicatedTest.java 9 Oct 2006 08:34:19 -0000 1.4
@@ -70,10 +70,10 @@
ClassLoader cla = getClassLoader();
WeakReference refa = new WeakReference(cla);
- cache_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(cla);
+ cache_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(cla);
ClassLoader clb = getClassLoader();
WeakReference refb = new WeakReference(clb);
- cache_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(clb);
+ cache_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(clb);
Fqn fqn = new Fqn("/aop");
cache_.getCache().put(new Fqn("/aop"), "add", add);
@@ -94,8 +94,8 @@
ClassLoader clc = getClassLoader();
cla = null;
clb = null;
- cache_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(clc);
- cache1_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(clc);
+ cache_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(clc);
+ cache1_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(clc);
System.gc(); // force gc
Thread.currentThread().sleep(1000);
assertNull("Classloader should be gced ", refa.get());
@@ -137,9 +137,9 @@
ClassLoader cla = getClassLoader();
WeakReference refa = new WeakReference(cla);
- cache_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(cla);
+ cache_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(cla);
ClassLoader clb = getClassLoader();
- cache1_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(clb);
+ cache1_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(clb);
WeakReference refb = new WeakReference(clb);
cache_.attach("/aop", p);
@@ -157,8 +157,8 @@
cache_.detach("/aop");
ClassLoader clc = getClassLoader();
- cache_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(clc);
- cache1_.getCache().getRegion(new Fqn("/aop")).registerContextClassLoader(clc);
+ cache_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(clc);
+ cache1_.getCache().getRegion(new Fqn("/aop"), true).registerContextClassLoader(clc);
cla = null;
clb = null;
forceOutOfMemoryError();
More information about the jboss-cvs-commits
mailing list