0

I was trying to understand Clojure's garbage collection system. Of course, its all about JVM and its GC. I understood it was parallel mark&sweep, but I couldn't understand how it work. Can someone explain it please? In addition, I saw some talking about static and dynamic GC. Whats the difference? and what JVM uses? thanks a lot!

Reut Schremer
  • 348
  • 2
  • 15
  • Possible duplicate of [What is the garbage collector in Java?](https://stackoverflow.com/questions/3798424/what-is-the-garbage-collector-in-java) – Sam Estep Jul 13 '17 at 14:31

2 Answers2

0

Clojure doesn't implement its own Garbage Collector - it runs on JVM as any other JVM byte code and thus uses whatever garbage collector implementation that is run by the JVM (based on defaults or command line parameters configuration).

Piotrek Bzdyl
  • 12,965
  • 1
  • 31
  • 49
0

Better just to look up Java GC details, here's a page that might help: Understanding Java Garbage Collection.

Mike
  • 3,356
  • 3
  • 29
  • 27