Lines 9-14
Link Here
|
9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
10 |
* Martin Oberhuber (Wind River) - [105554] handle cyclic symbolic links |
10 |
* Martin Oberhuber (Wind River) - [105554] handle cyclic symbolic links |
11 |
* Martin Oberhuber (Wind River) - [232426] shared prefix histories for symlinks |
11 |
* Martin Oberhuber (Wind River) - [232426] shared prefix histories for symlinks |
|
|
12 |
* Martin Oberhuber (Wind River) - [292267] OutOfMemoryError due to leak in UnifiedTree |
12 |
*******************************************************************************/ |
13 |
*******************************************************************************/ |
13 |
package org.eclipse.core.internal.localstore; |
14 |
package org.eclipse.core.internal.localstore; |
14 |
|
15 |
|
Lines 107-114
Link Here
|
107 |
addNodeChildrenToQueue(node); |
108 |
addNodeChildrenToQueue(node); |
108 |
else |
109 |
else |
109 |
removeNodeChildrenFromQueue(node); |
110 |
removeNodeChildrenFromQueue(node); |
110 |
//allow reuse of the node |
111 |
//allow reuse of the node, but don't let the freeNodes list grow infinitely |
111 |
freeNodes.add(node); |
112 |
if (freeNodes.size() < 32767) { |
|
|
113 |
freeNodes.add(node); |
114 |
//free memory-consuming elements of the node for garbage collection |
115 |
node.releaseForGc(); |
116 |
} |
112 |
} |
117 |
} |
113 |
} |
118 |
} |
114 |
|
119 |
|