RFR: 8277101: jcmd VM.cds dynamic_dump should not regenerate holder classes

Yumin Qi minqi at openjdk.java.net
Fri Jan 28 03:02:27 UTC 2022


Hi, Please review

  When using jcmd to do dynamic dump, lambda MethodHandle Holder classes are regenerated and added to system dictionary, which may cause problem since after the dump, the process continues and there may cause unexpected result.

  Fix to not regenerate method handle holder classes if the call is from jcmd.

Tests: tier1,tier4 

Thanks
Yumin

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

Commit messages:
 - Use correct subcmd in exception
 - 8277101: jcmd VM.cds dynamic_dump should not regenerate holder classes

Changes: https://git.openjdk.java.net/jdk/pull/7256/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7256&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8277101
  Stats: 22 lines in 4 files changed: 13 ins; 0 del; 9 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7256.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7256/head:pull/7256

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


More information about the hotspot-runtime-dev mailing list