mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6849968: 3/2 JVMTI tests fails on jdk5.0 with hs14
If a JVMTI agent asks for version 1.0, then it should get version 1.0 semantics. Reviewed-by: dholmes, ohair
This commit is contained in:
parent
8dd1b6ace1
commit
ce78944539
6 changed files with 81 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -94,7 +94,26 @@ JvmtiEnvBase::initialize() {
|
|||
}
|
||||
|
||||
|
||||
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