mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory
Reviewed-by: alanb
This commit is contained in:
parent
75f3ec77e4
commit
0312694c46
5 changed files with 38 additions and 11 deletions
|
@ -847,6 +847,11 @@ public abstract sealed class Buffer
|
|||
return new HeapByteBuffer(hb, -1, 0, capacity, capacity, offset, segment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ByteBuffer newDirectByteBuffer(long addr, int cap) {
|
||||
return new DirectByteBuffer(addr, cap);
|
||||
}
|
||||
|
||||
@ForceInline
|
||||
@Override
|
||||
public Object getBufferBase(Buffer buffer) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue