G1 Pre-Barrier Implementation


G1 uses two kinds of barriers to maintain certain GC invariants, pre-barrier and post-barrier. This article focuses on the pre-barrier and see its implementation in OpenJDK. These two kinds of barriers are usually next to each other in the codebase, so one can easily do the same for the post-barrier after going through this article …

More at https://albertnetymk.github.io/2022/07/22/g1_barrier/