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

2022-05-23 Thread Chris Plummer
On Mon, 23 May 2022 19:33:31 GMT, Alan Bateman wrote: >> This change is mostly test infrastructure and improvements to the testing of >> thread dumps in JSON format. It also tweaks the thread dump format so that >> the process identifier and thread identifiers are a type string rather than >>

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

2022-05-23 Thread Alan Bateman
> This change is mostly test infrastructure and improvements to the testing of > thread dumps in JSON format. It also tweaks the thread dump format so that > the process identifier and thread identifiers are a type string rather than > number. > > The tests for thread dumps added by JEP 425 are

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

2022-05-23 Thread Chris Plummer
On Mon, 23 May 2022 07:52:58 GMT, Alan Bateman wrote: >> test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreads.java line >> 115: >> >>> 113: >>> 114: // find the thread container that corresponds to the >>> executor >>> 115: String name = Objects.toId

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

2022-05-23 Thread Alan Bateman
On Mon, 23 May 2022 16:44:12 GMT, Chris Plummer wrote: >> Alan Bateman has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use string rater than number for process/thread identifiers > > test/lib/jdk/test/lib/threaddump/ThreadDump.java line

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

2022-05-23 Thread Chris Plummer
On Mon, 23 May 2022 07:53:09 GMT, Alan Bateman wrote: >> test/lib/jdk/test/lib/threaddump/ThreadDump.java line 179: >> >>> 177: return this; >>> 178: if (name().startsWith(name + "/")) >>> 179: return this; >> >> It's not clear to me why this is here.

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

2022-05-23 Thread Chris Plummer
On Mon, 23 May 2022 08:30:51 GMT, Alan Bateman wrote: >> This change is mostly test infrastructure and improvements to the testing of >> thread dumps in JSON format. It also tweaks the thread dump format so that >> the process identifier and thread identifiers are a type string rather than >>

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

2022-05-23 Thread Alan Bateman
On Mon, 23 May 2022 08:30:51 GMT, Alan Bateman wrote: >> This change is mostly test infrastructure and improvements to the testing of >> thread dumps in JSON format. It also tweaks the thread dump format so that >> the process identifier and thread identifiers are a type string rather than >>

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

2022-05-23 Thread Alan Bateman
> This change is mostly test infrastructure and improvements to the testing of > thread dumps in JSON format. It also tweaks the thread dump format so that > the process identifier and thread identifiers are a type string rather than > number. > > The tests for thread dumps added by JEP 425 are

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

2022-05-23 Thread Alan Bateman
On Mon, 23 May 2022 06:09:58 GMT, Chris Plummer wrote: >> Alan Bateman has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove spurious colon > > test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreads.java line 115: > >> 113: >

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

2022-05-22 Thread Chris Plummer
On Fri, 20 May 2022 16:41:36 GMT, Alan Bateman 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 >> co

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

2022-05-20 Thread Alan Bateman
> 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 tha

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

2022-05-20 Thread Daniel Fuchs
On Fri, 20 May 2022 11:32:14 GMT, Alan Bateman 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 >> co

Re: RFR: 8287008: Improve tests for thread dumps in JSON format

2022-05-20 Thread Alan Bateman
On Fri, 20 May 2022 04:22:21 GMT, Chris Plummer wrote: > I think a short example dump would actually be easier to read alongside the > code. That's a good idea. I've updated the class description to include an example and also a code example of how it can be used in tests. The thread dump exam

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

2022-05-20 Thread Alan Bateman
> 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 tha

Re: RFR: 8287008: Improve tests for thread dumps in JSON format

2022-05-19 Thread Chris Plummer
On Thu, 19 May 2022 09:38:06 GMT, Alan Bateman 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 > comple

Re: RFR: 8287008: Improve tests for thread dumps in JSON format

2022-05-19 Thread Alan Bateman
On Thu, 19 May 2022 09:38:06 GMT, Alan Bateman 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 > comple

Re: RFR: 8287008: Improve tests for thread dumps in JSON format

2022-05-19 Thread Chris Plummer
On Thu, 19 May 2022 09:38:06 GMT, Alan Bateman 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 > comple

Re: RFR: 8287008: Improve tests for thread dumps in JSON format

2022-05-19 Thread Alan Bateman
On Thu, 19 May 2022 15:28:01 GMT, Chris Plummer wrote: > It would be useful if ThreadDump.java contained a comment with a description > of the JSON file syntax. It could either be in the form of a simple dump or > as a simple syntactic description. Still TBD on where the JSON "schema" will be

Re: RFR: 8287008: Improve tests for thread dumps in JSON format

2022-05-19 Thread Chris Plummer
On Thu, 19 May 2022 09:38:06 GMT, Alan Bateman 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 > comple

RFR: 8287008: Improve tests for thread dumps in JSON format

2022-05-19 Thread Alan Bateman
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