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

Fixed memory leaks in concurrent tests #1705

Merged
merged 1 commit into from
May 10, 2016

Conversation

marcusnaslund
Copy link
Contributor

@marcusnaslund marcusnaslund commented May 9, 2016

Part of the work on #1699

Eliminating these wasteful leaks have shown some leaks in Promise, PromiseCollector, and ThreadPool that would occur if they're used in ways not currently used today. They will be fixed in a later PR.

@marcusnaslund marcusnaslund force-pushed the concurrentmemleaks branch 3 times, most recently from 43e2acd to 089c72b Compare May 10, 2016 09:26
allocated: static Int = 0
freed: static Int = 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way we can actually remove the created classes, otherwise they could never be freed.

@marcusnaslund
Copy link
Contributor Author

Peer review @erikhagglund ?

@marcusnaslund
Copy link
Contributor Author

Taking this off review again, I will add some more stuff.

@marcusnaslund
Copy link
Contributor Author

There we go. Peer review @erikhagglund or @sebastianbaginski , whoever has time

@@ -84,6 +84,8 @@ ThreadTest: class extends Fixture {
otherId free()
(job as Closure) free()
expect(myId equals(Thread currentThreadId()), is true)
thisThreadInstance free()
otherThreadInstance free()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not one line ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@ghost ghost added ready and removed peer review labels May 10, 2016
@marcusnaslund marcusnaslund merged commit 6cdbeab into magic-lang:develop May 10, 2016
@marcusnaslund marcusnaslund deleted the concurrentmemleaks branch May 26, 2016 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant