From 1cf7e780bdfde027875985626b5617eb2c605907 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 6 Nov 2014 23:13:14 +0000 Subject: current working copy git-svn-id: file:///var/local/svn/basicwriter@98 daaaf23c-2e50-4459-9457-1e69db5a47bf --- src/core/dom/Node.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/core/dom/Node.cpp') 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(); } -- cgit v1.2.3