mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
Merge
This commit is contained in:
commit
ab3b12bdbd
6 changed files with 93 additions and 19 deletions
|
@ -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, µ);
|
||||
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, µ);
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue