Skip to content

Comments

JDK-8324530: Build error with gcc 10#424

Closed
tstuefe wants to merge 1 commit intoopenjdk:masterfrom
tstuefe:JDK-8324530
Closed

JDK-8324530: Build error with gcc 10#424
tstuefe wants to merge 1 commit intoopenjdk:masterfrom
tstuefe:JDK-8324530

Conversation

@tstuefe
Copy link
Member

@tstuefe tstuefe commented Jan 23, 2024

This is a trivial fix to a build error (and the underlying off-by-one error, which is only theoretical) gcc 10 warns about.

Note that this issue has been fixed in JDK 11 and later as part of 8140594: "Various minor code improvements (compiler)", but that patch is much larger and would need more intense review. Here, I'd like to just fix this one problem that breaks the build with gcc 10.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8324530 needs maintainer approval

Issue

  • JDK-8324530: Build error with gcc 10 (Bug - P4 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/424/head:pull/424
$ git checkout pull/424

Update a local copy of the PR:
$ git checkout pull/424
$ git pull https://git.openjdk.org/jdk8u-dev.git pull/424/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 424

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/424.diff

Webrev

Link to Webrev Comment

@tstuefe tstuefe marked this pull request as ready for review January 23, 2024 15:15
@bridgekeeper
Copy link

bridgekeeper bot commented Jan 23, 2024

👋 Welcome back stuefe! 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 added the rfr Pull request is ready for review label Jan 23, 2024
@mlbridge
Copy link

mlbridge bot commented Jan 23, 2024

Webrevs

@tstuefe
Copy link
Member Author

tstuefe commented Jan 24, 2024

Build errors unrelated but annoying.

@tstuefe
Copy link
Member Author

tstuefe commented Feb 10, 2024

@gnu-andrew ?

Copy link
Member

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

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

Sorry, Thomas, I only just saw this.

I seem to remember looking at JDK-8140594 myself a while back and it does have a lot of unrelated changes, some of which potentially change behaviour. I agree cherry-picking the fix we actually need here is the better approach.

I have built 8u myself on GCC 13 (with the help of #357) but I guess that was a product build and this code is inside #ifndef PRODUCT.

@openjdk
Copy link

openjdk bot commented Feb 16, 2024

⚠️ @tstuefe This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@gnu-andrew
Copy link
Member

Windows x86 issue was a result of the January 2024 security changes and should now have been resolved by JDK-8324184

@tstuefe
Copy link
Member Author

tstuefe commented Feb 20, 2024

/approval this is a small fix for a compile problem and a (non-critical) off-by-one when building with GCC 10

@openjdk
Copy link

openjdk bot commented Feb 20, 2024

@tstuefe usage: /approval [<id>] (request|cancel) [<text>]

@tstuefe
Copy link
Member Author

tstuefe commented Feb 21, 2024

/approval JDK-8324530 request this is a small fix for a compile problem and a (non-critical) off-by-one when building with GCC 10

@openjdk
Copy link

openjdk bot commented Feb 21, 2024

@tstuefe
JDK-8324530: The approval request has been created successfully.

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Feb 21, 2024
@gnu-andrew
Copy link
Member

/approve yes

@openjdk
Copy link

openjdk bot commented Feb 21, 2024

@gnu-andrew
8324530: The approval request has been approved.

@openjdk
Copy link

openjdk bot commented Feb 21, 2024

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

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

8324530: Build error with gcc 10

Reviewed-by: andrew

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 14 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 added ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels Feb 21, 2024
@tstuefe
Copy link
Member Author

tstuefe commented Feb 22, 2024

Thanks @gnu-andrew .

/integrate

@openjdk
Copy link

openjdk bot commented Feb 22, 2024

Going to push as commit 5e70a86.
Since your change was applied there have been 16 commits pushed to the master branch:

  • 53e0826: 8323640: [TESTBUG]testMemoryFailCount in jdk/internal/platform/docker/TestDockerMemoryMetrics.java always fail because OOM killed
  • a37b856: 8016451: Scary messages emitted by build.tools.generatenimbus.PainterGenerator during build
  • b7bda28: 8325150: (tz) Update Timezone Data to 2024a
  • ae516a3: 8074860: Structured Exception Catcher missing around CreateJavaVM on Windows
  • 9bd600c: 8079441: Intermittent failures on Windows with "Unexpected exit from test [exit code: 1080890248]" (0x406d1388)
  • e926edc: 8276139: TestJpsHostName.java not reliable, better to expand HostIdentifierCreate.java test
  • 9aabf22: 8270517: Add Zero support for LoongArch
  • dce5300: 8168518: rcache interop with krb5-1.15
  • 3dc011b: 8323202: [8u] Remove get_source.sh and hgforest.sh
  • abb4975: 8011180: Delete obsolete scripts
  • ... and 6 more: https://git.openjdk.org/jdk8u-dev/compare/552c6866d8ad71ef247b5303f78fa7a65506aea9...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Feb 22, 2024

@tstuefe Pushed as commit 5e70a86.

💡 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

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants