Is the class / metad definition ever deleted / GC in JVM 8?

In java 6, the classes used to load in perm gen space, and once they are loaded, they will not be removed (or garbage collected) from the permento space, either they are still used or not during GC. Right?

But in java 8, the perm area is completely removed, and the deifinition classes are loaded into the heap. My question is: the class definition will be on the heap forever (before jvm is killed), are they used or not, as in java 6, or will it be garbage collection like any other object?

+6
source share

All Articles