[oe] [meta-java][PATCH 0/1] test instruction

Wenlin Kang wenlin.kang at windriver.com
Tue Feb 19 02:30:56 UTC 2019


1. Create app program, the content similar to:

   	JNIEnv *env = NULL;
	JavaVM *jvm = NULL;

	JavaVMInitArgs vm_args;
	vm_args.version = JNI_VERSION_1_2;
	vm_args.options = NULL;
	vm_args.nOptions = 0;
	vm_args.ignoreUnrecognized = JNI_TRUE;

	jint res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
	if ( ( res == JNI_OK ) && ( jvm != NULL ) )
	{
		jvm->DestroyJavaVM();
	}

2. Create a shell script to run continually this app on a powerPC target(e.g. qemuppc).

3. It will get randomly a segment.

Note: I used jdk8u_72b05 on qemuppc, for 172b11, because I can't build to pass on ppc,
I don't test it, but I think this problem should be exist on latest version too.

Wenlin Kang (1):
  openjdk: fix a random crash on JNI_CreateJavaVM

 .../openjdk-8-release-172b11-common.inc       |  1 +
 ...otspot-fix-crash-on-JNI_CreateJavaVM.patch | 36 +++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 recipes-core/openjdk/patches-openjdk-8/0001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch

-- 
2.17.1



More information about the Openembedded-devel mailing list