[jdk17u-dev] RFR: 8277946: NMT: Remove VM.native_memory shutdown jcmd command option

Thomas Stuefe stuefe at openjdk.org
Thu Jan 26 10:14:55 UTC 2023


Hi all,

This is *not* a clean downport. The upstream variant in JDK 18 outright removes the NMT shutdown dcmd option. For JDK 17, I leave it in but deprecate it and stub it out. See associated CSR backport: https://bugs.openjdk.org/browse/JDK-8299848 

Original issue: https://bugs.openjdk.org/browse/JDK-8277946
Original CSR: https://bugs.openjdk.org/browse/JDK-8277947
Backport CSR: https://bugs.openjdk.org/browse/JDK-8299848
Backport Issue: https://bugs.openjdk.org/browse/JDK-8299846


Differences to original CSR:

The original CSR was about removing the sub-option. That was fine for a head release.

This CSR, aimed at a maintenance release, proposes to deprecate it instead:

    jcmd would still accept the "shutdown" sub option and return 0 as exit code.
    But jcmd should report "This option has been deprecated" instead of "NMT is shutting down"


    Thanks!

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

Commit messages:
 - Reinstate shutdown sub option but mark as deprecated (see CSR downport JDK-8299848)
 - Merge branch 'master' into tstuefe-backport-abaa073b
 - Backport abaa073bcbdb202658c8a97401ffb098d71e0f16

Changes: https://git.openjdk.org/jdk17u-dev/pull/1112/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1112&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8277946
  Stats: 124 lines in 4 files changed: 0 ins; 121 del; 3 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1112.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/1112/head:pull/1112

PR: https://git.openjdk.org/jdk17u-dev/pull/1112


More information about the jdk-updates-dev mailing list