jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM.

* jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
        _Jv_JNI_Init.

From-SVN: r46633
This commit is contained in:
Bryce McKinlay 2001-10-30 10:14:48 +00:00 committed by Bryce McKinlay
parent 4fe8523bca
commit 415c055a2a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-10-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* jni.cc (JNI_CreateJavaVM): Call _Jv_CreateJavaVM. Don't call
_Jv_JNI_Init.
2001-10-29 Tom Tromey <tromey@redhat.com>
* java/util/zip/GZIPOutputStream.java (write(int)): New method.

View File

@ -2108,6 +2108,9 @@ jint
JNI_CreateJavaVM (JavaVM **vm, void **penv, void *args)
{
JvAssert (! the_vm);
_Jv_CreateJavaVM (NULL);
// FIXME: synchronize
JavaVM *nvm = (JavaVM *) _Jv_MallocUnchecked (sizeof (JavaVM));
if (nvm == NULL)
@ -2163,8 +2166,6 @@ JNI_CreateJavaVM (JavaVM **vm, void **penv, void *args)
the_vm = nvm;
*vm = the_vm;
_Jv_JNI_Init();
return 0;
}