On Fri, 16 Sep 2022 14:55:42 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:

> Fixes a bug in the `VM.classloaders` jcmd that causes class loaders to be 
> omitted from the output if a parent class loader never loaded any class and 
> therefore had no associated DCmd.
> 
> The fix changes the command to not rely on the existence of a CLD structure 
> for the loader; instead, all information (loader class name, loader name, 
> etc) is pulled via the loader oop, which has to be always there unless its 
> the bootstrap loader.
> 
> Also, the tests were expanded to test the display of empty loaders and empty 
> parent loaders.
> 
> Thanks to @dholmes-ora for finding this bug.

This pull request has now been integrated.

Changeset: c6be2cd3
Author:    Thomas Stuefe <stu...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/c6be2cd347fc07dcc0da56acf40fc7a005119f09
Stats:     157 lines in 2 files changed: 103 ins; 21 del; 33 mod

8293156: Dcmd VM.classloaders fails to print the full hierarchy

Reviewed-by: dholmes, cjplummer

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

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

Reply via email to