RFR (S): JDK-8191328: Avoid unnecessary overhead in CRC32C

Dmitry Chuyko dmitry.chuyko at bell-sw.com
Wed Nov 15 16:17:44 UTC 2017

On 11/15/2017 06:38 PM, Alan Bateman wrote:
> On 15/11/2017 15:27, Dmitry Chuyko wrote:
>> Hello,
>> Please review a performance enhancement for java.util.CRC32C pure 
>> Java implementation.
> Moving the nativeOrder out of the loop make sense but I'm curious 
> about the context for improving this implementation. You mentioned it 
> helps -Xcomp but that is typically for testing. Is there some 
> environment that is disabling the HotSpot intrinsic?
There may be no intrinsic (zero, arm) or there may be no Hotspot (J9, 
Excelsior, Android).
But I spotted it in -Xcomp because it was unclear why people make their 
own pure Java implementations instead of using and contributing to 
core-lib classes.

> -Alan

More information about the core-libs-dev mailing list