classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cp-patches] [Patch] support for direct buffers


From: Jeroen Frijters
Subject: RE: [cp-patches] [Patch] support for direct buffers
Date: Sun, 21 Nov 2004 13:01:40 +0100

Hi,

I committed my changes too. Note that I clarified and fixed the
semantics of ownership. See the attached patch for details.

Regards,
Jeroen

2004-11-21  Jeroen Frijters  <address@hidden>

        * java/nio/DirectByteBufferImpl.java
        (ReadOnly): New inner subclass.
        (ReadWrite): New inner subclass.
        (owner): Made final and private.
        (address): Made final.
        (DirectByteBufferImpl(int)): New constructor.
        (DirectByteBufferImpl(Object,RawData,int,int,int)): New
constructor.
        (DirectByteBufferImpl(Object,RawData,int,int,int,boolean)):
Removed.
        (allocate): Modified to instantiate ReadWrite subclass.
        (finalize): Fixed to only free the buffer, if we own it.
        (put): Removed read-only check.
        (slice, duplicate): Modified to instantiate appropriate
subclass.
        (isReadOnly): Removed.
        * java/nio/MappedByteBufferImpl.java
        (slice, duplicate): Modified to instantiate appropriate
        DirectByteBufferImpl subclass.

Attachment: direct.patch
Description: direct.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]