< prev index next >
test/gc/shenandoah/jni/libTestJNICritical.c
Print this page
rev 10789 : [backport] Drop Shenandoah from test names
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2016 Red Hat, Inc. and/or its affiliates.
+ * Copyright (c) 2016, 2017, Red Hat, Inc. All rights reserved.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
@@ -23,11 +23,11 @@
#include <jni.h>
#include <string.h>
JNIEXPORT void JNICALL
-Java_ShenandoahJNICritical_copyAtoB(JNIEnv *env, jclass unused, jintArray a, jintArray b) {
+Java_TestJNICritical_copyAtoB(JNIEnv *env, jclass unused, jintArray a, jintArray b) {
jint len = (*env)->GetArrayLength(env, a);
jint* aa = (*env)->GetPrimitiveArrayCritical(env, a, 0);
jint* bb = (*env)->GetPrimitiveArrayCritical(env, b, 0);
memcpy(bb, aa, len * sizeof(jint));
(*env)->ReleasePrimitiveArrayCritical(env, b, bb, 0);
< prev index next >