Exemplo n.º 1
0
        public jvmtiError GetTag(JvmVirtualMachineRemoteHandle virtualMachine, JvmObjectRemoteHandle @object, out long tag)
        {
            JavaVM machine = JavaVM.GetInstance(virtualMachine);

            long       tagResult = 0;
            jvmtiError result    = jvmtiError.Internal;

            machine.InvokeOnJvmThread(
                (environment) =>
            {
                jvmtiInterface rawInterface = environment.RawInterface;
                result = rawInterface.GetTag(environment.Handle, @object, out tagResult);
            });

            tag = tagResult;
            return(result);
        }