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

Cyclic references leak memory #138

Open
DirtyHairy opened this issue May 13, 2021 · 2 comments
Open

Cyclic references leak memory #138

DirtyHairy opened this issue May 13, 2021 · 2 comments
Assignees
Labels

Comments

@DirtyHairy
Copy link

var foo;

while (true) {
   var x = {};
   var y = {x: x, a: []};
   x.y = y;

   foo = x;

   for (var i = 0; i < 1000000; i++) y.a[i] = i;
}

console.log(foo);

Open top and watch it gobble memory.

@daodaoliehuo
Copy link

@adrien-thierry I'm sorry to disturb you, is the project suspended now?

@adrien-thierry
Copy link
Contributor

Hi @daodaoliehuo !
Suspended no, but i don't have too much time those days, if people wants to help me it's with pleasure !

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

No branches or pull requests

4 participants