Initialize the VM will full debugging for now

This commit is contained in:
Sebastian Dröge 2012-08-23 17:30:12 +02:00
parent d7148efb8e
commit 686b9cf2fa

View file

@ -147,13 +147,18 @@ initialize_java_vm (void)
} else {
JNIEnv *env;
JavaVMInitArgs vm_args;
JavaVMOption options[1];
JavaVMOption options[4];
options[0].optionString = "-verbose:jni";
options[1].optionString = "-verbose:gc";
options[2].optionString = "-Xcheck:jni";
options[3].optionString = "-Xdebug";
/* FIXME: Do we need any options here? Like exit()
* handler, or classpaths? */
vm_args.version = JNI_VERSION_1_6;
vm_args.options = options;
vm_args.nOptions = 0;
vm_args.nOptions = 4;
vm_args.ignoreUnrecognized = JNI_TRUE;
if (create_java_vm (&java_vm, &env, &vm_args) < 0)
goto create_failed;