mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8224974: Implement JEP 352
Non-Volatile Mapped Byte Buffers Reviewed-by: alanb, kvn, bpb, gromero, darcy, shade, bulasevich, dchuyko
This commit is contained in:
parent
db359f11b5
commit
047b8bfeb7
53 changed files with 1400 additions and 69 deletions
|
@ -168,15 +168,16 @@ class Direct$Type$Buffer$RW$$BO$
|
|||
//
|
||||
protected Direct$Type$Buffer$RW$(int cap, long addr,
|
||||
FileDescriptor fd,
|
||||
Runnable unmapper)
|
||||
Runnable unmapper,
|
||||
boolean isSync)
|
||||
{
|
||||
#if[rw]
|
||||
super(-1, 0, cap, cap, fd);
|
||||
super(-1, 0, cap, cap, fd, isSync);
|
||||
address = addr;
|
||||
cleaner = Cleaner.create(this, unmapper);
|
||||
att = null;
|
||||
#else[rw]
|
||||
super(cap, addr, fd, unmapper);
|
||||
super(cap, addr, fd, unmapper, isSync);
|
||||
this.isReadOnly = true;
|
||||
#end[rw]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue