• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!