Quantcast
Channel: JavaWorld Java Platform
Viewing all articles
Browse latest Browse all 142

OpenJDK proposal would speed up Java G1 garbage collector

$
0
0

Java’s G1 garbage collector would benefit from greater throughput and reduced CPU usage through a plan being floated in the OpenJDK community.

A draft JDK Enhancement Proposal (JEP) titled, “Throughput post-write barrier for G1,” would have the collector use a throughput-optimized barrier when concurrent refinement has been disabled to achieve better throughput at the cost of latency on certain workloads that are not latency-sensitive.

The plan would be implemented through a new JVM flag, -XX:-G1UseConcRefinement, which would turn off concurrent refinement and allow G1 to use a “throughput post-write barrier.” G1UseConcRefinement would be enabled by default, while the use of -XX:-G1UseConcRefinement would boost G1’s throughput and cut CPU usage, according to the proposal. The simplified write barrier would be much shorter in length, improving the cache hit rate. This mode would cut the workload for handling a dirty card and compilation work for JIT compilers. Further, the mode would reduce memory footprint by shrinking remembered sets and not using per-thread dirty card queues.

To read this article in full, please click here


Viewing all articles
Browse latest Browse all 142

Latest Images

Trending Articles





Latest Images