jadams-tresys commented on a change in pull request #369:
URL: https://github.com/apache/incubator-daffodil/pull/369#discussion_r413426258



##########
File path: 
daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/parsers/PState.scala
##########
@@ -205,6 +210,12 @@ final class PState private (
     m.restoreInto(this)
     m.clear()
     markPool.returnToPool(m)
+    changedVariablesStack.top.foreach { v => {
+      val variable = variableMap.find(v)
+      if (variable.isDefined)
+        variable.get.reset
+    }}
+    changedVariablesStack.top.clear

Review comment:
       You are right, this clear is unnecessary, will remove




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to