JAR files

2000-03-21 Thread Timothy Stack
hi, I've been working on a small rewrite of the JAR file code in kaffe/kaffevm/jar.* and I have some questions. The new code is mostly just a cleanup of the older stuff, the directory entries are read a little faster and the entries are stored in a hash table instead of a linked list. The

Re: Kaffe having trouble with gnujsp.jar

2000-04-03 Thread Timothy Stack
sballard@rainbow:~/kaffe$ jar tvf /usr/share/java/gnujsp.jar java.lang.UnsatisfiedLinkError: Failed to locate native function: java/util/zip/Inflater.init(Z)V at kaffe.util.zip.SwitchInflater.init(SwitchInflater.java:23) at

stack overflow interacts poorly with classloaders

2000-06-12 Thread Timothy Stack
hi, I've run into an odd problem that I don't know quite how to fix. Basically, a stack overflow isn't handled particularly well, especially when there are class loaders involved. Since we execute a good deal of code to throw the exception it eats up even more stack and we risk going past the

minor java.util.TreeMap bug

2000-09-25 Thread Timothy Stack
hi, I don't know if this is a real bug or not, but in java.util.TreeMap there's this line in deleteNode: 325:x.parent = y.parent; The problem is that x can be NIL which is a global variable, which seems bad. One might think a quick fix would be to test for NIL and not set

Re: minor java.util.TreeMap bug

2000-09-25 Thread Timothy Stack
I think this is OK because NIL.parent is never actually used. I believe it does though, at the end of deleteNode it calls deleteFixup with `x', which could be NIL. Then in deleteFixup it performs the following check, x == x.parent.left. In fact, if you add a check for NIL in delete node

Re: minor java.util.TreeMap bug

2000-09-26 Thread Timothy Stack
bah, my original reply seems to have vanished... Running this code shows that deleteFixup() is indeed often called with x == NIL; however, that doesn't seem to cause any problems. Hmm... but there are lines in deleteFixup which change the color of the parent: 393:

Re: minor java.util.TreeMap bug

2000-09-26 Thread Timothy Stack
Hmm.. here is the code that TreeMap.java was based on: http://wannabe.guru.org/alg/node21.html If there is a problem, then it should have the same bug. I'll look at it more... Running this code shows that deleteFixup() is indeed often called with x == NIL; however, that doesn't seem

Re: TreeMap

2000-09-26 Thread Timothy Stack
I've checked in that patch.. but here's a question. Why doesn't kaffe (with the old TreeMap) run out of memory when the program below is run? Maybe just chance? TreeMap t = new TreeMap(); for (int i = 0; i 1000; i++) { Integer value

Re: Kaffe/Alpha - bug fix ? finally?

2000-10-10 Thread Timothy Stack
Finally it seems like I might have fixed the assertion failure that has been bothering me on my Linux/Alpha box. which assert? In gcRealloc():kaffe/kaffevm/mem/gc-incremental.c line 1026 it looks like the size of memcpy should be size instead of osize. If the osize (original/old size ?)

Backporting JanosVM fixes to Kaffe

2002-03-18 Thread Timothy Stack
howdy, So, as you might've seen we just released a new version of the JanosVM, which is a modded version of Kaffe. For the most part we haven't changed much in the original code base, but there have been a number of fixes and added features that would be nice to port back to Kaffe.

Re: Backporting JanosVM fixes to Kaffe

2002-03-19 Thread Timothy Stack
On Monday 18 March 2002 21:47, Jim Pick wrote: On Mon, Mar 18, 2002 at 12:55:30PM -0700, Timothy Stack wrote: I can provide a diff between a recent Kaffe and JanosVM, so it will mostly be a matter of pulling out the good stuff and ignoring the rest. Good stuff. I'll definitely take

Re: Release

2002-03-25 Thread Timothy Stack
- Solve random SEGV on NetBSD/PowerPC. I don't know. Could someone verify if it has been solved? - Solve random (and hard to reproduce) SEGV on FreeBSD/Intel. I haven't found anything in the ChangeLog about it. Could anyone provide more information? I assume they both refer to