JDK-8268241 : Deprecate JVM TI Heap functions 1.0
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-04
  • Updated: 2024-06-20
  • Resolved: 2021-06-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b26Fixed
Related Reports
CSR :  
Sub Tasks
JDK-8268865 :  
Description
The JVM TI Heap functions 1.0 were superseded by newer functions in JVM TI 1.2 (Java 6) and should be deprecated so they can be removed in a future release.

We need to replace this sentence:
"These functions and data types were introduced in the original JVM TI
version 1.0 and have been superseded by more powerful and flexible
versions which:"

with:

"These functions and data types were introduced in the original JVM TI
version 1.0. They are deprecated and will be changed to return an error
in a future release. They were superseded in JVM TI version 1.2 (Java SE
6) by more powerful and flexible versions that:"
Comments
Has this code been made obsolete yet?
20-06-2024

Changeset: 07108c91 Author: Serguei Spitsyn <sspitsyn@openjdk.org> Date: 2021-06-09 05:38:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/07108c916263896fa6c5dbacfedf5b4c2f5bf97a
09-06-2021

The PR is: https://github.com/openjdk/jdk/pull/4406
08-06-2021

The suggested fix is: diff --git a/src/hotspot/share/prims/jvmti.xml b/src/hotspot/share/prims/jvmti.xml index ad55f34a543..9429265c5b4 100644 --- a/src/hotspot/share/prims/jvmti.xml +++ b/src/hotspot/share/prims/jvmti.xml @@ -4963,7 +4963,9 @@ class C2 extends C1 implements I2 { <intro> <b> These functions and data types were introduced in the original - <jvmti/> version 1.0 and have been superseded by more + <jvmti/> version 1.0. They are deprecated and will be changed + to return an error in a future release. They were superseded in + <jvmti/> version 1.2 (Java SE6) by more </b> <internallink id="Heap"><b>powerful and flexible versions</b></internallink> <b>
04-06-2021