Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nachos.machine.AssertionFailureError

496 views
Skip to first unread message

huilin li

unread,
Mar 1, 2001, 12:07:23 AM3/1/01
to
When I run nachos, get such errors:

nachos 5.0j initializing... config interrupt timer elevators user-check
grader
*** thread 0 looped 0 times
*** thread 1 looped 0 times
*** thread 0 looped 1 times
*** thread 1 looped 1 times
*** thread 0 looped 2 times
*** thread 1 looped 2 times
*** thread 0 looped 3 times
*** thread 1 looped 3 times
*** thread 0 looped 4 times
*** thread 1 looped 4 times
nachos.machine.AssertionFailureError
at nachos.machine.Lib.assert(Lib.java, Compiled Code)
at nachos.threads.KThread.sleep(KThread.java, Compiled Code)
at nachos.threads.KThread.finish(KThread.java, Compiled Code)
at nachos.threads.KThread.runThread(KThread.java, Compiled Code)

at nachos.threads.KThread.access$0(KThread.java, Compiled Code)
at nachos.threads.KThread$1.run(KThread.java, Compiled Code)
at nachos.machine.TCB.threadroot(TCB.java, Compiled Code)
at nachos.machine.TCB.access$0(TCB.java, Compiled Code)
at nachos.machine.TCB$1.run(TCB.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)


What does this mean??
I just changed KThread.java, Alarm.java and Conditon2.java. these 3
files.

--Thanks

Matt Welsh

unread,
Mar 1, 2001, 12:28:30 AM3/1/01
to
It means there is a bug in your code! Turn off the JIT compiler and look
at the reasons why the assertion is failing.

In article <3A9DD90B...@po.eecs.berkeley.edu>,

huilin li

unread,
Mar 1, 2001, 1:05:50 AM3/1/01
to
JIT compiler?
How to turn off it?
Would you please explain it?
I have no clue at all.
Thanks!

--huilin

Matt Welsh

unread,
Mar 1, 2001, 1:13:28 AM3/1/01
to
Try
setenv JAVA_COMPILER none

or
java -Djava.compiler=none nachos.machine.Machine

This will disable the JIT and turn those 'Compiled Code' messages into
line numbers.

In article <3A9DE6BE...@po.eecs.berkeley.edu>,

0 new messages