ACMNexus / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

Cannot use MapMaker with soft/weak keys/values on Google App Engine #143

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The Java sandbox in the Google App Engine doesn't let you create additional
threads. This means that if you use MapMaker to create maps with soft/weak
keys/values these entries will never get removed from the map, because the
custom Finalizer thread will not be allowed to start.

Is there a chance we could add an option to MapMaker to support reference
maps that don't require the custom Finalizer thread? This might also help
resolve issue #92.

Original issue reported on code.google.com by mccu...@gmail.com on 12 Apr 2009 at 2:40

GoogleCodeExporter commented 8 years ago
Actually looking at the latest code I see that if the Finalizer thread fails to 
start
it falls back to processing the reference queue whenever a new reference is 
created.
(was looking at the local copy in Guice which hasn't picked up these recent 
changes)

So this issue can be closed :)

Original comment by mccu...@gmail.com on 12 Apr 2009 at 3:34

GoogleCodeExporter commented 8 years ago
And now you know why we made it do that. :)

Original comment by kevin...@gmail.com on 12 Apr 2009 at 10:52