You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mnemonic.apache.org by "Wang, Gang (JIRA)" <ji...@apache.org> on 2017/05/01 18:26:04 UTC

[jira] [Closed] (MNEMONIC-254) Set function goes into loop with cyclic structures

     [ https://issues.apache.org/jira/browse/MNEMONIC-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wang, Gang closed MNEMONIC-254.
-------------------------------
    Resolution: Fixed

> 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)