Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save CRC32C Netty allocation to trigger ADLER32 and CRC32 reflective …
…initialization (#13836) Motivation: Allocating a new CRC32C instance cause ByteBufChecksum static init to kick-in, performing reflective lookups of Adler32 and Crc32 OpenJDK methods, although not needed Modification: Place each of the reflective methods in their own class holders, to let them kick-in only if directly accessed Result: Recheability native image analysis and JIT CRC32C usage won't trigger initializing unused classes or native libraries
- Loading branch information