Threads don't work in 0.9.0

manoj at manoj at
Wed May 21 11:26:26 PDT 1997


> I got the new kaffe distribution and noticed that Thread-package doesn't
> work at all on my installation. For example, running DeadThread from the
> kaffe distribution results in the following:
> java.lang.NullPointerException
> at java/lang/Thread.init(line unknown, pc 0x80a3cda)
> at java/lang/Thread.<init>(line unknown, pc 0x80a4d6f)
> at btest.<init>(line unknown, pc 0x80d296d)
> at DeadThread.main(18)

        This is happening because the currentThread function (in kaffe) is
always returning NULL. I fixed it with the following change:
        Hjava_lang_Thread* currentThread;
 on line 16 of packages/ by
        extern Hjava_lang_Thread* currentThread;

        I think the fix is correct though I haven't yet checked it for

Office:                          Residence:
        IBM Corporation,                   Valley West Apartments,
        Almaden Research Center,           2300 Lucretia Ave #3,
        San Jose, CA 95120                 San Jose, CA 95122
        Ph. (408)927-1760                  Ph. (408)295-7501

More information about the kaffe mailing list