RFR: 8287008: Improve tests for thread dumps in JSON format [v2]

Daniel Fuchs dfuchs at openjdk.java.net
Fri May 20 13:37:00 UTC 2022


On Fri, 20 May 2022 11:32:14 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> This is a test-only change to add some test infrastructure and improve the testing of thread dumps in JSON format. The new tests added by JEP 425 for this thread dump format search the JSON text for strings but don't parse it completely.  These tests can be improved with a test class that parses the thread dump. The tests for JEP 428 like make use of the test infrastructure too.
>
> Alan Bateman has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add example thread dump and usage to class description

test/lib/jdk/test/lib/threaddump/ThreadDump.java line 82:

> 80:  *         "parent": "<root>",
> 81:  *         "owner": null,
> 82:  *         "threads:": [...],

probably the extra colon after `threads` is a typo here

-------------

PR: https://git.openjdk.java.net/jdk/pull/8784


More information about the serviceability-dev mailing list