Skip to content
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

[FFI/v0.45.0] Handle the discontiguous heap array in downcall #19306

Conversation

ChengJin01
Copy link

@ChengJin01 ChengJin01 commented Apr 11, 2024

The changes aim to address the case of discontiguous heap
array in the critical downcall by copying the heap array
to a native memory given the passed-in array in the native
function must be a contiguous one for native access.

Related: #17872

Port of #19263 for 0.45

Signed-off-by: ChengJin01 jincheng@ca.ibm.com

ChengJin01 and others added 2 commits April 11, 2024 14:23
The changes aim to address the case of discontiguous heap
array in the critical downcall by copying the heap array
to a native memory given the passed-in array in the native
function must be a contiguous one for native access.

Related: eclipse-openj9#17872

Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
Add declarations in vm_internal.h so they can be used in
ArrayCopyHelpers.cpp.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@ChengJin01
Copy link
Author

Reviewer: @pshipton
FYI: @TobiAjila

@ChengJin01 ChengJin01 requested a review from pshipton April 11, 2024 18:30
@pshipton pshipton added comp:vm project:panama Used to track Project Panama related work labels Apr 11, 2024
@pshipton pshipton merged commit fe43095 into eclipse-openj9:v0.45.0-release Apr 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:vm project:panama Used to track Project Panama related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants