Integrated: 8330185: Potential uncaught unsafe memory copy exception
Scott Gibbons
sgibbons at openjdk.org
Sat Apr 13 00:51:47 UTC 2024
On Fri, 12 Apr 2024 20:00:35 GMT, Scott Gibbons <sgibbons at openjdk.org> wrote:
> Adding an `UnsafeCopyMemoryMark` in `generate_disjoint_copy_avx3_masked()` to protect against SIGBUS in `arraycopy_avx3_large()`. I discovered this by code inspection, and the missing memory mark is inconsistent with all other generators. I do not have a testcase to generate such an exception. I think this may have been a copy/paste error by the original contributor as evidenced by the variable `ucme_exit_pc` having been set but never used.
>
> I have not seen a VM crash that can be attributed to this, but adding the mark is the correct behavior for its prevention.
This pull request has now been integrated.
Changeset: b9ef9f66
Author: Scott Gibbons <sgibbons at openjdk.org>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/b9ef9f667ef9d4052c9d6dfec763b94d331dc04d
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8330185: Potential uncaught unsafe memory copy exception
Reviewed-by: kvn, sviswanathan
-------------
PR: https://git.openjdk.org/jdk/pull/18766
More information about the hotspot-compiler-dev
mailing list