dukeify / fake-jni

An implementation of the JNI and JVMTI with support for direct interaction between natively registered classes and JVM objects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Jvm::fatalError functionality

Matthewacon opened this issue · comments

Right now Jvm::fatalError will look for an invocation to Jvm::start when called. This should only happen when Jvm::isRunning is true. When Jvm::isRunning is false, and Jvm::currentVm is set, then either Jvm::attachLibrary or Jvm::removeLibrary has been invoked, and the unw_resume invocation should to point to whichever of the two was invoked.

Note: If Jvm::currentVm is not set and Jvm::isRunning is false, then the user entered into vm execution in an unsupported manner and error handling is up to them.