• Post Reply Bookmark Topic Watch Topic
  • New Topic

WeakHashMap issue  RSS feed

 
Ramakrishna Gutha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

I have used WeakHashMap in my code to store widgets by name keeping memory as primary concern.

Later point of time when the applications were running the WeakHashMap was completely empty, and i found that issue is whenever the garbage collection is invoked no matter whether the collection is live or dead the object is getting reclaimed.

Can anyone let me know what exactly is happening in background ...



Regards,
GRK
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!