private static final void setPriority(Thread instance, int priority) {
((VmThread) instance.vmThread).setPriority(priority);
}
private static final boolean isRunning(Thread instance) {
VmThread vmt = (VmThread) instance.vmThread;
return vmt.isRunning() || vmt.isYielding();
}