jvmti jobject

Is is possible to obtain a jobject directly from jvmti (without involving any java class) and then call

jvmtiError

SetTag(jvmtiEnv* env,

jobject object,

jlong tag)

If so, how do you obtain a jobject via jvmti? --Or must the jobject be passed in from a java call via jni?

[307 byte] By [JaMeSa] at [2007-11-26 21:57:53]
# 1
Many of the events that JVM TI generates include a jobject as a parameter to a callback. If you are using BCI and you invoke a native code to use JVM TI then the jobject is readily available. Can you say any more as to what you are looking for?
alan.batemana at 2007-7-10 3:55:28 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Thanks for the reply. I think you've answered my question. If I understand correctly, the functions with jobject params are intended to be invoked via event callbacks or via jni. In both cases the jobject would be available.Thanx
JaMeSa at 2007-7-10 3:55:28 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...