Relates :
|
|
Relates :
|
|
Relates :
|
Currently only when enabling -XX:+UseDynamicNumberOfGCThreads all sets of worker threads (gc workers, marking, refinement) are allocated and started lazily, i.e. when they are needed. Doing so improves time to start up the VM significantly, in the range of up to 10% depending on GC. Lazy allocation does not change the number of threads actually in use, just when they are allocated, so this mechanism is quite disjoint with actually changing the number of threads for the different GC phases. By always allocating the threads lazily we would get these startup benefits always.
|