Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Garbage collection of Map

This is a discussion on Garbage collection of Map within the Java forums, part of the Software Development category; If a Map had n number of key value pairs and the map becomes unreachable but some of it key value pairs are still reachable then the map will be ...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2009
Junior Member
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
shaileshrit is on a distinguished road
Garbage collection of Map

If a Map had n number of key value pairs and the map becomes unreachable but some of it key value pairs are still reachable then the map will be eligible for garbage collection or not?

If the map will be eligible then what is really collected from the memory, does the internal data structure(internal classes/primitive) which is used by the map class will get garbage collected?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Nov 2009
Location: Fremont CA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Raszu is on a distinguished road
Re: Garbage collection of Map

The moment, you garbage collect the Map (either by suggesting JVM by gc command) or routine garbage collection of JVM, all its reference objects in collections become soft links and gets candidate for garbage collection in same or next cyle (most likely for next cycle).
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
AJAX Made Easy - Generational Garbage Collection Lokesh M AJAX & XML 0 07-18-2009 12:00 PM
Garbage Collection lalitha873 Java 1 06-23-2009 08:33 AM
AJAX Made Easy - JavaScript Garbage Collection Lokesh M AJAX & XML 0 06-13-2009 05:40 AM
How the jvm assign thread to garbage collection pawankalyan.info Java 2 04-13-2009 05:28 AM
How to see garbage collection in using jconsole galamvasu Java 0 01-16-2009 11:38 PM


All times are GMT -4. The time now is 02:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved