This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: new methods in gnu.java.net.Plain(Datagram)SocketImpl ?
- From: Tom Tromey <tromey at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: Michael Koch <konqueror at gmx dot de>, green at redhat dot com, java-patches at gcc dot gnu dot org
- Date: 22 Sep 2003 12:48:45 -0600
- Subject: Re: Patch: new methods in gnu.java.net.Plain(Datagram)SocketImpl ?
- References: <64544YZV4WPJ5YOL525197N2EJFDB.3f6c55ac@p733>
- Reply-to: tromey at redhat dot com
>>>>> "Mohan" == Mohan Embar <gnustuff@thisiscool.com> writes:
Mohan> What ever became of this?:
Mohan> http://gcc.gnu.org/ml/java/2003-04/msg00242.html
As I understand it, this would change us from having final methods to
virtual methods for everything in FileDescriptor. With the new ABI,
that's unlikely to be a performance penalty.
And it does seem a bit cleaner.
There are two open questions, still:
- What is the security model?
- Will this approach be suitable for java.nio?
And, I think, this really needs to be discussed and implemented in
classpath first.
Some of the sample code (AG supplied some, if you read through the
thread you can find a link) is kind of gross, imo. For instance, now
FileInputStream has two fields, "fd" and "pfd". Other aspects of the
code are clearly cleaner though, for instance "PlatformFileDescriptor"
is a nice abstract base class.
Tom