Open GoogleCodeExporter opened 9 years ago
Attached is a suggested patch that provides a custom classloader for Guice
generated
proxies (not enabled by default, can be turned on using
"-Dguice.custom.loader=true")
javac -cp ".;guice.jar;aopalliance.jar" leak.java
# will eventually hit an OOM because of the generated class leak
java -cp ".;guice.jar;aopalliance.jar" -Xmx8m -verbose:gc leak
# should keep on running, every now and then unloading a shed-load of generated classes
java -cp ".;guice.jar;aopalliance.jar" -Xmx8m -verbose:gc
-Dguice.custom.loader=true leak
Original comment by mccu...@gmail.com
on 4 Jun 2008 at 9:26
Attachments:
Updated patch that includes a couple of the extensions that also create proxies.
Original comment by mccu...@gmail.com
on 4 Jun 2008 at 11:44
Attachments:
This is being fixed by mcculls' OSGi patch, being tracked by issue 94.
Original comment by limpbizkit
on 29 Jun 2008 at 11:07
http://code.google.com/p/google-guice/wiki/BytecodeGeneration
Original comment by limpbizkit
on 3 Jul 2008 at 10:03
Original issue reported on code.google.com by
limpbizkit
on 23 May 2008 at 5:49