JVM garbage collection algorithm

I know that there are different garbage collection algorithms. This is a collection of copies and a collection of Compact Compact, an incremental collection. I have a request now. What algorithm is used in the JVM? Why are there different algorithms?

+5
source share
3 answers

Firstly, more than one version of the JVM .

I find that most core JVMs use the default generation garbage collection . However, they can also use a hybrid strategy.

Below are some links to core JVMs using garbage collections:

, , , Jrockit : JVM

+3

, , . , JDK, JVM ( ) , . , GC . :

+3

jvm jvm, -, -, JDK5.0 clollector: serial, throught, concurrent train

0

All Articles