git: openjdk/jdk-sandbox: simple-buffers: First round of performance work:

Chris Hegarty chris.hegarty at oracle.com
Fri Jan 29 11:23:34 UTC 2021


Changeset: 5f95b9c2
Author:    Chris Hegarty <chris.hegarty at oracle.com>
Date:      2021-01-29 11:22:11 +0000
URL:       https://git.openjdk.java.net/jdk-sandbox/commit/5f95b9c2

First round of performance work:
1) replace `hb` with `base()` to provide the sharper type.
2) Add ForceInline sparingly
3) Provide an static arrayBaseOffset for each carrier, to improve bulk operations

! src/java.base/share/classes/java/nio/AbstractBufferImpl.java
! src/java.base/share/classes/java/nio/Buffer.java
! src/java.base/share/classes/java/nio/DirectByteBuffer.java
! src/java.base/share/classes/java/nio/X-Buffer.java.template



More information about the jdk-sandbox-changes mailing list