Skip to content

8392223: CLDR provider mutates shared cached time zone name arrays - #883

Closed
moseoh wants to merge 1 commit into
openjdk:masterfrom
moseoh:backport-8392223
Closed

moseoh wants to merge 1 commit into
openjdk:masterfrom
moseoh:backport-8392223

Conversation

@moseoh

@moseoh moseoh commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

This pull request contains a backport of commit d6c4fe7b from the openjdk/jdk repository.



Progress

  • Change must not contain extraneous whitespace
  • JDK-8392223 needs maintainer approval
  • Commit message must refer to an issue

Issue

  • JDK-8392223: CLDR provider mutates shared cached time zone name arrays (Bug - P3 - Approved)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 883

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Oct 16, 2026

Copy link
Copy Markdown

👋 Welcome back moseoh! 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 16, 2026 •

Copy link
Copy Markdown

@moseoh 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:

8392223: CLDR provider mutates shared cached time zone name arrays

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

At the time when this comment was updated there had been 68 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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk Bot changed the title Backport d6c4fe7b39d5d9f1a4758ca5214aa95c7a84b92d 8392223: CLDR provider mutates shared cached time zone name arrays Oct 16, 2026
@openjdk

openjdk Bot commented Oct 16, 2026

Copy link
Copy Markdown

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk Bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required labels Oct 16, 2026
@openjdk

openjdk Bot commented Oct 16, 2026

Copy link
Copy Markdown

⚠️ @moseoh 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.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Oct 16, 2026
@mlbridge

mlbridge Bot commented Oct 16, 2026

Copy link
Copy Markdown

Webrevs

@moseoh

moseoh commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

/approval request

The CLDR provider writes derived names into the shared cached arrays, so the returned names depend on lookup order. In 25, 27 and 21, e.g. the short name of Africa/Casablanca for fr-FR is "UTC" or "GMT" depending on whether the root locale was looked up first. In 17 and 11 the same mutation can leave "GMT+09:00" instead of "KST" for Asia/Seoul for the lifetime of the process, which we hit in production on 17. The 27u backport is pending approval in openjdk/jdk27u#167. I plan to backport this to 21u, 17u and 11u.

Low risk. The fix only copies the array before modifying it; names no longer depend on lookup order.

TimeZoneNameOrderTest fails on 25.0.4 and passes with the fix. jtreg sun/util, java/util/TimeZone and java/util/Locale pass on linux-x64.

@openjdk

openjdk Bot commented Oct 16, 2026

Copy link
Copy Markdown

@moseoh
8392223: The approval request has been created successfully.

@moseoh

moseoh commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

The 27u backport has been integrated (JDK-8395614, 27.0.2).

@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 Oct 29, 2026
@moseoh

moseoh commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

/integrate

@openjdk openjdk Bot added the sponsor Pull request is ready to be sponsored label Oct 29, 2026
@openjdk

openjdk Bot commented Oct 29, 2026

Copy link
Copy Markdown

@moseoh
Your change (at version 2c734c3) is now ready to be sponsored by a Committer.

@shipilev

Copy link
Copy Markdown
Member

Please enable GitHub Actions (probably in https://github.com/moseoh/jdk25u-dev/actions), and trigger the test run against your branch. We need to make sure the test compiles and runs well.

@moseoh

moseoh commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

I enabled GitHub Actions and ran the tests. All builds and tier1 tests pass, including jdk/tier1 part 2, which has the new tests:
https://github.com/moseoh/jdk25u-dev/actions/runs/41099552247
https://github.com/moseoh/jdk25u-dev/actions/runs/41170643354 (macos-aarch64 again, since the first run could not get a runner)

The only failure is macos-aarch64 hs/tier1 serviceability: the runner lost communication with the server after about an hour, also on a rerun of that job. The same job currently fails the same way in other forks.

@shipilev

shipilev commented Nov 1, 2026

Copy link
Copy Markdown
Member

Thanks for running GHA. MacOS failure looks environmental/intermittent, so it does not block us.

/sponsor

@openjdk

openjdk Bot commented Nov 1, 2026

Copy link
Copy Markdown

Going to push as commit d2939a1.
Since your change was applied there have been 77 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 Nov 1, 2026
@openjdk openjdk Bot closed this Nov 1, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Nov 1, 2026
@openjdk

openjdk Bot commented Nov 1, 2026

Copy link
Copy Markdown

@shipilev @moseoh Pushed as commit d2939a1.

💡 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

backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants