Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WeakHashMap issue

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic