-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Value Types: crash when System.arrayCopy sets null in null-restricted array #20253
Comments
Issue Number: 20253 |
Speculating, but please be aware it is possible we do not have proper implementation for some cases for Flattened Arrays copy. Traditional array copy functions might have deal with hardcoded element sizes 1, 2, 4 , 8. Copy of different size element byte by byte might be not sufficient due possible object references embedded to the element. Coping object reference should be done size-atomic. Also it might require triggering of GC barriers. Please do not hesitate to ask if there is one of this cases or you need help with investigation. |
There is a comment in the code: openj9/runtime/vm/createramclass.cpp Lines 3455 to 3458 in e425dbf
The flag |
Oh yea... that was me wasn't it 😅. Thanks, I'll start there. |
Issue Number: 20253 |
Related to #20223 I also tried the following to see whether or not I can copy null into a null-restricted array. This test results in a segmentation error.
java --enable-preview --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED --add-exports java.base/jdk.internal.value=ALL-UNNAMED -XX:ValueTypeFlatteningThreshold=99999 -XX:+EnableArrayFlattening -Xint TestNullRestrictedArray
Changes from #20250 are needed to reproduce this.
The text was updated successfully, but these errors were encountered: