View | Details | Raw Unified | Return to bug 320809
Collapse All | Expand All

(-)search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java (-2 / +2 lines)
Lines 129-135 Link Here
129
	}
129
	}
130
	deleteIndexFiles(knownPaths);
130
	deleteIndexFiles(knownPaths);
131
}
131
}
132
public IPath computeIndexLocation(IPath containerPath) {
132
public synchronized IPath computeIndexLocation(IPath containerPath) {
133
	IPath indexLocation = (IPath) this.indexLocations.get(containerPath);
133
	IPath indexLocation = (IPath) this.indexLocations.get(containerPath);
134
	if (indexLocation == null) {
134
	if (indexLocation == null) {
135
		String pathString = containerPath.toOSString();
135
		String pathString = containerPath.toOSString();
Lines 168-174 Link Here
168
/*
168
/*
169
 * Creates an empty index at the given location, for the given container path, if none exist.
169
 * Creates an empty index at the given location, for the given container path, if none exist.
170
 */
170
 */
171
public void ensureIndexExists(IPath indexLocation, IPath containerPath) {
171
public synchronized void ensureIndexExists(IPath indexLocation, IPath containerPath) {
172
	SimpleLookupTable states = getIndexStates();
172
	SimpleLookupTable states = getIndexStates();
173
	Object state = states.get(indexLocation);
173
	Object state = states.get(indexLocation);
174
	if (state == null) {
174
	if (state == null) {

Return to bug 320809