Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Island of Isolation in GC

 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anyone,

Can you please explain me with pictures what exactly island of isolation of references is helpful with respect to garbage collection.
I appreciate your help.

Regards,
Jothi Shankar Kumar. S
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a nice picture on page 250 of K & B 5.0. It's quite possible that it is also in the 1.4 version of the book because GC is a topic for SCJP 1.4.
 
yogesh sood
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Jothi !


I think i did tried diagram for this based on your previous request in post below check out this one too!
http://www.coderanch.com/t/259737/java-programmer-SCJP/certification/Garbage-collection
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Barry,

Thanks for the post. But still I'm dubious about what that i2.n and i3.n and i4.n really means? n is already a reference declared as an instance variable and similarily i2, i3, i4 are also references declared locally inside the main method. So what it actually means by saying i2.n, i3.n and so on? Can you tell me this?

Regards,
Jothi Shankar Kumar. S
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yogesh,

I'm not getting a clear picture from that diagram. Would you mind taking some time in redrawing the same diagram. I'm attaching the code below,



Thanks in advance.

Regards,
Jothi Shankar Kumar. S
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yogesh,

I'm a great fan of you GC related diagrams. Please help me with this island of isolation pictorially (for the above code) and I will be clear with GC.

Regards,
Jothi Shankar Kumar. S
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yogesh,

I had been to that article earlier. I did not find that quite useful. Can you please diagramatically show the GC process for the above mentioned code. That would really be og help to me man.

Regards,
Jothi Shankar Kumar. S
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jothi Shankar Kumar Sankararaj:
Hi Barry,

Thanks for the post. But still I'm dubious about what that i2.n and i3.n and i4.n really means? n is already a reference declared as an instance variable and similarily i2, i3, i4 are also references declared locally inside the main method. So what it actually means by saying i2.n, i3.n and so on? Can you tell me this?

Regards,
Jothi Shankar Kumar. S


It looks to me as if you need help in the very basics of Java. These are just references to fields (members of a class). Have you had a more elementary introduction to Java? K & B are assuming that you know the very basic things before you read their book.
[ October 17, 2006: Message edited by: Barry Gaunt ]
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Barry,

I know the basics in Java but I got confused when they say i3.i as i3 which is already a reference variable and we are using the . operator to make the variable i refer to the object created by i3. What really it means? How do you say that it is an island of isolation?

Regards,
Jothi Shankar Kumar. S
[ October 17, 2006: Message edited by: Jothi Shankar Kumar Sankararaj ]
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Can anyone please please give me a pictorial representation of island of isolation in gc?

Regards,
Jothi Shankar Kumar. S
 
Mike Ngo
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's fig 7.5 in the K & B book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic