From b9ef9f667ef9d4052c9d6dfec763b94d331dc04d Mon Sep 17 00:00:00 2001 From: Scott Gibbons Date: Sat, 13 Apr 2024 00:48:52 +0000 Subject: [PATCH] 8330185: Potential uncaught unsafe memory copy exception Reviewed-by: kvn, sviswanathan --- src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp b/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp index c802f953c90..8e77b9cc6c7 100644 --- a/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp +++ b/src/hotspot/cpu/x86/stubGenerator_x86_64_arraycopy.cpp @@ -728,7 +728,8 @@ address StubGenerator::generate_disjoint_copy_avx3_masked(address* entry, const if (MaxVectorSize == 64) { __ BIND(L_copy_large); - arraycopy_avx3_large(to, from, temp1, temp2, temp3, temp4, count, xmm1, xmm2, xmm3, xmm4, shift); + UnsafeCopyMemoryMark ucmm(this, !is_oop && !aligned, false, ucme_exit_pc); + arraycopy_avx3_large(to, from, temp1, temp2, temp3, temp4, count, xmm1, xmm2, xmm3, xmm4, shift); __ jmp(L_finish); } return start;