• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Island of Isolation in GC

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
https://coderanch.com/t/259737/java-programmer-SCJP/certification/Garbage-collection
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's fig 7.5 in the K & B book.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic