Page size is an os property but in java we do not have a API to get the vm pagesize. Use Unsafe can get the pagesize number, or use Runtime which is dependent on underlying operation system. The new added method will use WhiteBox to use JVM to get the native page size.