Skip to content

Conversation

@MBaesken
Copy link
Member

@MBaesken MBaesken commented Dec 10, 2025

JDK-8372554 disabled LTO for libsplashscreen to fix an issue with the comparison build. It turns out the failure was caused by extra files that LTO produced and which were included in the image. Now that JDK-8373255 has fixed that we should be able to reenable LTO again.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 2 Reviewers)

Issue

  • JDK-8373388: Reenable LTO for libsplashscreen (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28746

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28746.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 10, 2025

👋 Welcome back mbaesken! 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
Copy link

openjdk bot commented Dec 10, 2025

@MBaesken This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8373388: Reenable LTO for libsplashscreen

Reviewed-by: erikj, dholmes, serb, prr

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 33 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title JDK-8373388: Reenable LTO for libsplashscreen 8373388: Reenable LTO for libsplashscreen Dec 10, 2025
@openjdk
Copy link

openjdk bot commented Dec 10, 2025

@MBaesken The following labels will be automatically applied to this pull request:

  • build
  • client

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 10, 2025
@mlbridge
Copy link

mlbridge bot commented Dec 10, 2025

Webrevs

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 10, 2025
@mrserb
Copy link
Member

mrserb commented Dec 10, 2025

Don’t we need to wait until #28676 is fixed?

@prrace
Copy link
Contributor

prrace commented Dec 10, 2025

Why was it enabled in the first place ?

@prrace
Copy link
Contributor

prrace commented Dec 10, 2025

/reviewers 2 reviewer

@prrace
Copy link
Contributor

prrace commented Dec 10, 2025

Do not integrate this without my review/approval.

@openjdk
Copy link

openjdk bot commented Dec 10, 2025

@prrace
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 2 Reviewers).

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Dec 10, 2025
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 10, 2025
@MBaesken
Copy link
Member Author

Don’t we need to wait until #28676 is fixed?

We can wait for 8372759, no problem. ( But this issue showed up only in some special environments anyway. )

@MBaesken
Copy link
Member Author

Why was it enabled in the first place ?

At least we could identify and fix 2 bugs with enabling this (and those 2 bugs were in for 5+ years) .
If you prefer to have some 'opt-in' switch via configure for lto in the same way we have it for libjvm , we can of course discuss this and introduce it.
If your question is about 'why for libsplashscreen' , because we see some good lib size - benefits for this lib (there were some measurements by @mserb for this #27976 (comment) ) .

@prrace
Copy link
Contributor

prrace commented Dec 12, 2025

Why was it enabled in the first place ?
If your question is about 'why for libsplashscreen' , because we see some good lib size - benefits for this lib (there were some measurements by @mserb for this #27976 (comment) ) .

Yes, my question was why splash screen out of all the libraries in the JDK.
I guess a size reduction is good, but I've no idea if it helps performance.
Note that on Linux, IIRC, the system gif/png/jpeg libs may be used by the build, and in such a case
I doubt there's much "size" left to reduce.

I've re-tested the comparison build and it passed. So I'll approve, just for this one library.

@MBaesken
Copy link
Member Author

Thanks for the reviews !

/integrate

@openjdk
Copy link

openjdk bot commented Dec 12, 2025

Going to push as commit 4e9525e.
Since your change was applied there have been 33 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 12, 2025
@openjdk openjdk bot closed this Dec 12, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 12, 2025
@openjdk
Copy link

openjdk bot commented Dec 12, 2025

@MBaesken Pushed as commit 4e9525e.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

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

Development

Successfully merging this pull request may close these issues.

5 participants