Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad memory leak when mixing role with attributes #59

Open
bbkr opened this issue Apr 14, 2016 · 1 comment
Open

Bad memory leak when mixing role with attributes #59

bbkr opened this issue Apr 14, 2016 · 1 comment

Comments

@bbkr
Copy link

bbkr commented Apr 14, 2016

Following code causes big memory leak (on my machine 10MB per second).
It happens only if role has some attributes.
Weakening $a does not help.

package A;
use Mouse;

package B;
use Mouse::Role;
has "b" => ("is" => "ro",  "isa" => "Int");

package main;
while (1) {
    my  $a = A->new;
    B->meta->apply($a);
}
@syohex
Copy link
Collaborator

syohex commented May 2, 2016

Sorry too late reply. I have confirmed that memory usage increases over time. However Test::Valgrind does not report such big memory leak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants