The difference between -XX: -UseParallelGC and -XX: + UseParallelGC

What is the difference between -XX: + UseParallelGC and -XX: -UseParallelGC? Most links point to the first, but http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html mentions the second.

Thank.

+5
source share
2 answers

From the documentation:

Logical options are enabled with -XX:+<option>and disabled with-XX:-<option>

So, this means that it -XX:+UseParallelGCwill enable parallel garbage collection, and -XX:-UseParallelGCdisable it.

+7
source

Line:

-XX:+UseParallelGC

Includes ParallelGC . Pay attention to the sign.+

Line:

-XX:-UseParallelGC

Disables it. Pay attention to the sign -.

+3
source

All Articles