if
that applies to all MIPS implementations.
As far as I know, all SGIs/IRIX are configured for big-endian.
David Daney
also support MIPS32 (o32 and n32).
FWIW, n32 is a 64bit ABI (although it is difficult to tell from its name) and
as such cannot run on 32-bit mips machines.
David Daney
In preparation for my next change, I committed this cleanup to
gnu/java/net/protocol/http/LimitedLengthInputStream.java.
2008-07-12 David Daney [EMAIL PROTECTED]
* gnu/java/net/protocol/http/LimitedLengthInputStream.java: Clean up
white space in entire file.
(handleClose): Remove
David Daney wrote:
In preparation for my next change, I committed this cleanup to
gnu/java/net/protocol/http/LimitedLengthInputStream.java.
Said change is not needed, the file is perfect as is, so I will leave it
just as the whitespace cleanup.
David Daney
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 08/07/12 17:56:32
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: LimitedLengthInputStream.java
Log message:
* gnu/java/net/protocol/http
the
sun/security variant and remove the gnu/java/security one.
Opinions?
Since we already have some sun.* packages, it seems fine to add more. I
would change everything over to refer to this new class and delete the
gnu/java/security one.
Just my $0.02,
David Daney
2008-06-03 Robert
to
allocate another array, we gain nothing over java.lang.StringBuilder
other than making the code more confusing. I am uncomfortable with this
change as well as the use of CPStringBuilder that makes it necessary.
Am I missing something here?
David Daney
to apply it.
Thanks,
David Daney
point to any benchmarks where this helps?
Thanks,
David Daney
David Daney wrote:
Andrew John Hughes wrote:
This adds our new non-copying variant of StringBuilder, which
I've called CPStringBuffer. It should be used internally where
we can get away with a non-synchronized non-copying string buffer.
ChangeLog:
I missed the change log part
this, but having to use reflection to invoke the
string constructor I think should be avoided.
David Daney
here. Other
than that, it seems like a good idea.
David Daney
that
should not be a problem.
The classpath version is 0.91, the jamVM 1.4.3.
Anybody a solution?
Try with current versions of classpath and jamVM. If the problem
persists, file a bug report.
David Daney
Stuart Ballard wrote:
On 10/8/07, Andrew John Hughes [EMAIL PROTECTED] wrote:
Anyone want to suggest a suitable name? ;)
Staying Alive?
I like it. Most excellent!
David Daney
for problems in an application. The
applications should add buffering themselves when appropriate.
David Daney
;
}
}
}
#endif
JCL_ThrowException (env, IO_EXCEPTION, strerror (errno));
}
Perhaps:
if ((errno == ENOTTY)
(fstat (fd, statBuffer) == 0)
S_ISREG (statBuffer.st_mode))
{
.
.
.
}
David Daney
is missing?
David Daney
guide, putting it on the web,
having clickable URLs, etc.
Any objections?
There should probably be some sort of make target to be able to generate
a plain text version. If someone needs to read INSTALL, they might not
know how to generate a version they can read.
David Daney
Tom Tromey wrote:
David == David Daney [EMAIL PROTECTED] writes:
David I just committed a patch to libgcj that fixes a race condition that
David could allow file descriptors to leak to sub-processes:
David http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31228
David I don't have the time to port
classpath hackers to
do so.
Thanks,
David Daney
call impl.create() from the Socket constructor?
David Daney
Regards,
Jeroen
Index: java/net/Socket.java
===
RCS file: /cvsroot/classpath/classpath/java/net/Socket.java,v
retrieving revision 1.61
diff -u -r1.61 Socket.java
--- java
'+'? The compiler converts this to String[Buffer|Builder] when it
generates the byte code. IMO this patch makes the code much more
difficult to understand with *no* improvement in efficiency.
David Daney
the warnings
emitted by ecj. But if they do, it *might* be worthwhile applying them
on those grounds.
David Daney
that there is no
difference on a benchmark that moves a lot of data through the changed
code, then I withdraw my objection.
David Daney
is that, in gcj for example, an array access is
translated in to a machine instruction that directly accesses the
desired element. Access through a java.nio.Buffer involves at least one
function call which is a much heavier weight operation.
David Daney
.
David Daney.
David Daney wrote:
Roman Kennke wrote:
Hi again,
On most free JVMs that I know of (libgcj), array accesses are much
faster than the corresponding actions on a java.nio.Buffer.
I don't think so. The normal bytebuffer is also only an array. The
accessor methods should not make much
Tom Tromey already did the heavy lifting here. This patch just tweaks
it a bit.
2006-12-21 David Daney [EMAIL PROTECTED])
* gnu/java/net/protocol/http/Headers.java: Update imports. Implement
IterableHeaders.HeaderElement.
(iterator): Make public.
* gnu/java/net/protocol/http
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/22 00:40:23
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: Headers.java Request.java
SimpleCookieManager.java
In the spirit of using the new generic type capability of Classpath, and
because I already did it while looking at the bug in Collecions, I offer
up this nice patch.
In two of the HTTP support classes I converted a couple of things to use
generics.
2006-12-14 David Daney [EMAIL PROTECTED
Mark Wielaard wrote:
We are proud to announce the release of GNU Classpath 0.93 Dreamland
Most excellent! Now in addition to having a version number, we have a
wacky word version name to go with it. These version names are sure to
bring many benefits in the future.
David Daney
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/15 07:30:23
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: HTTPURLConnection.java Headers.java
Log message:
* gnu/java/net/protocol
This fixes the mauve regression noted by Paul Jenner for the
java.net.URLConnection.getHeaderFields test.
A case of slightly over zealous genericization.
2006-12-13 David Daney [EMAIL PROTECTED]
* java/lang/Collections.java
(UnmodifiableEntrySet.toArray): Fix bad casts
will look at it.
+FAIL: java.net.HttpURLConnection.timeout
The timeout test passes for me on jamvm. I put a hard coded address in
the test to check for connection timeouts. If your local net is the
10.x.x.x network it might fail because of that.
David Daney.
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/14 07:24:43
Modified files:
. : ChangeLog
java/util : Collections.java
Log message:
* java/lang/Collections.java
with jamvm and
compare to cacao results.
Thanks Paul,
Although I am not responsible for the Collections things, I do have an
interest in the HTTP support. I will try to look at it tonight.
David Daney
more like an InternalError than the super-generic
RuntimeException.
David Daney
Jeroen Frijters wrote:
David Daney wrote:
Jeroen Frijters wrote:
throw new RuntimeException(error instantiating default
socket factory:
- + ex.toString());
That sounds more like an InternalError than the super-generic
of testing and if no objections are raised.
2006-12-08 David Daney [EMAIL PROTECTED]
* native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd):
New method.
(Java_gnu_java_nio_VMChannel_read__ILjava_nio_ByteBuffer_2): Throw
SocketTimeoutException if a blocking socket
David Daney wrote:
My new mauve test for the HTTP timeout patch I posed earlier this week
was failing miserably for me with jamvm/FC6-x86_64. I turns out the the
native socket code was slightly lacking. This patch fixes it up some.
I will commit both this patch and the HTTP timeout patch
David Daney wrote:
This patch adds the missing [get|set]ReadTimeout methods to
java.net.URLConnection. It is lightly tested, but I will create some
mauve tests for it.
If there are no objections, I will commit it after a couple more of days
of testing.
2006-12-02 David Daney [EMAIL
I just committed this:
2006-12-08 David Daney [EMAIL PROTECTED]
* NEWS: Mention URLConnection.[get|set]ReadTimeout.
I just committed this to fix my previous commit.
2006-12-08 David Daney [EMAIL PROTECTED]
* native/jni/java-nio/gnu_java_nio_VMChannel.c (is_non_blocking_fd):
Fix comment.
Index: native/jni/java-nio/gnu_java_nio_VMChannel.c
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/08 20:37:36
Modified files:
native/jni/java-nio: gnu_java_nio_VMChannel.c
Log message:
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(is_non_blocking_fd
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/08 20:38:52
Modified files:
. : ChangeLog
Log message:
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(is_non_blocking_fd):
New method
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/08 20:45:43
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: HTTPConnection.java
HTTPURLConnection.java
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/08 21:17:43
Modified files:
. : ChangeLog NEWS
Log message:
* NEWS: Mention URLConnection.[get|set]ReadTimeout.
CVSWeb URLs:
http://cvs.savannah.gnu.org
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/12/09 06:12:15
Modified files:
. : ChangeLog
native/jni/java-nio: gnu_java_nio_VMChannel.c
Log message:
* native/jni/java-nio
addrlen)
{
int retcode;
do
{
retcode = connect (fd, addr, addrlen);
}
while (retcode == EINTR);
return retcode;
}
Except that you should probably also check if the thread was interrupted
as the original patch does for read and write.
David Daney.
This patch adds the missing [get|set]ReadTimeout methods to
java.net.URLConnection. It is lightly tested, but I will create some
mauve tests for it.
If there are no objections, I will commit it after a couple more of days
of testing.
2006-12-02 David Daney [EMAIL PROTECTED]
* gnu
response is deemed necessary, this one seems good.
It is fairly content free, which I think is all you can have given the
constraints that it is a press release *and* from a moderatly large free
software project.
David Daney
).
That is not to say that there are not problems with java.net.URL, but I
have used the built-in http protocol handlers with no problems.
David Daney
://gcc.gnu.org/bugzilla/show_bug.cgi?id=29604
Yeah, I know it is against libgcj, but that is where I will fix it *if*
I have time. Someone else will have to work on the classpath part.
David Daney
support in the kernel. Since even on
Linux based systems the ipv6 support is optional, we should still have a
working java runtime if ipv6 is not configured.
David Daney
the test open a different socket each time by binding to
the wildcard address and allowing the OS to choose the port? This is
what I did in gnu.testlet.java.net.HttpURLConnection.TestHttpServer.
David Daney
?
If 'static inline' works on GCC and on other compilers, it should be
fine to use that.
Should I commit a patch?
I think so. GCC changed its behavior with respect to this issue between
the 3.3 and 3.4 versions if my memory serves me.
David Daney
, new InetSocketAddress(remote, port));
+ }
+catch (InterruptedIOException ioe)
+ {
+// Ignore; interrupted system call.
+ }
+ }
}
How does the while loop exit?
Just wondering,
David Daney
I just committed the fix for said PR. A test for this was also added to
mauve.
2006-09-20 David Daney [EMAIL PROTECTED]
PR classpath/28661
* gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Add
default content-type for POST method.
Index: gnu/java/net
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/09/20 18:18:34
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: HTTPURLConnection.java
Log message:
PR classpath/28661
.
Also I am running gcj/libgcj cross compiler and do not know how this
patch will interact with libgcj.
Well those are my concerns. I guess if things get broken by this we can
add a configure switch to manually disable it.
David Daney.
would hang (instead of immediately
returning EOF).
Earlier today I committed a mauve testcase for this problem.
Do we want to bring this into libgcj before this would be imported also?
2006-08-11 David Daney [EMAIL PROTECTED]
PR classpath/28580
* gnu/java/net/protocol/http
CVSROOT:/sources/classpath
Module name:classpath
Changes by: David Daney daney 06/08/11 20:51:20
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: Request.java
Log message:
PR classpath/28580
* gnu/java
If not, I will probably give it a go.
Thanks,
David Daney
to me. I beleive this is the prefered idiom for clone() in
many cases. It seems that this is probably one of them, but not being
that familiar with this class I cannot say for sure.
David Daney.
instance).
The check is for readDisplayPixels, so something that is not visible
would seem to be exempt.
David Daney.
The I think the techniques propesed by Per Bothner in that thread are
especially interesting.
David Daney.
until the GCJ infrastructure needed to build it
is ready to be committed to the GCC trunk.
Well that's my $0.02.
David Daney.
strong
feelings one way or the other.
David Daney
to see what happens.
If GCJ is the only thing effected, I apologize for the noise.
David Daney
of effort in this area.
David Daney.
] + start[sub]; i start[0] + end[sub]; i++)
+ sb.append(matchedCharIndexed.charAt(i));
+ return sb.toString();
+ }
Use StringBuilder instead of StringBuffer.
David Daney.
CVSROOT:/sources/classpath
Module name:classpath
Branch:
Changes by: David Daney [EMAIL PROTECTED] 06/03/02 00:25:21
Modified files:
. : ChangeLog
java/net : URL.java
Log message:
* java/net/URL.java (URL(URL, String
, I don't think we require the FSF's
permission. We are the authors of Classpath and therefore retain
copyright privledges.
IANAL, but I could swear that I signed over copyright to the FSF long ago.
David Daney
Wolfgang Baer wrote:
Hi David,
David Daney wrote:
Wolfgang Baer wrote:
Hi,
I wrote mauve tests for the various HttpURLConnection request properties
methods and notices some minor bugs in the new Headers implementation.
The patch fixes these and adds documentation to this class in more
no exception. It is basically a small
sacrifice for the greater good of wider use of free software.
David Daney.
works around the breakage does
not change the fact that it is broken.
A better solution might be to hook all system calls that can block.
David Daney.
Ian Rogers wrote:
Currently, to the best of my knowledge, classpath's gtk peer code isn't
working with any JVM with M-to-N threading
Ian Rogers wrote:
The JNI provides mappings to monitor entry and exit. From google I found
this document:
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniref.html#thrd
That is some tutorial. Not a specification on how JNI, JVMs or
threading systems work.
I quote:
putAll() is broken,
then the change should be made. But change just for change's sake I am
not so sure.
David Daney
solve the issue Christian was seeing.
Sorry about that :( Your fix is obviously correct.
David Daney.
(returning the header names in
their original case in keySet() etc).
In order for the map to be at all useful, I would have to agree.
However if we mimic Sun's brilliant implementation (as shown by
Wolfgang's testing), we can (and must) just do it the easy way.
David Daney.
David Daney wrote:
PR libgcj/26487 shows problems with our existing header handling.
I hacked up the attached patch, which needs more testing (please test it!)
The basic problem is that the headers were being held in a map which
scrambled them up if there were more than one header of the same
Mark Wielaard wrote:
On Wed, 2006-03-01 at 10:15 -0800, David Daney wrote:
Andrew Haley wrote:
Mark Wielaard writes:
Does the dacapo xalan work for you with the following patch?
diff -u -r1.36 ResourceBundle.java
--- java/util/ResourceBundle.java 23 Oct 2005 17:04:46 -
Jeroen Frijters wrote:
David Daney wrote:
We cannot violate the JLS! A method that throws a checked exception
without declaring it is a bug.
Rubbish! There are several ways to throw checked exceptions:
http://weblogs.java.net/blog/crazybob/archive/2004/09/dont_try_this_a.ht
ml
Rubbish
David Daney wrote:
PR libgcj/26487 shows problems with our existing header handling.
I hacked up the attached patch, which needs more testing (please test it!)
The basic problem is that the headers were being held in a map which
scrambled them up if there were more than one header of the same
);
! }
! else
! l.add(e.value);
The second value must be added before. The test show
that SUN always adds the last received value for a
key first.
l.add(0, e.value);
Good catch!, I will make this change.
David Daney.
Wolfgang Baer wrote:
David Daney wrote:
Wolfgang Baer wrote:
Nice to see you have removed that now useless inner Header class. This
was one
of the comments I wanted to make. I worked this day on mauve testcases
for this
rewrite.
These exposed two small bugs in Headers.java:
Index: gnu
CVSROOT:/sources/classpath
Module name:classpath
Branch:
Changes by: David Daney [EMAIL PROTECTED] 06/02/27 23:37:20
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: HTTPURLConnection.java
Log message:
PR classpath/25851
Olivier Jolly wrote:
Chris Burdess wrote:
David Daney wrote:
With this test case (just added to mauve):
import java.net.URL;
public class URLTest {
public static void main(String []args) {
try {
URL url = new URL(http://www.foo.bar.com;);
url = new URL
David Daney wrote:
With this test case (just added to mauve):
import java.net.URL;
public class URLTest {
public static void main(String []args) {
try {
URL url = new URL(http://www.foo.bar.com;);
url = new URL(url, _urn:testing
documented.
David Daney
CVSROOT:/sources/classpath
Module name:classpath
Branch:
Changes by: David Daney [EMAIL PROTECTED] 06/02/27 22:50:33
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: ChunkedInputStream.java
Log message:
PR classpath/26312
was to just hold the headers in a list. This makes some
searching operations less efficient, but seems the best way to keep the
headers from being combined.
Let me know what you think.
2006-02-28 David Daney [EMAIL PROTECTED]
* gnu/java/net/protocol/http/HTTPURLConnection.java
As per the PR, HTTPURLConnection.getRequestProperties() was returning a
Map with Strings as values instead a Map of Lists of Strings as values.
I just committed this patch:
2006-02-27 David Daney [EMAIL PROTECTED]
PR classpath/25851
* gnu/java/net/protocol/http
CVSROOT:/sources/classpath
Module name:classpath
Branch:
Changes by: David Daney [EMAIL PROTECTED] 06/02/24 20:38:57
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: HTTPConnection.java
David Daney wrote:
Currently we keep a HTTP keep-alive connection open forever.
Although allowed by RFC 2616, this is forbidden by several other
specifications derived from it (DLNA and UPnP). In addition to being
incompatible with these other specification, it is a waste of resources
OK today really is not my day WRT e-mail. I am going to try this one
more time.
Original Message
Subject: FYI: ChunkedInputStream.read()
Date: Thu, 16 Feb 2006 13:47:13 -0800
From: David Daney [EMAIL PROTECTED]
To: David Daney [EMAIL PROTECTED]
CC: Classpath Patches
.
Comments?
2006-02-16 David Daney [EMAIL PROTECTED]
PR classpath/26312
* gnu/java/net/protocol/http/ChunkedInputStream.java (imports): Cleaned
up.
(ChunkedInputStream): Extend InputStream.
(in): New field.
(headers): Moved to top of class
CVSROOT:/sources/classpath
Module name:classpath
Branch:
Changes by: David Daney [EMAIL PROTECTED] 06/02/16 21:37:24
Modified files:
. : ChangeLog
gnu/java/net/protocol/http: ChunkedInputStream.java
Log message:
PR classpath/26312
David Daney wrote:
+class GetPropertiesAction
+ implements PrivilegedAction
+{
+ public Object run()
+ {
+String ttl = System.getProperty(classpath.net.http.keepAliveTTL);
+connectionTTL = (ttl != null ttl.length() 0) ?
+ 1000 * Math.max(1
Wolfgang Baer wrote:
Hi all,
Wolfgang Baer wrote:
Hi,
David Daney wrote:
Perhaps make isError() a member of Response
Yes, I also thought of this. Its in HTTPURLConnection because there is
already a method isRedirect(Response r). Both should be moved to Response.
Committed as attached
1 - 100 of 157 matches
Mail list logo