[ https://issues.apache.org/jira/browse/MNEMONIC-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15989780#comment-15989780 ]
ASF GitHub Bot commented on MNEMONIC-254: ----------------------------------------- GitHub user johnugeorge opened a pull request: https://github.com/apache/incubator-mnemonic/pull/43 MNEMONIC-254: Avoid loops in set functions for cyclic structures You can merge this pull request into a Git repository by running: $ git pull https://github.com/johnugeorge/incubator-mnemonic master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-mnemonic/pull/43.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #43 ---- commit fa04538dbd7420c7e84803826608283ab68b4081 Author: Johnu George <johnu...@cisco.com> Date: 2017-04-29T05:55:08Z MNEMONIC-254: Avoid loops in set functions for cyclic structures ---- > Set function goes into loop with cyclic structures > -------------------------------------------------- > > Key: MNEMONIC-254 > URL: https://issues.apache.org/jira/browse/MNEMONIC-254 > Project: Mnemonic > Issue Type: Bug > Components: Core > Affects Versions: 0.8.0-incubating > Reporter: Johnu George > Assignee: Johnu George > Fix For: 0.8.0-incubating > > > In generated Set functions of durable structures, registerAutoReclaim() and > CancelAutoReclaim() functions are called on linked fields. Hence, if it is > cyclic structure, it causes infinite loop. Solution is to call > registerAutoReclaim only if reclaim was not already set on the linked field > and vice versa. -- This message was sent by Atlassian JIRA (v6.3.15#6346)