You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by jfraudeau <gi...@git.apache.org> on 2016/09/29 21:37:34 UTC

[GitHub] jena pull request #173: Solving a memory leak from LPRuleEngine

GitHub user jfraudeau opened a pull request:

    https://github.com/apache/jena/pull/173

    Solving a memory leak from LPRuleEngine

    Each time a `LPRuleEngine` gets called to find a triple for which a cached `Generator` exists in `tabledGoals` a new `ConsumerChoicePointFrame` is registered as a consumer of this Generator.
    The leak is that it is never unregistered from the consumer, the solution was simply to call the unregistering from the `close()` method of the `ConsumerChoicePointFrame`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jfraudeau/jena master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/173.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 #173
    
----
commit 1b49b0359fb48aa926c9aa22d1b30426ce92c77d
Author: J�r�mie Fraudeau <je...@laposte.net>
Date:   2016-09-29T21:10:22Z

    Add failing test for memory leak
    
    ConsumerChoicePointFrame leaks from LPBRuleEngine through cached
    Generator

commit da6fff46b3383335bf58abe5e25f51cde8ebd51e
Author: J�r�mie Fraudeau <je...@laposte.net>
Date:   2016-09-29T21:28:13Z

    Resolve memory leak
    
    Unregister ConsumerChoicePointFrame from Generator consumerCP uppon
    closing

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] jena pull request #173: Solving a memory leak from LPRuleEngine

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/jena/pull/173


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] jena issue #173: Solving a memory leak from LPRuleEngine

Posted by der <gi...@git.apache.org>.
Github user der commented on the issue:

    https://github.com/apache/jena/pull/173
  
    +1
    
    Looks good, many thanks for the contribution, will merge.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---