Commit e17a9b6e authored by neoexpert's avatar neoexpert

reformat

parent 1570f255
......@@ -4,6 +4,7 @@ target/
.idea
cp/
jvm.iml
root.iml
the-file-name
huhu
*.class
......
......@@ -82,7 +82,6 @@ public class MyThread {
}
public int newInstance2(AClass c, String method, int... args) {
Method m = (Method) cE.cC.getMyMethod(method);
if (m == null) throw new RuntimeException("constructor " + method + " not found");
Frame cF = new Frame(m);
......@@ -167,8 +166,6 @@ public class MyThread {
return cE.stack.peek().getCurrentLine();
}
private long sleep_until;
public void sleep(long d){
sleep_until=System.currentTimeMillis()+d;
......@@ -189,7 +186,6 @@ public class MyThread {
public MyThread(AClass c, String name, boolean createthread) {
this.name=name;
cE.cC = c;
if(createthread)
if (name != null && JVM.system_thread_group != 0)
......@@ -205,6 +201,7 @@ public class MyThread {
private boolean daemon=false;
private int priority=5;
private int psteps=128;
public void setPriority(int priority){
this.priority=priority;
psteps=priority*64;
......@@ -217,9 +214,11 @@ public class MyThread {
public boolean isDaemon(){
return daemon;
}
public void _wait(){
waiting=true;
}
private boolean waiting=false;
public boolean isWaiting(){
return waiting;
......@@ -235,7 +234,6 @@ public class MyThread {
t.this_thread = this_thread;
Heap.makePermanent(this_thread);
t.run();
}
public void pushFrame(Frame prevFrame, Method m) {
......@@ -253,7 +251,6 @@ public class MyThread {
cE = osce.cloneme(cE);
break;
}
}
// int pc=0;
......@@ -316,7 +313,6 @@ public class MyThread {
public static int s = 0;
@Override
public String toString() {
return name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment