Project: JDT
Bug 210758 Improve LeakTestCase performance by checking multiple classes
Reported: 2007-11-23 08:58:29 | Status: resolved fixed

HEAD LeakTestCase performance is very bad if tests assert the instance count of multiple classes in sequence (e.g. TextViewerUndoManagerLeakTest.testLeak()). LeakTestCase.assertInstanceCount(Class, int) should be expanded to allow checking instance counts for more than one classes at once during the same memory traversal.

Files changed in fix:
org.eclipse.jdt.ui.tests/leaks/org/eclipse/jdt/ui/leaktest/LeakTestCase.java org.eclipse.jdt.ui.tests/leaks/org/eclipse/jdt/ui/tests/leaks/TextViewerUndoManagerLeakTest.java org.eclipse.jdt.ui.tests/leaks/org/eclipse/jdt/ui/tests/leaks/UndoManagerLeakTest.java