JDK-8185003 : JMX: Add a version of ThreadMXBean.dumpAllThreads with a maxDepth argument
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 10
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-07-20
  • Updated: 2021-08-19
  • Resolved: 2017-10-06
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 10 Other
10 b31Fixed openjdk8u282Fixed
Related Reports
CSR :  
Description
dumpAllThreads currently cannot limit returned stack trace depth as can getThreadInfo. dumpAllThreads can therefore take excessive time/space for programs with thousands of threads. dumpAllThreads should provide the same functionality as getThreadInfo.
Comments
Correct me if I am wrong but this change: --- a/src/hotspot/share/services/jmm.h Wed Sep 20 18:30:32 2017 +0800 +++ b/src/hotspot/share/services/jmm.h Thu Oct 05 01:31:53 2017 -0700 @@ -50,7 +50,8 @@ JMM_VERSION_1_2 = 0x20010200, // JDK 7 JMM_VERSION_1_2_1 = 0x20010201, // JDK 7 GA JMM_VERSION_1_2_2 = 0x20010202, - JMM_VERSION = 0x20010203 + JMM_VERSION_2 = 0x20020000, // JDK 10 + JMM_VERSION = 0x20020000 }; incorrectly lost the 0x20010203 value (introduced by JDK-7150256) instead of retaining it as e.g. JMM_VERSION_1_2_3 = 0x20010203, // JDK 8
19-08-2021

Fix Request (8u) Minimal risk, see the approved CSR JDK-8251498. Review approval: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-September/012626.html
15-09-2020

URL: http://hg.openjdk.java.net/jdk10/master/rev/68d46cb9be45 User: jwilhelm Date: 2017-11-04 02:58:06 +0000
04-11-2017

URL: http://hg.openjdk.java.net/jdk10/hs/rev/68d46cb9be45 User: rraghavan Date: 2017-10-05 08:37:23 +0000
06-10-2017