Patch: PR 16923

Thomas Fitzsimmons
Wed Feb 23 22:46:00 GMT 2005


On Wed, 2005-02-23 at 06:19 -0500, Bryce McKinlay wrote:
> OK, this looks good.

I realized that the change was no longer required since I
reallocate _Jv_Compiler_Properties in parse_init_args now.  I committed
this patch; the only differences are the removal of the changes
and a change in the first comment in parse_init_args.  make check shows
no regressions.


2005-02-23  Thomas Fitzsimmons  <>

	PR libgcj/16923
	* gcj.texi (Invocation): Add descriptions of JvVMInitArgs and

2005-02-23  Thomas Fitzsimmons  <>

	PR libgcj/16923
	* (JNI_CreateJavaVM): Check JNI version.  Cast args to
	JvVMInitArgs.  Pass args to _Jv_CreateJavaVM and check return
	value.  Move argument parsing code to
	* (no_properties): Remove.
	(_Jv_Compiler_Properties): Initialize to NULL.
	(_Jv_Properties_Count): Initialize to 0.
	(parse_verbose_args): New function.
	(parse_init_args): New function.
	(_Jv_CreateJavaVM): Call parse_init_args.
	(_Jv_RunMain): Check return value of _Jv_CreateJavaVM.
	* gcj/cni.h (JvVMOption): New struct.
	(JvVMInitArgs): Likewise.
	(JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than
	* libjava/gcj/javaprims.h (_Jv_VMOption): New struct.
	(_Jv_VMInitArgs): Likewise.
	* include/java-props.h (_Jv_Properties_Count): Declare.
	* java/lang/ (insertSystemProperties): Use
	_Jv_Properties_Count in for loop exit condition.
	* testsuite/libjava.jni/jni.exp
	(gcj_invocation_compile_c_to_binary): New procedure.
	(gcj_invocation_test_one): Likewise.
	(gcj_jni_run): Run JNI invocation API tests.
	* testsuite/libjava.jni/invocation/PR16923.c,
	testsuite/libjava.jni/invocation/PR16923.out: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgcj-invocation6.patch
Type: text/x-patch
Size: 18377 bytes
URL: <>

More information about the Java-patches mailing list