summaryrefslogtreecommitdiff
path: root/runtime/jni/java_vm_ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jni/java_vm_ext.h')
-rw-r--r--runtime/jni/java_vm_ext.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/jni/java_vm_ext.h b/runtime/jni/java_vm_ext.h
index 08de18b2ac..b97088aaf7 100644
--- a/runtime/jni/java_vm_ext.h
+++ b/runtime/jni/java_vm_ext.h
@@ -218,9 +218,12 @@ class JavaVMExt : public JavaVM {
static jstring GetLibrarySearchPath(JNIEnv* env, jobject class_loader);
private:
- // The constructor should not be called directly. It may leave the object in
- // an erroneous state, and the result needs to be checked.
- JavaVMExt(Runtime* runtime, const RuntimeArgumentMap& runtime_options, std::string* error_msg);
+ // The constructor should not be called directly. Use `Create()` that initializes
+ // the new `JavaVMExt` object by calling `Initialize()`.
+ JavaVMExt(Runtime* runtime, const RuntimeArgumentMap& runtime_options);
+
+ // Initialize the `JavaVMExt` object.
+ bool Initialize(std::string* error_msg);
// Return true if self can currently access weak globals.
bool MayAccessWeakGlobals(Thread* self) const REQUIRES_SHARED(Locks::mutator_lock_);