Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2011-03-13 06:27:31 -0400
committerMarc-Andre Laperle2011-03-13 06:27:31 -0400
commitd17ddfebab19eb38a2ec52ca86f701686947f25d (patch)
tree3948474e0ca63d383d260b94aa8bf6745db83603
parentcbd551eeef1c95ccc99cecebea77a32f58409d13 (diff)
downloadorg.eclipse.cdt-d17ddfebab19eb38a2ec52ca86f701686947f25d.tar.gz
org.eclipse.cdt-d17ddfebab19eb38a2ec52ca86f701686947f25d.tar.xz
org.eclipse.cdt-d17ddfebab19eb38a2ec52ca86f701686947f25d.zip
Bug 335122 - Fix index locking issue discovered by running the 'old' ImplementMethod test (new one being Bug 292851). Should fix build not ending.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java
index a4f4c4c5fa..03e0a041de 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/CRefactoring.java
@@ -294,7 +294,9 @@ public abstract class CRefactoring extends Refactoring {
if (fIndex != null) {
fIndex.releaseReadLock();
}
- fIndex= null;
+ // Marc-Andre Laperle : I don't think we want to null this out,
+ // if the lock is acquired twice then the lock can only be released once
+ //fIndex= null;
}
public IIndex getIndex() {

Back to the top