summaryrefslogtreecommitdiff
path: root/src/core/dom/Node.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-11-06 23:13:14 +0000
committerandreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf>2014-11-06 23:13:14 +0000
commit1cf7e780bdfde027875985626b5617eb2c605907 (patch)
tree45c5f849c293974688370b231bd629edd3f71427 /src/core/dom/Node.cpp
parented50d684bf212da7a7a01ddb4bc82928f238f56d (diff)
current working copy
git-svn-id: file:///var/local/svn/basicwriter@98 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/core/dom/Node.cpp')
-rw-r--r--src/core/dom/Node.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/dom/Node.cpp b/src/core/dom/Node.cpp
index 7c4852a..cdf8137 100644
--- a/src/core/dom/Node.cpp
+++ b/src/core/dom/Node.cpp
@@ -217,15 +217,14 @@ void NodeManager::deleteRef(Node *tar, Node *src, bool all)
if (dTar->refInCount() == 0) {
deleteNode(tar, dTar);
} else if (dTar->rootRefCount == 0) {
- // Call the tracing garbage collector if the number of marked nodes
- // is larger than the threshold value and this function was not
- // called from inside the deleteNode function
+ // Insert the node into the list of nodes to be inspected by garbage
+ // collection
marked.insert(tar);
}
}
- // Call the garbage collector if the marked size is larger than the actual
- // value
+ // Call the tracing garbage collector if the marked size is larger than the
+ // actual value
if (marked.size() >= threshold) {
sweep();
}