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
final Display display = configurer.getWorkbench().getDisplay();
		final Runnable handler = new Runnable() {
			public void run() {
				if (!configurer.getWorkbench().isClosing())
					display.timerExec(performGC(), this);
			}
		};
		idleListener = new Listener() {
			public void handleEvent(Event event) {
				display.timerExec(IDLE_INTERVAL, handler);
			}
		};
		display.addFilter(SWT.KeyUp, idleListener);
		display.addFilter(SWT.MouseUp, idleListener);
	}
	/**
	 * The idle handler has detected that the system is idle. Perform
	 * idle processing. Returns the amount of time that should pass before
	 * the next GC.
	 */
	protected int performGC() {
		
		if (!Platform.getJobManager().isIdle())
			return IDLE_INTERVAL;
		final long start = System.currentTimeMillis();
		
		if ((start - lastGC) < nextGCInterval)
			return nextGCInterval - (int) (start - lastGC);
		System.gc();