Skip to content

[FFI/Jtreg_JDK20] Validate the downcall address with the scope check (0.40) - #17538

Merged
pshipton merged 1 commit into
eclipse-openj9:v0.40.0-releasefrom
ChengJin01:ffi_jtreg_liblookuptest_scope_check_downcall_addr_jdk20_v0.40.0
Jun 6, 2023
Merged

[FFI/Jtreg_JDK20] Validate the downcall address with the scope check (0.40)#17538
pshipton merged 1 commit into
eclipse-openj9:v0.40.0-releasefrom
ChengJin01:ffi_jtreg_liblookuptest_scope_check_downcall_addr_jdk20_v0.40.0

Conversation

@ChengJin01

Copy link
Copy Markdown

The changes rework the previous fix at #17074
by performing the scope check before returning the valid
downcall address in invokeNative() to avoid any timing
issue with the downcall address.

Note:
The scope check is only intended for JDK20+ as explained
at #17062.

Fixes: #17524

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

The changes rework the previous fix at
eclipse-openj9#17074
by performing the scope check before returning the valid
downcall address in invokeNative() to avoid any timing
issue with the downcall address.

Note:
The scope check is only intended for JDK20+ as explained
at eclipse-openj9#17062.

Fixes: eclipse-openj9#17524

Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
@ChengJin01 ChengJin01 added comp:vm project:panama Used to track Project Panama related work jdk20 labels Jun 6, 2023
@ChengJin01

Copy link
Copy Markdown
Author

Reviewer: @pshipton
FYI: @tajila

@pshipton
pshipton merged commit 99c5d95 into eclipse-openj9:v0.40.0-release Jun 6, 2023
@ChengJin01
ChengJin01 deleted the ffi_jtreg_liblookuptest_scope_check_downcall_addr_jdk20_v0.40.0 branch October 30, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:vm jdk20 project:panama Used to track Project Panama related work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants