When using 'MemStat' CompileCommand, we accidentally register the command if an invalid suboption had been specified. Fixed, added regression test (verified).
------------- Commit messages: - JDK-8318671-Potential-uninitialized-uintx-value-after-JDK-8317683 Changes: https://git.openjdk.org/jdk/pull/16335/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16335&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8318671 Stats: 93 lines in 3 files changed: 72 ins; 12 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/16335.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/16335/head:pull/16335 PR: https://git.openjdk.org/jdk/pull/16335