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

structural type cache should not hold strong reference to classes #2365

Closed
scabug opened this issue Sep 18, 2009 · 3 comments
Closed

structural type cache should not hold strong reference to classes #2365

scabug opened this issue Sep 18, 2009 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Sep 18, 2009

The structural type implementation retains a strong reference to a class object when a method is invoked. This prevents the class loader for that referenced class (and all other classes loaded by that class loader) from being garbage collected.

The attached test case demonstrates that this can cause OOME: PermGen errors.

@scabug
Copy link
Author

scabug commented Sep 18, 2009

Imported From: https://issues.scala-lang.org/browse/SI-2365?orig=1
Reporter: @harrah
Attachments:

@scabug
Copy link
Author

scabug commented Sep 18, 2009

@harrah said:
I forgot to mention that this test is against the 2.8 implementation in trunk. The 2.7 implementation is problematic as well, but would require a different test.

@scabug
Copy link
Author

scabug commented Jan 15, 2010

@paulp said:
Fixed in r20538.

@scabug scabug closed this as completed May 18, 2011
@scabug scabug added this to the 2.8.0 milestone Apr 7, 2017
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