Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2016-12-13 05:50:32 -0500
committerEike Stepper2016-12-13 05:50:32 -0500
commit27d9fe36b46524b7d285fd53a416f510c9224263 (patch)
tree38ed6851f9452e88366c667043e8d3153d21771d /plugins/org.eclipse.net4j.tests/src/org
parent7b509f423332eb4199e3a07b3e13f0ece39d50a9 (diff)
downloadcdo-27d9fe36b46524b7d285fd53a416f510c9224263.tar.gz
cdo-27d9fe36b46524b7d285fd53a416f510c9224263.tar.xz
cdo-27d9fe36b46524b7d285fd53a416f510c9224263.zip
[509141] Provide CDORegistrationHandler callbacks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=509141
Diffstat (limited to 'plugins/org.eclipse.net4j.tests/src/org')
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
index 33a1b5eafc..b056bee2e9 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
@@ -768,6 +768,30 @@ public abstract class AbstractOMTest extends TestCase
skipTest(true);
}
+ public static void triggerGC()
+ {
+ List<byte[]> bigdata = new ArrayList<byte[]>();
+
+ try
+ {
+ while (true)
+ {
+ try
+ {
+ bigdata.add(new byte[1024 * 1024]);
+ }
+ catch (Throwable ex)
+ {
+ break;
+ }
+ }
+ }
+ catch (Throwable ex)
+ {
+ //$FALL-THROUGH$
+ }
+ }
+
public static void disableLog4j()
{
BasicConfigurator.configure(new Appender()

Back to the top