Visitar URL original
8639: Stack Trace view freezes the UI when Show Duration is enabled by RoiSoleil · Pull Request #737 · openjdk/jmc · GitHub
Skip to content

8639: Stack Trace view freezes the UI when Show Duration is enabled - #737

Open
RoiSoleil wants to merge 1 commit into
openjdk:masterfrom
RoiSoleil:stacktrace-show-duration-freeze-8639
Open

RoiSoleil wants to merge 1 commit into
openjdk:masterfrom
RoiSoleil:stacktrace-show-duration-freeze-8639

Conversation

@RoiSoleil

@RoiSoleil RoiSoleil commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

With Show Duration enabled, each cell summed the durations of every item in its frame and of the root fork on the UI thread, for every row on every refresh. Cache the summed durations per item array and compute the root total and the initially visible frames in the model preparer instead of the UI thread.

Also apply the persisted Show Duration state to its own action instead of the Tree View action, release the cached durations when the model is rebuilt, and avoid an NPE when no item has a duration.


Progress

  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JMC-8639: Stack Trace view freezes the UI when Show Duration is enabled (Task - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/737/head:pull/737
$ git checkout pull/737

Update a local copy of the PR:
$ git checkout pull/737
$ git pull https://git.openjdk.org/jmc.git pull/737/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 737

View PR using the GUI difftool:
$ git pr show -t 737

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/737.diff

Using Webrev

Link to Webrev Comment

With Show Duration enabled, each cell summed the durations of every item
in its frame and of the root fork on the UI thread, for every row on
every refresh. Cache the summed durations per item array and compute the
root total and the initially visible frames in the model preparer instead
of the UI thread.

Also apply the persisted Show Duration state to its own action instead of
the Tree View action, release the cached durations when the model is
rebuilt, and avoid an NPE when no item has a duration.
@bridgekeeper

bridgekeeper Bot commented Oct 19, 2026

Copy link
Copy Markdown

👋 Welcome back RoiSoleil! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Oct 19, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot added the rfr label Oct 19, 2026
@mlbridge

mlbridge Bot commented Oct 19, 2026

Copy link
Copy Markdown

Webrevs

@RoiSoleil

Copy link
Copy Markdown
Contributor Author

@aymane-harmaz Could you take a look ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant