This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] buglets in file locking


>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:

Bryce> Hi Casey,
Bryce> Casey Marshall wrote:

>> Hi,
>>
>> This patch fixes a couple of buglets in the FileLock implementation
>> in libgcj. Both were flipped meanings, one that a file lock is
>> valid only while the associated channel is open, and another that a
>> shared lock maps to F_RDLCK. The original implementation assumed
>> the opposite.
>>
>> 2004-11-11  Casey Marshall  <csm@gnu.org>
>>
>> * gnu/java/nio/FileLock.java (isValid): locks are valid if the
>> channel is open.
>> * gnu/java/nio/channels/natFileChannelPosix.cc (lock): use
>> 'F_RDLCK' for shared locks, 'F_WRLCK' for exclusive locks.
>>

Bryce> Looks good. Please check this in. Thanks!

I don't have write access.

-- 
Casey Marshall || csm@gnu.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]