The JSON format thread dump generated by HotSpotDiagnosticMXBean.dumpThreads 
and jcmd Thread.dump_to_file currently write the process and thread IDs as 
strings. This is changed to write the IDs as numbers when in the "safe range" 
that can be parsed by JS and other system.  threadDump.schema.json is used to 
document the format, this is updated to document the IDs  as number or string.

The changes include a test-only update to JSONValue to add support for 
numbers.. While there, it is also updated to bring it closer to current 
proposal/JSON for convenience methods. This will make it easier to replace this 
test library class once a standard API is further along. A number of security 
tests and one JFR test are updated, all trivial changes.

Testing: Tier 1-5.

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

Commit messages:
 - Merge branch 'master' into JDK-8381002
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/30467/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30467&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8381002
  Stats: 221 lines in 9 files changed: 79 ins; 24 del; 118 mod
  Patch: https://git.openjdk.org/jdk/pull/30467.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30467/head:pull/30467

PR: https://git.openjdk.org/jdk/pull/30467

Reply via email to