kucci / guava-libraries

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

MapMaker().weakKeys() causes thread leak in webapp #382

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
  Currently, I am using google-collections 1.0. If we call new MapMaker().weakKeys().makeMap() to create a new Map, it will start a daemon thread to call finalizeReferent method internally.

  This works fine for any java standalone application, however, it can cause thread leak in a Java EE application, because the java ee container may not shutdown for deploy/undeploy an application. so the daemon thread will remain in the container after we undeploy the application.

  Can MapMaker create a weak reference map with a flag to enable/disable backgroup thread? 

Cheers,
David

Original issue reported on code.google.com by vea...@gmail.com on 20 Jul 2010 at 9:39

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 30 Jul 2010 at 3:56

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 8 Sep 2010 at 7:00

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09