Re: [kaffe] What is the rationale for Kaffe's VM memory limits? (The -mx and -ss switches.)

2003-03-14 Thread Mark J Roberts
Dalibor Topic: The patch has (at least) one problem, it relies on Runtime.exit() to print the map of stack traces. Apparently it seems to be hard to get freenet to exit(). So I'm not sure how to proceed from here: if it is possible to tell a freenet node to shut down through exit(), that

Re: [kaffe] What is the rationale for Kaffe's VM memory limits? (The -mx and -ss switches.)

2003-03-14 Thread Mark J Roberts
Mark J Roberts: I'll hack something together and reply with that stack trace map as soon as I have the time. I called System.exit() when Freenet was using over 150MB of memory. The output is attached. log.bz2 Description: Binary data

[kaffe] java.lang.ArrayIndexOutOfBoundsException thrown by Stack.push()

2003-03-13 Thread Mark J Roberts
Stack.push() should not be throwing this exception. Looks like an obvious bug. Any ideas? java.lang.ArrayIndexOutOfBoundsException at java.lang.Throwable.fillInStackTrace(Throwable.java:native) at java.lang.Throwable.init(Throwable.java:37) at

[kaffe] What is the rationale for Kaffe's VM memory limits? (The -mx and -ss switches.)

2003-03-13 Thread Mark J Roberts
I am sick and tired of manually overriding the heap size limit in order to run Freenet without hitting the arbitrary default 64MB limit. I just don't understand why these options are even there, or why they are not unlimited by default. It is _breaking_ applications. The operating system should

Re: [kaffe] File.createTempFile() creates files in /tmp with mode 0666!

2003-03-03 Thread Mark J Roberts
Jim Pick: From the looks of this, it does look somewhat undefined. I think we're doing what Sun does, but that makes me somewhat nervous. I can see how it could be considered correct if somebody uses a temp file location other than /tmp. However, since we default to /tmp (as does Sun),

Re: [kaffe] File.createTempFile() creates files in /tmp with mode 0666!

2003-03-03 Thread Mark J Roberts
Jim Pick: I think what we have here is that the call is secure, providing that the user has the correct umask set up for however the system administrator has set up the groups on their system. I don't see how you arrived at that conclusion. A user who is content to normally create

[kaffe] Two library fixes.

2003-02-12 Thread Mark J Roberts
(1) java 1.4 URLDecoder.decode() throws IllegalArgumentException. (2) java 1.4 Calendar.getTimeInMillis() is public. Index: libraries/javalib/java/net/URLDecoder.java === RCS file:

[kaffe] [PATCH] GregorianCalendar.add()

2002-11-07 Thread Mark J Roberts
--- libraries/javalib/java/util/GregorianCalendar.java +++ libraries/javalib/java/util/GregorianCalendar.java @@ -74,6 +74,7 @@ computeFields(); } fields[field] += amount; + isTimeSet = false; computeTime(); computeFields(); }