Comment #68 on issue 288 by [email protected]: FinalizableReferenceQueue
still leaks
http://code.google.com/p/google-guice/issues/detail?id=288
One quick and dirty workaround would be to use the sisu-guice binary:
http://repo1.maven.org/maven2/org/sonatype/sisu/sisu-guice/3.0.0/
This is guice 3.0 plus some patches
(https://github.com/sonatype/sisu-guice/blob/master/PATCHES).
One of these changes is to add a property "-Dguice.executor.class=Clazz"
where Clazz implements java.util.concurrent.Executor. You can then supply
your own executor to manage the finalizer work. You can also
use "-Dguice.executor.class=NONE" to turn off the finalizer completely, but
note that this means cleanup will only happen occasionally when the weak
collections mutate.
HTH (sorry about the use of a property, I didn't want to introduce an
experimental API that wasn't in Guice)
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.