mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Bug 400073 - Indexer runs out of memory.
An attempt to reduce memory consumption.
This commit is contained in:
parent
b52beeb11b
commit
fb08c843e9
1 changed files with 8 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2009, 2010 Alena Laskavaia
|
* Copyright (c) 2009, 2013 Alena Laskavaia
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -13,7 +13,6 @@ package org.eclipse.cdt.codan.core.cxx.model;
|
||||||
|
|
||||||
import java.util.WeakHashMap;
|
import java.util.WeakHashMap;
|
||||||
|
|
||||||
import org.eclipse.cdt.codan.core.cxx.Activator;
|
|
||||||
import org.eclipse.cdt.codan.core.cxx.internal.model.CodanCommentMap;
|
import org.eclipse.cdt.codan.core.cxx.internal.model.CodanCommentMap;
|
||||||
import org.eclipse.cdt.codan.core.cxx.internal.model.cfg.CxxControlFlowGraph;
|
import org.eclipse.cdt.codan.core.cxx.internal.model.cfg.CxxControlFlowGraph;
|
||||||
import org.eclipse.cdt.codan.core.model.ICodanDisposable;
|
import org.eclipse.cdt.codan.core.model.ICodanDisposable;
|
||||||
|
@ -146,10 +145,11 @@ public class CxxModelsCache implements ICodanDisposable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// finalize() method delays garbage collection of objects. Uncomment only for testing.
|
||||||
protected void finalize() throws Throwable {
|
// @Override
|
||||||
if (!disposed)
|
// protected void finalize() throws Throwable {
|
||||||
Activator.log("CxxASTCache was not disposed."); //$NON-NLS-1$
|
// if (!disposed)
|
||||||
super.finalize();
|
// Activator.log("CxxASTCache was not disposed."); //$NON-NLS-1$
|
||||||
}
|
// super.finalize();
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue