-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8369692: JFR: Don't record thread metadata in case jdk.ThreadStart is disabled #28222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back krk! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This is not correct, because now thread information will be missing for other events. Solving this proper would involve introducing a lazy write scheme of thread metadata on first use, but this can have other impacts, like the need to check for every event. |
|
Instead of checking for every event, we could set a flag unconditionally and check on thread start/end. What if we add a
What do you think? |
The checkpoint must be in place before a T::hasThread native event is written. |
Before
File size: 0.84 MB
Scrubbed size: 0.82 MB
Waste: 2.73%
After
File size: 0.80 MB
Scrubbed size: 0.78 MB
Waste: 3.40%
File size decreases when
ThreadStartandThreadEndevents are disabled.Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28222/head:pull/28222$ git checkout pull/28222Update a local copy of the PR:
$ git checkout pull/28222$ git pull https://git.openjdk.org/jdk.git pull/28222/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28222View PR using the GUI difftool:
$ git pr show -t 28222Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28222.diff
Using Webrev
Link to Webrev Comment