Skip to content

Memory leak by using child injector and multibinder #756

Closed
@gissuebot

Description

@gissuebot

From gbloisi on July 15, 2013 12:15:57

The attached minimal example shows how guice child injectors are leaking memory when used with MapBinder.

From the analysis I performed so far it looks like a WeakKeySet instance associated with the parent keeps growing. From what I understand from the code "mapped" instances in child injector are marked in a blacklist of the parent injector and are never released.

Attachment: gist
   ChildInjectorMemoryLeak.java

Original issue: http://code.google.com/p/google-guice/issues/detail?id=756

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions