Search code examples
javagarbage-collectionjvmjvm-hotspot

Are there any JVMs that do not use generational garbage collection


I am giving a basic talk on garbage collection in Java, and the different algorithms used etc. My experience with GC has been only with the Hotspot JVM.

I was just wondering if there are any JVMs around that do not use a generational collection concept (i.e. Young, Old)? Just in case someone asks me this question!

Thanks.


Solution

  • There a lots of JVM implementations (see this page to have an idea). So yes, it is possible that some of them are not based on the Weak Generational Hypothesis. For instance, JVM such as JamaicaVM (hard real-time Java VM for embedded systems) could make other assumptions since they do not target the same applications than Oracle JVM does.

    However, the most used implementations (Oracle JVM, IBM J9 and Azul Zing) are based on it.

    Note that with G1 GC, Oracle JVM added a new type of collections : the generational-and-regional collections

    Hope that helps !