Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
12 files changed
+647
-17
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <jvmti.h>
|
||||
#include <jni.h>
|
||||
#include <iostream>
|
||||
|
||||
class JvmtiHandler {
|
||||
public:
|
||||
static void JNICALL vmInit(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread);
|
||||
static void JNICALL vmDeath(jvmtiEnv* jvmti, JNIEnv* jni);
|
||||
|
||||
// Accessor methods for global variables
|
||||
static jvmtiEnv* getJvmti();
|
||||
static JavaVM* getJavaVM();
|
||||
static bool isAgentInitialized();
|
||||
|
||||
// Setter methods
|
||||
static void setJvmti(jvmtiEnv* jvmti);
|
||||
static void setJavaVM(JavaVM* jvm);
|
||||
static void setAgentInitialized(bool initialized);
|
||||
|
||||
private:
|
||||
// No global variable declarations here - they'll be in agent.cpp
|
||||
};
|
||||
Reference in new issue
Block a user