Skip to content

Workaround for Zing JVM

Compare
Choose a tag to compare
@wrandelshofer wrandelshofer released this 25 Oct 10:13

This release contains a workaround for the Zing JVM.

OpenJDK Runtime Environment Zing24.09.0.0+5 (build 21.0.4+4-LTS)
Zing 64-Bit Tiered VM Zing24.09.0.0+5 (build 21.0.4-zing_24.09.0.0-b5-release-linux-X86_64, mixed mode)

Instead of calling {@link Math#unsignedMultiplyHigh(long, long)}
we use our own implementation.

This version will perform slightly slower than the v1.0.1 release.
The JIT should generate a single MUL instruction for Math#unsignedMultiplyHigh(long, long).
This workaround consists of 6 lines of Java code that simulates this instruction.