[f88d2a]: tools / bootImageRunner / org_jikesrvm_runtime_JVMTIAgent.c Maximize Restore History

Download this file

org_jikesrvm_runtime_JVMTIAgent.c    39 lines (32 with data), 1.4 kB

 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
30
31
32
33
34
35
36
37
38
/*
* This file is part of the Jikes RVM project (http://jikesrvm.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* 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/eclipse-1.0.php
*
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership.
*/
/*****************************************************************
* JNI functions to support OnLoad
*/
// Java includes
#include <jni.h>
//#include <jvmti.h> // We'll need an implementation of this at some point
// generated class header
#include "org_jikesrvm_runtime_JVMTIAgent.h"
extern struct Java sysJavaVM;
typedef jint (*Agent_OnLoad)(Java *vm, char *options, void *reserved);
/*
* Class: org_jikesrvm_runtime_JVMTIAgent
* Method: runAgent_OnLoad
* Signature: (Lorg/vmmagic/unboxed/Address;)I
*/
extern "C" JNIEXPORT jint JNICALL Java_org_jikesrvm_runtime_JVMTIAgent_runAgent_1OnLoad (JNIEnv *env,
jclass clazz,
jobject JAgent_OnLoadAddress) {
return ((Agent_OnLoad)JAgent_OnLoadAddress)(&sysJavaVM, NULL, NULL);
}