Skip to content

Bad memory leak when mixing role with attributes #59

@bbkr

Description

@bbkr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions