JDK-8287008 : Improve tests for thread dumps in JSON format
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-05-19
  • Updated: 2022-05-24
  • Resolved: 2022-05-24
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 19
19 masterFixed
Related Reports
Relates :  
Description
The tests for the new thread dump format at this time are:

test/hotspot/jtreg/serviceability/dcmd/thread/ThreadDumpToFileTest.java
test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreads.java

These tests search the JSON text for strings but don't parse it completely. We can improve these tests with some test infrastructure that parses the thread dump. This test infrastructure is needed for the tests that will be added by JEP 428 too.
Comments
Changeset: 15f15830 Author: Alan Bateman <alanb@openjdk.org> Date: 2022-05-24 06:20:53 +0000 URL: https://git.openjdk.java.net/jdk/commit/15f15830f00895c046c08b55dfeb1618700a2c10
24-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8784 Date: 2022-05-19 09:38:06 +0000
19-05-2022