prims.cc (_Jv_Abort): Always print error message using fprintf, don't try to allocate.
* prims.cc (_Jv_Abort): Always print error message using fprintf, don't try to allocate. (_Jv_CreateJavaVM): Set gcj::runTimeInitialized. * include/jvm.h (gcj::runTimeInitialized): New variable declaration. * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle duplicate class registration with JvFail if the runtime hasn't been initialized yet. From-SVN: r46424
This commit is contained in:
parent
187e37f9a6
commit
afb2dec526
4 changed files with 30 additions and 9 deletions
|
@ -131,6 +131,9 @@ namespace gcj
|
|||
extern _Jv_Utf8Const *clinit_name; /* "<clinit>" */
|
||||
extern _Jv_Utf8Const *init_name; /* "<init>" */
|
||||
extern _Jv_Utf8Const *finit_name; /* "finit$", */
|
||||
|
||||
/* Set to true by _Jv_CreateJavaVM. */
|
||||
extern bool runtimeInitialized;
|
||||
};
|
||||
|
||||
/* Type of pointer used as finalizer. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue