Commit fe0e5d3e authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Fix BufferTest#testFreed.

Each DirectByteBuffer now has a MemoryRef object associated with it.
This MemoryRef is shared across its duplicates and slices.

Also contains a few other surrounding cleanups :
- FileChannelImpl now allocates the DirectByteBuffer directly.
- Removed a pointless constructor from DirectByteBuffer.
- Removed unnecessary (pos << 0) shifts.

bug: 26020981
Change-Id: I573b48e621667c3cc2d78287678fba240783603d
parent e4297a33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment