Closed theresa-m closed 1 month ago
Issue Number: 20253 Status: Open Recommended Components: comp:vm, comp:test, comp:gc Recommended Assignees: hangshao0, babsingh, gacholio
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:
The flag J9ClassIsFlattened
is expected to be removed from nullable array.
Oh yea... that was me wasn't it 😅. Thanks, I'll start there.
Issue Number: 20253 Status: Closed Actual Components: comp:vm, project:valhalla Actual Assignees: No one :( PR Assignees: theresa-m
Related to https://github.com/eclipse-openj9/openj9/issues/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 https://github.com/eclipse-openj9/openj9/pull/20250 are needed to reproduce this.