Java HotSpot VM Options
document located
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
has a table
It appears that the header of the table says "Option and Default Value".
So actually -XX:-DisableExplicitGC is correct since it is the default value.
However, the description appears to be wrong, because the description does not describe the default value.
To clarify the description could say the following
By default calls to System.gc() are enabled (-XX:-DisableExplicitGC). Use -XX:+DisableExplicitGC to disable calls to System.gc().
Note that the JVM still performs garbage collection when necessary.
Does this seem reasonable?
document located
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
has a table
It appears that the header of the table says "Option and Default Value".
So actually -XX:-DisableExplicitGC is correct since it is the default value.
However, the description appears to be wrong, because the description does not describe the default value.
To clarify the description could say the following
By default calls to System.gc() are enabled (-XX:-DisableExplicitGC). Use -XX:+DisableExplicitGC to disable calls to System.gc().
Note that the JVM still performs garbage collection when necessary.
Does this seem reasonable?