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

Prevent Jvm entry through anything other than Jvm::start

Matthewacon opened this issue · comments

Jvm::start is the only guaranteed thread-safe entry point for Jvm execution. Users should be forced to invoke Jvm::start in order to enforce thread safety. If execution reaches the FakeJni::Jvm API and the Jvm has not yet started, a fatal error should be thrown.

This functionality has changed due to error handling.