diff options
Diffstat (limited to 'src/core/dom/Node.cpp')
-rw-r--r-- | src/core/dom/Node.cpp | 9 |
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(); } |