jjfiv / dalvik-js

Project for CS 691ST - Dalvik VM implementation in Javascript
23 stars 11 forks source link

Badly formatted code could cause an infinite loop #108

Closed jjfiv closed 12 years ago

jjfiv commented 12 years ago

Right now, threads are created if something that subclasses Thread is instantiated by the VM; these threads are put in a state called "NEW" and aren't executed.

They are, however part of the thread count, so the VM would not terminate properly (i.e. infinite loop) iff threads are created and never started.

This is low priority because it would require a broken file or some kind of other error in order to reach this state.

jjfiv commented 12 years ago

There is an assert in place for this. Not strictly JVM behavior, but makes sense in our model.