64 |
64 |
65 public: |
65 public: |
66 |
66 |
67 enum { |
67 enum { |
68 JDK15_JVMTI_VERSION = JVMTI_VERSION_1_0 + 33, /* version: 1.0.33 */ |
68 JDK15_JVMTI_VERSION = JVMTI_VERSION_1_0 + 33, /* version: 1.0.33 */ |
69 JDK16_JVMTI_VERSION = JVMTI_VERSION_1_1 + 102 /* version: 1.1.102 */ |
69 JDK16_JVMTI_VERSION = JVMTI_VERSION_1_1 + 102, /* version: 1.1.102 */ |
|
70 JDK17_JVMTI_VERSION = JVMTI_VERSION_1_2 + 1 /* version: 1.2.1 */ |
70 }; |
71 }; |
71 |
72 |
72 static jvmtiPhase get_phase() { return _phase; } |
73 static jvmtiPhase get_phase() { return _phase; } |
73 static void set_phase(jvmtiPhase phase) { _phase = phase; } |
74 static void set_phase(jvmtiPhase phase) { _phase = phase; } |
74 static bool is_vm_live() { return _phase == JVMTI_PHASE_LIVE; } |
75 static bool is_vm_live() { return _phase == JVMTI_PHASE_LIVE; } |
134 |
135 |
135 bool is_valid(); |
136 bool is_valid(); |
136 |
137 |
137 bool use_version_1_0_semantics(); // agent asked for version 1.0 |
138 bool use_version_1_0_semantics(); // agent asked for version 1.0 |
138 bool use_version_1_1_semantics(); // agent asked for version 1.1 |
139 bool use_version_1_1_semantics(); // agent asked for version 1.1 |
|
140 bool use_version_1_2_semantics(); // agent asked for version 1.2 |
139 |
141 |
140 bool is_retransformable() { return _is_retransformable; } |
142 bool is_retransformable() { return _is_retransformable; } |
141 |
143 |
142 static ByteSize jvmti_external_offset() { |
144 static ByteSize jvmti_external_offset() { |
143 return byte_offset_of(JvmtiEnvBase, _jvmti_external); |
145 return byte_offset_of(JvmtiEnvBase, _jvmti_external); |