views:

284

answers:

3

is garbage collection algorithm in java "vendor implemented?"

+1  A: 

Definitely vendor dependent. GCJ and the Sun VM use totally different garbage collectors, for example.

Mark Bessey
+2  A: 

Yes, and not only that, each JVM can contain more than one garbage collection strategy:

David Rabinowitz
+4  A: 

From the introduction paragraph to Chapter 3 of the Java Virtual Machine Specification:

For example, the memory layout of run-time data areas, the garbage-collection algorithm used, and any internal optimization of the Java virtual machine instructions (for example, translating them into machine code) are left to the discretion of the implementor. [emphasis mine]

Brandon E Taylor