[aarch64-port-dev ] hotspot jtreg runtime/BoolReturn/JNIBooleanTest.java failure
Andrey Petushkov
andrey.petushkov at gmail.com
Fri Sep 21 11:02:26 UTC 2018
Hi guys,
Just wanted to ask whether you want this fixed in jdk11. Apparently now raw value of jboolean (i.e. u8) returned by JNI method fed into java code, where it’s treated in different way. (value != 0 vs bit0 != 0) Not sure if it is considered to be belonging to BBB domain or just a mere possibility of application developers to shoot themselves into foot. I’d fix it with proper value conversion at http://hg.openjdk.java.net/jdk/jdk11/file/1ddf9a99e4ad/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp#l1925 <http://hg.openjdk.java.net/jdk/jdk11/file/1ddf9a99e4ad/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp#l1925>
If you’d like I can prepare a patch (although I assume unless it’s BBB-type thing it’s probably too late for jdk11)
Regards,
Andrey
More information about the aarch64-port-dev
mailing list