mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
Merge
This commit is contained in:
commit
51e14f2e2a
48 changed files with 868 additions and 227 deletions
|
@ -793,7 +793,7 @@ public abstract class Buffer {
|
|||
|
||||
@Override
|
||||
public ByteBuffer newHeapByteBuffer(byte[] hb, int offset, int capacity, MemorySegmentProxy segment) {
|
||||
return new HeapByteBuffer(hb, offset, capacity, segment);
|
||||
return new HeapByteBuffer(hb, -1, 0, capacity, capacity, offset, segment);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -203,7 +203,7 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
{
|
||||
#if[rw]
|
||||
super(mark, pos, lim, cap, segment);
|
||||
address = db.address() + off;
|
||||
address = ((Buffer)db).address + off;
|
||||
#if[byte]
|
||||
cleaner = null;
|
||||
#end[byte]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue