Skip to content
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

JDK-8348597 : Update HarfBuzz to 10.4.0 #23910

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

honkar-jdk
Copy link
Contributor

@honkar-jdk honkar-jdk commented Mar 4, 2025

Harfbuzz upgraded to v10.4.0

File changes -

Newly added files

libharfbuzz/OT/Var/VARC/VARC.hh
libharfbuzz/OT/Var/VARC/coord-setter.hh
libharfbuzz/hb-decycler.hh
libharfbuzz/hb-geometry.hh 
libharfbuzz/hb-ot-var-varc-table.hh 
libharfbuzz/hb-subset-instancer-iup.hh  
libharfbuzz/hb-subset-serialize.h

Deleted

libharfbuzz/OT/glyf/VarCompositeGlyph.hh
libharfbuzz/OT/glyf/coord-setter.hh

Modified: 182 existing files modified

To prevent build failures due to dangling pointer (on linux) it has been added to HARFBUZZ_DISABLED_WARNINGS_gcc in ClientLibraries.gmk


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 1 Reviewer, 1 Author)

Issue

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 23910

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 4, 2025

👋 Welcome back honkar! 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 Mar 4, 2025

@honkar-jdk 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:

8348597: Update HarfBuzz to 10.4.0

Reviewed-by: erikj, 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 78 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
Copy link

openjdk bot commented Mar 4, 2025

@honkar-jdk 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.

@honkar-jdk honkar-jdk marked this pull request as ready for review March 5, 2025 00:59
@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 5, 2025
@mlbridge
Copy link

mlbridge bot commented Mar 5, 2025

Webrevs

Copy link
Member

@erikj79 erikj79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build change looks ok.

The clang users on Linux may want to check if the same new warning triggers there.

/reviewers 2

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 5, 2025
@openjdk
Copy link

openjdk bot commented Mar 5, 2025

@erikj79
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 1 Reviewer, 1 Author).

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Mar 5, 2025
@@ -129,6 +131,7 @@
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#pragma GCC diagnostic ignored "-Wcast-function-type-strict" // https://github.com/harfbuzz/harfbuzz/pull/3859#issuecomment-1295409126
#pragma GCC diagnostic ignored "-Wdangling-reference" // https://github.com/harfbuzz/harfbuzz/issues/4043
#pragma GCC diagnostic ignored "-Wdangling-pointer" // Trigerred by hb_decycler_node_t().
Copy link
Contributor Author

@honkar-jdk honkar-jdk Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prrace With the latest harfbuzz (v10.4.0), dangling-pointer warning is ignored. With this addition, I assumed that we no longer need to add it to harfbuzz warning section explicitly.

But without adding dangling-pointer to HARFBUZZ_DISABLED_WARNINGS_gcc build fails on linux so probably JDK build requires warnings to be explicitly added to ClientLibraries.gmk ?

decycler.hh:110:25: error: storing the address of local variable ‘decycler_node'
 in '((hb_decycler_t*)((char*)scratch + 8))[1].hb_decycler_t::tortoise' [-Werror=dangling-pointer=]
  110 |       decycler.tortoise = decycler.hare = this;
      |       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I also would have expected this to over-ride the JDK default.
But if that's what you see ...
A bit of googling suggests that sometimes these pragmas are read too late.

@@ -53,9 +53,9 @@ STEP 2: BUILD CHANGES INCREMENTALLY

STEP 3: COMPILER WARNINGS AND SETTING FLAGS
-------------------------------------------
- Update make parameters in Awt2DLibraries.gmk
- Update make parameters in make/modules/java.desktop/lib/ClientLibraries.gmk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@@ -129,6 +131,7 @@
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#pragma GCC diagnostic ignored "-Wcast-function-type-strict" // https://github.com/harfbuzz/harfbuzz/pull/3859#issuecomment-1295409126
#pragma GCC diagnostic ignored "-Wdangling-reference" // https://github.com/harfbuzz/harfbuzz/issues/4043
#pragma GCC diagnostic ignored "-Wdangling-pointer" // Trigerred by hb_decycler_node_t().
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I also would have expected this to over-ride the JDK default.
But if that's what you see ...
A bit of googling suggests that sometimes these pragmas are read too late.

Copy link
Contributor

@prrace prrace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to use webrev to review. github was too painfully slow.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build [email protected] client [email protected] ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

3 participants