This commit is contained in:
Daniel D. Daugherty 2009-12-14 13:26:29 -07:00
commit ab3b12bdbd
6 changed files with 93 additions and 19 deletions

View file

@ -123,7 +123,26 @@ JvmtiEnvBase::is_valid() {
}
JvmtiEnvBase::JvmtiEnvBase() : _env_event_enable() {
bool
JvmtiEnvBase::use_version_1_0_semantics() {
int major, minor, micro;
JvmtiExport::decode_version_values(_version, &major, &minor, &micro);
return major == 1 && minor == 0; // micro version doesn't matter here
}
bool
JvmtiEnvBase::use_version_1_1_semantics() {
int major, minor, micro;
JvmtiExport::decode_version_values(_version, &major, &minor, &micro);
return major == 1 && minor == 1; // micro version doesn't matter here
}
JvmtiEnvBase::JvmtiEnvBase(jint version) : _env_event_enable() {
_version = version;
_env_local_storage = NULL;
_tag_map = NULL;
_native_method_prefix_count = 0;