File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/java.base/share/classes/java/nio Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,6 @@ class Direct$Type$Buffer$RW$$BO$
5656{
5757
5858#if[rw]
59-
60- // Cached unaligned-access capability
61- protected static final boolean UNALIGNED = Bits.unaligned();
62-
63- // Base address, used in all indexing calculations
64- // NOTE: moved up to Buffer.java for speed in JNI GetDirectBufferAddress
65- // protected long address;
66-
6759 // An object attached to this buffer. If this buffer is a view of another
6860 // buffer then we use this field to keep a reference to that buffer to
6961 // ensure that its memory isn't freed before we are done with it.
@@ -74,6 +66,8 @@ class Direct$Type$Buffer$RW$$BO$
7466 }
7567
7668#if[byte]
69+ // Cached unaligned-access capability
70+ static final boolean UNALIGNED = Bits.unaligned();
7771
7872 private record Deallocator(long address, long size, int capacity) implements Runnable {
7973 private Deallocator {
You can’t perform that action at this time.
0 commit comments