I have created and tested a patch for Japhar that uses native state
instead of internal fields for both Class and Thread.  I tested it on
ThreadTest, ClassCastException and ClassForNameException, and all three
passed perfectly.  Something is wrong with my DejaGNU installation, so it
was difficult at best to run all the tests.  Nonetheless, I went through a
few of them (probably 9 or 10 including the above three) and they all passed
except Erastosthenes' Sieve, which wasn't passing before anyway.
Incidentally, I compiled all of them with javac using Japhar, and that
worked too.
     This patch should make Japhar run a little faster for operations
involving classes and threads, and it will have the side benefit of
eliminating two tasks to be done for Classpath integration.
     I would suggest that you use NSA for Reflection as well.
{To/From}Reflected{Field/Method} is all I know of that you'll have to
change.

     The patch is included as an attachment since it's really quite small.
As long as your directory is named "japhar" you should be able to do "patch
< japhar-nsa.diff" just above the directory.

--John Keiser

P.S. Petter--thank you very much for moving those initialization functions
out of interploop.c ... I was continually having to recompile the whole file
there during testing of the init functions, and it's really quite a large
file.

japhar-nsa.diff

Reply via email to