CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Posts
    24

    Does garbage collection occurs in PERM Area of Java Heap ?

    Hi Guys,

    I am a relative new member in this forum , My name is Javin Paul and I am Java programmer. I have question related to garbage collection in Java

    Does garbage collection occurs in PERM Area of Java Heap ?

    As per my knowledge PERM area is used to store meta data about classes, methods , variable etc also String Pool created in PERM area of heap so I believe garbage collection does not occur in this place but just wanted to know what do you guys think of it ?

    Thanks
    Javin

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Does garbage collection occurs in PERM Area of Java Heap ?

    Please do not cross post on multiple forums.

    I believe the answer is yes it does get garbage collected as part of a major collection cycle when the tenured area is GC'd. GC'ing this area will mean the GC'd classes are unloaded from the JVM so is limited to those classes that don't have any non-final static variables.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured