mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8336755: Remove unused UNALIGNED field from view buffers
Reviewed-by: alanb, liach, bpb
This commit is contained in:
parent
5a8861a3a1
commit
e716f5ed53
1 changed files with 2 additions and 8 deletions
|
@ -56,14 +56,6 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
{
|
||||
|
||||
#if[rw]
|
||||
|
||||
// Cached unaligned-access capability
|
||||
protected static final boolean UNALIGNED = Bits.unaligned();
|
||||
|
||||
// Base address, used in all indexing calculations
|
||||
// NOTE: moved up to Buffer.java for speed in JNI GetDirectBufferAddress
|
||||
// protected long address;
|
||||
|
||||
// An object attached to this buffer. If this buffer is a view of another
|
||||
// buffer then we use this field to keep a reference to that buffer to
|
||||
// ensure that its memory isn't freed before we are done with it.
|
||||
|
@ -74,6 +66,8 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
}
|
||||
|
||||
#if[byte]
|
||||
// Cached unaligned-access capability
|
||||
static final boolean UNALIGNED = Bits.unaligned();
|
||||
|
||||
private record Deallocator(long address, long size, int capacity) implements Runnable {
|
||||
private Deallocator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue