RFR: Enhancements for Shenandoah's generational mode [v7]

William Kemper wkemper at openjdk.org
Thu Mar 30 23:43:29 UTC 2023


> During the course of the development of the generational mode for Shenandoah, we have found this tool useful to demonstrate progress and changes in behavior. We have also found this tool useful for troubleshooting performance issues and debugging crashes. There are many changes here, but these are the highlights:
> * The age and affiliation of a region are encoded in the border and shape of the region (respectively).
> * Phases are encoded with different colors for different generations and whether they have degenerated.
> * A mechanism to record and replay session has been added (record feature is implemented in hotspot and is not yet upstream).
> * Popup windows can be opened for additional detail on regions, as well as their history.
> * The legend shows the number of regions in the state described by the legend item.
> * Visualizer can now 'find' VMs running Shenandoah with region sampling enabled.
> 
> Many months ago we broke backward compatibility on our branch, but we have recently restored it so the time seems right for a PR. Thank you for looking and sorry for the massive number of changes.

William Kemper has updated the pull request incrementally with eight additional commits since the last revision:

 - Remove extra whitespace
 - Improve handling of interrupted exception
 - Use more idiomatic pattern for iterating over lines in a file
 - Improve encapsulation of DataConnector's threading
 - Use idiomatic case conventions for enum
 - Inline usages of Color.AGE_N variables
 - Reduce visibility of members to package-private where possible
 - Target jdk17, update github actions

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

Changes:
  - all: https://git.openjdk.org/shenandoah-visualizer/pull/1/files
  - new: https://git.openjdk.org/shenandoah-visualizer/pull/1/files/06abcd90..5d380c30

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=shenandoah-visualizer&pr=1&range=06
 - incr: https://webrevs.openjdk.org/?repo=shenandoah-visualizer&pr=1&range=05-06

  Stats: 199 lines in 25 files changed: 5 ins; 13 del; 181 mod
  Patch: https://git.openjdk.org/shenandoah-visualizer/pull/1.diff
  Fetch: git fetch https://git.openjdk.org/shenandoah-visualizer.git pull/1/head:pull/1

PR: https://git.openjdk.org/shenandoah-visualizer/pull/1


More information about the shenandoah-dev mailing list