On Thu, 4 Nov 2021 13:25:14 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:
> `VM.metaspace`, `VM.classloaders` and `VM.class_hierarchy` all print out > reflection invocation targets for delegating reflection class loaders. Post > JEP 416 we don't use DelegatingClassLoaders anymore. > > This patch removes the display of reflection targets from these commands as > well as associated helper code and tests. > > I don't have enough time atm to reimplement this feature using method > handles. But at least we can remove the old code, and prepare the way for > more code removal. > > The patch does not touch vmClasses, `reflect_ConstructorAccessor` and > `reflect_MethodAccessor` are both still there. > > Tests: GHAs, manually testing the commands. This pull request has now been integrated. Changeset: 7281861e Author: Thomas Stuefe <stu...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/7281861e0662e6c51507066a1f12673a236c7491 Stats: 368 lines in 8 files changed: 0 ins; 367 del; 1 mod 8272065: jcmd cannot rely on the old core reflection implementation which will be changed after JEP 416 Reviewed-by: mchung, coleenp, dholmes ------------- PR: https://git.openjdk.java.net/jdk/pull/6257