hotspot/src/share/vm/prims/jvmtiEnvBase.cpp
JvmtiEnvBase::JvmtiEnvBase(jint version) : _env_event_enable() {
{- -------------------------------------------
(1) (フィールドの初期化)
---------------------------------------- -}
_version = version;
_env_local_storage = NULL;
_tag_map = NULL;
_native_method_prefix_count = 0;
_native_method_prefixes = NULL;
_next = NULL;
_class_file_load_hook_ever_enabled = false;
// Moot since ClassFileLoadHook not yet enabled.
// But "true" will give a more predictable ClassFileLoadHook behavior
// for environment creation during ClassFileLoadHook.
_is_retransformable = true;
// all callbacks initially NULL
memset(&_event_callbacks,0,sizeof(jvmtiEventCallbacks));
// all capabilities initially off
memset(&_current_capabilities, 0, sizeof(_current_capabilities));
// all prohibited capabilities initially off
memset(&_prohibited_capabilities, 0, sizeof(_prohibited_capabilities));
_magic = JVMTI_MAGIC;
{- -------------------------------------------
(1) JvmtiEventController::env_initialize() で
イベント通知設定の初期化を行う.
---------------------------------------- -}
JvmtiEventController::env_initialize((JvmtiEnv*)this);
{- -------------------------------------------
(1) (フィールドの初期化)
---------------------------------------- -}
#ifdef JVMTI_TRACE
_jvmti_external.functions = TraceJVMTI != NULL ? &jvmtiTrace_Interface : &jvmti_Interface;
#else
_jvmti_external.functions = &jvmti_Interface;
#endif
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.