Bug in initThreads() in thread.c

Kim, Jongwon (freefish) freefish at cselab.snu.ac.kr
Wed Sep 9 21:05:39 PDT 1998


The only installed class library is Sun's JDK 1.1.6  in my computer.

Thanks,

Jongwon Kim

-----¿øº» ¸Þ½ÃÁö-----
º¸³½ »ç¶÷: David Smith <dsmith at algonet.se>
¹Þ´Â »ç¶÷: kaffe at rufus.w3.org <kaffe at rufus.w3.org>
³¯Â¥: 1998³â 9¿ù 10ÀÏ ¸ñ¿äÀÏ ¿ÀÀü 8:40
Á¦¸ñ: Re: Bug in initThreads() in thread.c


|Kim, Jongwon (freefish) wrote:
|> The location of exception is add method in java.lang.ThreadGroup.java with JDK1.1.6.
|> The exception occurred at calling createInitialThread("main") in thread.c.
|> The instance variable, threads is not null and length is 0.
|> So I modified to following line.
|> 
|> unhand(standardGroup)->threads = 0; // (HArrayOfObject*)newArray(ThreadClass, 0); by freefish
|> 
|> I don't understand why others did not complain of this.
|> Did I misunderstand that?
|
|You're supposed to use Klasses.jar instead of Sun's classes.  (You do 
|use the classes from JDK1.1.6 don't you, otherwise just forget I wrote
|this :-)
|
|The version of ThreadGroup.add(Thread t) in Klasses.jar would give an
|exception (I think) with threads = 0 and works fine with threads =
|(HArrayOfObject*)newArray(ThreadClass, 0).
|
|
|-- 
|David Smith
|


More information about the kaffe mailing list