On Mon, 24 Jul 2023 22:12:28 GMT, Ashutosh Mehra <d...@openjdk.org> wrote:
> This patch adds NestHost and NestMembers attributes to the class dumped by SA. > > Testing: `test/hotspot/jtreg/serviceability/sa` and `test/jdk/sun/tools/jhsdb` > Manual testing by dumping `j.l.String` and > `j.l.String$CaseInsensitiveComparator` classes. > `j.l.String` shows one entry in `NestMembers` attribute for > `j.l.String$CaseInsensitiveComparator` and > `j.l.String$CaseInsensitiveComparator` has `j.l.String` as its `NestHost`. We need to be sure this works as expected for top-level classes that have no nest members, and deeply nested nest members, plus dynamically injected hidden classes that are nest members. I'm unclear if this is intended to only expose the same details as would be statically defined in the attribute in the classfile? ------------- PR Comment: https://git.openjdk.org/jdk/pull/15005#issuecomment-1649153163