RFR JDK-6321472: Add CRC-32C API
Ulf Zibis
Ulf.Zibis at CoSoCo.de
Fri Oct 17 23:26:05 UTC 2014
Am 18.10.2014 um 00:38 schrieb Staffan Friberg:
> Hi Ulf,
>
> Since the default method only calls a single method it will most likely be inlined.
>
> After inlining the check will be
>
> if (0 < 0 || b.length < 0 || 0 > b.length - b.length) {
> throw new ArrayIndexOutOfBoundsException();
> }
>
> Which will be optimized away so only the null check will remain.
>
> My microbenchmark shows no difference between implementing the method or relying on the default
> method.
Thanks for the clarification.
-Ulf
More information about the core-libs-dev
mailing list