Bug 48382 Deadlock running automated tests
I20031209 The automated tests for this build failed due to a deadlock. The stack trace is attached. All of the jobs involved are from the new marker view work. The problematic pattern is in Worker-4 and Worker-1, both of which are trying to join another job while owning an ILock. I recommend releasing the ILock before attempting to join the job.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableContentProvider.java
}
		} finally {			
			enableUpdatesJob.schedule();
			try {
				enableUpdatesJob.join();
			} catch (InterruptedException e1) {
			}
			
			monitor.done();
		}	
	}
	
	/**
	 * Performs a single update to the viewer. Based on the contents of the pending* queues,
	 * items will either be removed, added, or refreshed in the viewer (in that order). This
	 * should only be called within a synchronized block, since the various queues shouldn't
	 * be modified during an update. This method is invoked repeatedly by jobs to gradually
	 * apply the pending changes.
	 */
	private int updateViewer() {
		if (getViewer().getSorter() != null) {
			getViewer().setSorter(null);
		}
		
		resync();
		
		return queues.nextUpdate();
	}	
}