mozilla / pluotsorbet

[ARCHIVED] PluotSorbet is a J2ME-compatible virtual machine written in JavaScript.
GNU General Public License v2.0
237 stars 46 forks source link

Start the VM before the FS is initialized #1871

Open marco-c opened 9 years ago

marco-c commented 9 years ago

1862 removed the optimization introduced in #1201 for correctness, but introduced a small regression in some cases.

We should be able to start the VM before the FS is initialized, we just need to add a barrier somewhere (a barrier that requires the VM and the FS to be initialized before executing main).

mykmelez commented 9 years ago

Perhaps we could add the barrier into JVM.startIsolate.