RFR: 8302780: Add support for vectorized arraycopy GC barriers [v6]

Andrew Haley aph at openjdk.org
Tue Feb 28 10:37:13 UTC 2023


On Mon, 27 Feb 2023 11:28:40 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

>> So far, the arraycopy stubs have performed some kind of bulk pre/post barriers for arraycopy, which have been good enough, and allowed the copying itself to be done with plain loads and stores. For generational ZGC, this approach is not good enough, and we need barriers for the actual copying, but instead don't need the pre/post barriers. To prepare the JVM for generational ZGC, we need to add an API for arraycopy barriers.
>
> Erik Österlund has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add comment

src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp line 720:

> 718:       t4 = r7, t5 = r11, t6 = r12, t7 = r13;
> 719:     const Register stride = r14;
> 720:     const Register gct1 = r8, gct2 = r9, gct3 = r10;

Please don't alias rscratch1 and rscratch2. Many macros use them, and this is a bug waiting to happen.

-------------

PR: https://git.openjdk.org/jdk/pull/12670


More information about the hotspot-dev mailing list