void ThreadObj::print_value_on(Stream* st) { st->print("Thread object for "); if (is_unstarted()) { tty->print("unstarted thread"); } else if (is_stillborn()) { tty->print("stillborn thread"); } else if (is_terminated()) { tty->print("terminated thread"); } else { Thread t = thread(); t.print_value_on(st); } }
void set_thread(Oop* value) { GUARANTEE(is_unstarted(), "thread should not be started yet"); obj_field_put(thread_offset(), value); }