-
Notifications
You must be signed in to change notification settings - Fork 736
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/Jtreg_JDK21] IndexOutOfBoundsException detected in TestClassLoaderFindNative.java #17676
Comments
Looking at the test code at https://github.com/ibmruntimes/openj9-openjdk-jdk21/blob/0bf8e32b3c5e101ce38ef51a5fa795ea1d28f5f6/test/jdk/java/foreign/TestClassLoaderFindNative.java#L62
It turns out
in which case we have to restore the previous fix for |
The change is to restore the previous fix in OpenJDK to deal with the native memory access given SymbolLookup.loaderLookup().find() returns a zero-sized segment for ADDRESS as explained in OpenJDK, in which case it should be reinterpreted as an valid segment with the specified size to ensure it works correctly. Fixes: #eclipse-openj9/openj9/issues/17676 Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
The change is to restore the previous fix in OpenJDK to deal with the native memory access given SymbolLookup.loaderLookup().find() returns a zero-sized segment for ADDRESS as explained in OpenJDK, in which case it should be reinterpreted as an valid segment with the specified size to ensure it works correctly. Fixes: #eclipse-openj9/openj9/issues/17676 Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
The change is to restore the previous fix in OpenJDK to deal with the native memory access given SymbolLookup.loaderLookup().find() returns a zero-sized segment for ADDRESS as explained in OpenJDK, in which case it should be reinterpreted as an valid segment with the specified size to ensure it works correctly. Fixes: #eclipse-openj9/openj9/issues/17676 Signed-off-by: ChengJin01 <jincheng@ca.ibm.com>
Close the issue as resolved at ibmruntimes/openj9-openjdk-jdk21#11. |
The test suite ended up with the following error:
FYI: @tajila, @pshipton
The text was updated successfully, but these errors were encountered: