51cc1e7cf4
The const buffers of the various implementations are now able to share the underlying memory. At least until they are forced not to. Const buffers will behave ust like normal buffers, except they start out as read-only. When they are made writable, or sliced, then they will allocate their own independent copy of the memory. That way, const buffers can have their contents changed, and behave just like normal buffers. The const-ness is a pure optimisation that should not have any externally observable behaviour. |
||
---|---|---|
.. | ||
CleanerDrop.java | ||
package-info.java | ||
UnsafeBuffer.java | ||
UnsafeMemory.java | ||
UnsafeMemoryManager.java | ||
UnsafeMemoryManagers.java |