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: FYI: Patch: java nio file locking


Hi Per,

>> I would prefer a single natFileChannelImpl.cc too but the windows people
>> namely Mohan Embar requested the split.
>
>I wonder why. It means it makes it difficult to share code in the native 
>methods.  That in turn encourages extra methods that do some checking in 
>Java before calling a native methods htat does the work.

I'd prefer split files for the same reason we decided to split the networking
files.

Initially, I was resistant to this idea:

http://gcc.gnu.org/ml/java/2003-02/msg00168.html

...but this post convinced me otherwise:

http://gcc.gnu.org/ml/java/2003-01/msg00093.html

The memory-mapped I/O code will probably be radically different between
POSIX and Win32. I'd be interested in weighing the amount of common code
versus OS-specific code in an #ifdef-ed solution. And putting on my
Win32 libgcj reviewer hat, I'm not really interested in having to move heaven
and earth if I want to put in a Win32-specific change, but have to stress
out about breaking the POSIX world.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/




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