Bug 121562 [IDE] Need a way to disable forced GC done by IDEIdleHelper
3.2 M4 Some of our performance tests which drive the event loop and wait until the UI settles down can now be affected by a forced GC performed by the IDEIdleHelper. In order to compare the performance tests with 3.1 we need to disable this in our tests.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEIdleHelper.java
System.runFinalization();
		lastGC = start;
		final int duration = (int) (System.currentTimeMillis() - start);
		if (Policy.DEBUG_GC)
			System.out.println("Explicit GC took: " + duration); 
		if (duration > maxGC) {
			if (Policy.DEBUG_GC)
				System.out.println("Further explicit GCs disabled due to long GC"); 
			shutdown();
			return -1;
		}
		
		nextGCInterval = Math.max(minGCInterval, GC_DELAY_MULTIPLIER * duration);
		if (Policy.DEBUG_GC)
			System.out.println("Next GC to run in: " + nextGCInterval); 
		return nextGCInterval;
	}
	/**
	 * Shuts down the idle helper, removing any installed listeners, etc.
	 */
	void shutdown() {
		if (idleListener == null)
			return;
		Display display = configurer.getWorkbench().getDisplay();
		if (display != null && !display.isDisposed()) {
			display.removeFilter(SWT.KeyUp, idleListener);
			display.removeFilter(SWT.MouseUp, idleListener);
		}
	}
}