comparison src/share/vm/prims/jvmtiEnvBase.cpp @ 1121:98cd9901c161

6849968: 3/2 JVMTI tests fails on jdk5.0 with hs14 Summary: If a JVMTI agent asks for version 1.0, then it should get version 1.0 semantics. Reviewed-by: dholmes, ohair
author dcubed
date Mon, 14 Dec 2009 10:05:36 -0700
parents ad8c8ca4ab0f
children dcb15a6f342d
comparison
equal deleted inserted replaced
1120:9127aa69352e 1121:98cd9901c161
1 /* 1 /*
2 * Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 2003-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
92 globally_initialize(); 92 globally_initialize();
93 } 93 }
94 } 94 }
95 95
96 96
97 JvmtiEnvBase::JvmtiEnvBase() : _env_event_enable() { 97 bool
98 JvmtiEnvBase::use_version_1_0_semantics() {
99 int major, minor, micro;
100
101 JvmtiExport::decode_version_values(_version, &major, &minor, &micro);
102 return major == 1 && minor == 0; // micro version doesn't matter here
103 }
104
105
106 bool
107 JvmtiEnvBase::use_version_1_1_semantics() {
108 int major, minor, micro;
109
110 JvmtiExport::decode_version_values(_version, &major, &minor, &micro);
111 return major == 1 && minor == 1; // micro version doesn't matter here
112 }
113
114
115 JvmtiEnvBase::JvmtiEnvBase(jint version) : _env_event_enable() {
116 _version = version;
98 _env_local_storage = NULL; 117 _env_local_storage = NULL;
99 _tag_map = NULL; 118 _tag_map = NULL;
100 _native_method_prefix_count = 0; 119 _native_method_prefix_count = 0;
101 _native_method_prefixes = NULL; 120 _native_method_prefixes = NULL;
102 _next = NULL; 121 _next = NULL;