jvmti_utils.h File Reference


Defines

#define CHECK_EVERYTHING()
#define CHECK_CAPABILITY(capability)

Functions

static jvmtiError check_environment_is_valid (jvmtiEnv *env)
 
Author:
Gregory Shimansky

static jvmtiError _allocate (jlong size, unsigned char **res)
static void _deallocate (unsigned char *mem)
static jvmtiError check_everything (jvmtiEnv *env, jint num, jvmtiPhase *phases)
static jvmtiError check_env (jvmtiEnv *env)
static jvmtiError check_phase (jvmtiEnv *env, jint num, jvmtiPhase *phases)


Define Documentation

 
#define CHECK_EVERYTHING (  ) 

Value:

{                                                                 \
    jvmtiError error_code_ = (phases != NULL) ?                   \
            check_everything( env,                                \
            sizeof(phases)/sizeof(jvmtiPhase),                    \
            phases) : check_everything( env, 0,                   \
            phases);                                              \
                                                                  \
    if( error_code_ != JVMTI_ERROR_NONE )                         \
            return error_code_;                                   \
}

#define CHECK_CAPABILITY ( capability   ) 

Value:

{                                                                 \
    jvmtiCapabilities capa;                                       \
    jvmtiError err = env -> GetCapabilities(&capa);               \
    if (err != JVMTI_ERROR_NONE) return err;                      \
    if (!capa.capability)                                         \
        return JVMTI_ERROR_MUST_POSSESS_CAPABILITY;               \
}                                                                 \


Function Documentation

static jvmtiError check_environment_is_valid ( jvmtiEnv env  )  [static]

Author:
Gregory Shimansky

Version:
Revision
1.1.2.1.4.4

static jvmtiError _allocate ( jlong  size,
unsigned char **  res 
) [static]

static void _deallocate ( unsigned char *  mem  )  [static]

static jvmtiError check_everything ( jvmtiEnv env,
jint  num,
jvmtiPhase phases 
) [static]

static jvmtiError check_env ( jvmtiEnv env  )  [static]

static jvmtiError check_phase ( jvmtiEnv env,
jint  num,
jvmtiPhase phases 
) [static]


Genereated on Tue Mar 11 19:25:57 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.