[r12177]: rvmroot / trunk / testing / tests / jni / src / TestDeadVPQueueWorker.c Maximize Restore History

Download this file

TestDeadVPQueueWorker.c    30 lines (24 with data), 920 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* This file is part of the Jikes RVM project (http://jikesrvm.org).
*
* This file is licensed to You under the Common Public License (CPL);
* You may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.opensource.org/licenses/cpl1.0.php
*
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership.
*/
#include <stdio.h>
#include "TestDeadVPQueueWorker.h"
#include <jni.h>
JNIEXPORT jint JNICALL Java_TestDeadVPQueueWorker_nativeFoo
(JNIEnv *env, jclass cls, jint value) {
int localval = value + 15;
jintArray myArray;
printf("Java_TestDeadVPQueueWorker_nativeFoo: reached native code with 0x%X 0x%X %d \n", env, cls, value);
myArray = (*env) -> NewIntArray(env, 11);
printf("Java_TestDeadVPQueueWorker_nativeFoo: JNI call returns 0x%X\n", myArray);
return localval;
}