ibmruntimes / openj9-openjdk-jdk

Extensions for OpenJDK for Eclipse OpenJ9
GNU General Public License v2.0
17 stars 75 forks source link

Fix MaxSizeUTF16String test to support OpenJ9 #771

Closed pshipton closed 6 months ago

pshipton commented 6 months ago

Openj9 can allocate new byte[Integer.MAX_VALUE - 1] but this exceeds the Hotspot implementation limit.

Fixes https://github.com/eclipse-openj9/openj9/issues/19303

Tested in grinder https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/3472 showing MaxSizeUTF16String::testMaxUTF8_UTF16Encode is SUCCESSFUL. There is another issue https://github.com/eclipse-openj9/openj9/issues/19309 preventing the test from passing.